Editor Plugin (Sample) will nicht kompilieren

  • Editor Plugin (Sample) will nicht kompilieren

    Hab probiert das Editor Plugin zu kompilieren, krieg das aber nicht hin und kenn mich mit Qt Make etc nicht aus.



    Quellcode

    1. Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
    2. Fehler MSB3721 Der Befehl
    3. "
    4. "C:\Program Files (x86)\Steam\SteamApps\common\Emergency 2017\sdk\sample_plugins\plugin_sample\..\..\plugin_api\build\visual_studio_scripts\qt_moc.bat"
    5. C:\Program Files (x86)\Steam\SteamApps\common\Emergency 2017\sdk\sample_plugins\plugin_sample\..\..\plugin_api\external\_windows_x86\qt\bin\moc.exe
    6. C:\Program Files (x86)\Steam\SteamApps\common\Emergency 2017\sdk\sample_plugins\plugin_sample\editor_plugin\editor_plugin\view\indicator\IndicatorView.h
    7. C:\Program Files (x86)\Steam\SteamApps\common\Emergency 2017\sdk\sample_plugins\plugin_sample\editor_plugin\..\tmp\qt\moc\editor_plugin\
    8. IndicatorView
    9. editor_plugin"
    10. wurde mit Code 1 beendet. editor_plugin C:\Program Files (x86)\Steam\SteamApps\common\Emergency 2017\sdk\plugin_api\build\visual_studio_build_customizations\QtMocRule.targets 39
    Alles anzeigen



    irgendwas muss es mit den CommanLineTemplates zu tun haben. Lässt man sie raus verschwindet der Fehler. QtMocRule.targets

    Brainfuck-Quellcode

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    3. <ItemGroup>
    4. <PropertyPageSchema
    5. Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
    6. <AvailableItemName Include="QtRCC">
    7. <Targets>_QtRCC</Targets>
    8. </AvailableItemName>
    9. </ItemGroup>
    10. <UsingTask
    11. TaskName="QtRCC"
    12. TaskFactory="XamlTaskFactory"
    13. AssemblyName="Microsoft.Build.Tasks.v4.0">
    14. <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
    15. </UsingTask>
    16. <Target
    17. Name="_QtRCC"
    18. BeforeTargets="ClCompile"
    19. AfterTargets="CustomBuild"
    20. Condition="'@(QtRCC)' != ''"
    21. Outputs="%(QtRCC.OutputFileName)"
    22. Inputs="%(QtRCC.Identity);$(MSBuildProjectFile)"
    23. DependsOnTargets="_SelectedFiles">
    24. <ItemGroup Condition="'@(SelectedFiles)' != ''">
    25. <QtRCC Remove="@(QtRCC)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
    26. </ItemGroup>
    27. <ItemGroup>
    28. <QtRCC_tlog Include="%(QtRCC.OutputFileName)" Condition="'%(QtRCC.OutputFileName)' != '' and '%(QtRCC.ExcludedFromBuild)' != 'true'">
    29. <Source>@(QtRCC, '|')</Source>
    30. </QtRCC_tlog>
    31. </ItemGroup>
    32. <Message
    33. Importance="High"
    34. Text="%(QtRCC.ExecutionDescription)" />
    35. <WriteLinesToFile
    36. Condition="'@(QtRCC_tlog)' != '' and '%(QtRCC_tlog.ExcludedFromBuild)' != 'true'"
    37. File="$(IntDir)$(ProjectName).rcc.1.tlog"
    38. Lines="^%(QtRCC_tlog.Source);@(QtRCC_tlog->'%(Fullpath)')"/>
    39. <QtRCC
    40. Condition="'@(QtRCC)' != '' and '%(QtRCC.ExcludedFromBuild)' != 'true'"
    41. CommandLineTemplate="%(QtRCC.CommandLineTemplate)"
    42. OutputFileName="%(QtRCC.OutputFileName)"
    43. AdditionalOptions="%(QtRCC.AdditionalOptions)"
    44. Inputs="%(QtRCC.Identity)" />
    45. </Target>
    46. </Project>
    Alles anzeigen

    QTMocRule.props

    Brainfuck-Quellcode

    1. <?xml version="1.0" encoding="utf-8"?>
    2. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    3. <ItemDefinitionGroup>
    4. <QtMOC>
    5. <OutputFileName>$(QtMocOutput)\moc_%(Filename).cpp</OutputFileName>
    6. <CommandLineTemplate>"$(QsfDir)build\visual_studio_scripts\qt_moc.bat" $(QtMocExecutable) %(FullPath) $(QtMocOutput) %(Filename) $(ProjectName)</CommandLineTemplate>
    7. <ExecutionDescription>Compiling %(Filename)%(Extension) using Qt MOC</ExecutionDescription>
    8. </QtMOC>
    9. </ItemDefinitionGroup>
    10. </Project>

    und das hier (die .bat Datei)

    Quellcode

    1. rem This script is used to call the Qt meta object compiler (MOC) and also create the output directory if needed.
    2. @echo off
    3. rem -- Parameters as named variables
    4. set QtMocExecutable=%~1
    5. set FullPath=%~2
    6. set QtMocOutput=%~3
    7. set Filename=%~4
    8. set TargetName=%~5
    9. rem -- Execute commands
    10. md "%QtMocOutput%"
    11. "%QtMocExecutable%" "%FullPath%" -o "%QtMocOutput%moc_%Filename%.cpp" -b "%TargetName%/PrecompiledHeader.h"
    Alles anzeigen

    Vltr kennet sich jemand aus oder hat das Sample-Plugin vom SDK zum Editor zum laufen gebracht.

    Cheers