Closed Leftwitch closed 2 weeks ago
try setting the UseShellExecute=true in the ExecuteCommandSync, see if that works. If so I can check locally if true does not affect anything else.
On Thu, Jul 11, 2024 at 6:09 PM Justin Guckes @.***> wrote:
Hey, i was trying out UE4Cmake today and I seem to have some Problems. Even if I have my Cmake in my Path, it looks like it cannot be found.
Die Erstellung wurde um 01:04 gestartet... 1>------ Erstellen gestartet: Projekt: WebRTCTest, Konfiguration: Development x64 ------ 1>Using bundled DotNet SDK version: 6.0.302 1>Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" WebRTCTest Win64 Development -Project="E:\UEGames\WebRTCTest\WebRTCTest.uproject" -WaitMutex -FromMsBuild -architecture=x64 1>Log file: C:\Users\justi\AppData\Local\UnrealBuildTool\Log.txt 1>Invalidating makefile for WebRTCTest (build.failed deleted) 1>CMakeTarget load target: libdatachannel loc:E:\UEGames\WebRTCTest\Plugins\WebRTC\Source\Deps\libdatachannel 1>Loading cmake target: UnrealBuildTool.ReadOnlyTargetRules 1>Target libdatachannel CMakeLists.txt out of date, rebuilding 1>CMakeTarget calling cmake with: -G "Visual Studio 17 2022" -A x64 -S "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel" -B "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\toolchain.cmake" -T host=x64 -DCMAKE_BUILD_TYPE=Release 1>Calling: cmd.exe /c cmake.exe -G "Visual Studio 17 2022" -A x64 -S "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel" -B "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\toolchain.cmake" -T host=x64 -DCMAKE_BUILD_TYPE=Release 1>Der Befehl "cmake.exe" ist entweder falsch geschrieben oder 1>konnte nicht gefunden werden. 1> 1> 1>Der Befehl "cmake.exe" ist entweder falsch geschrieben oderkonnte nicht gefunden werden. 1>Cannot configure CMake project. Exited with code: 1 1>CMakeTarget failed to load target: libdatachannel 1>WebRTC Path: E:\UEGames\WebRTCTest\Plugins\WebRTC\Source\Deps\libdatachannel 1>Target is up to date 1>Total execution time: 1.10 seconds
I'm using UE 5.4 on a completely blank Third-Person-Template. (The error "Der Befehl "cmake.exe" ist entweder falsch geschrieben oder" means pretty much cmake.exe could not be found, check if you spelled it right)
According to the Internet it could be the ExecuteCommandSync Method with the UseShellExecute set to false, but thats just a quick research never worked with cs before.
Thanks for help! If you need anything else let me know!
— Reply to this email directly, view it on GitHub https://github.com/caseymcc/UE4CMake/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWE6DYI7A5E7XHUOS6JTV3ZL4GB7AVCNFSM6AAAAABKX33B6CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDIMZTGU4TKOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I tried that, but this requires me to remove the redirection of the outputs (it throws an exception which tells me to)
I mean it "works" then because I see no error, but since I can't see the output anymore because of the removed redirection that's obvious
How have you set up your environment? You also just have cmake in your PATH?
Yeah, cmake is just in the PATH. However I am on linux so a little different there but I believe others are using it on windows.
Sorry i was inactive for some time, I have it in my PATH aswell so this issue seems to be somewhere else I'm scared
Hey, i was trying out UE4Cmake today and I seem to have some Problems. Even if I have my Cmake in my Path, it looks like it cannot be found.
Die Erstellung wurde um 01:04 gestartet... 1>------ Erstellen gestartet: Projekt: WebRTCTest, Konfiguration: Development x64 ------ 1>Using bundled DotNet SDK version: 6.0.302 1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" WebRTCTest Win64 Development -Project="E:\UEGames\WebRTCTest\WebRTCTest.uproject" -WaitMutex -FromMsBuild -architecture=x64 1>Log file: C:\Users\justi\AppData\Local\UnrealBuildTool\Log.txt 1>Invalidating makefile for WebRTCTest (build.failed deleted) 1>CMakeTarget load target: libdatachannel loc:E:\UEGames\WebRTCTest\Plugins\WebRTC\Source\Deps\libdatachannel 1>Loading cmake target: UnrealBuildTool.ReadOnlyTargetRules 1>Target libdatachannel CMakeLists.txt out of date, rebuilding 1>CMakeTarget calling cmake with: -G "Visual Studio 17 2022" -A x64 -S "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel" -B "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\toolchain.cmake" -T host=x64 -DCMAKE_BUILD_TYPE=Release 1>Calling: cmd.exe /c cmake.exe -G "Visual Studio 17 2022" -A x64 -S "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel" -B "E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget" -DCMAKE_TOOLCHAIN_FILE="E:\UEGames\WebRTCTest\Intermediate\CMakeTarget\libdatachannel\toolchain.cmake" -T host=x64 -DCMAKE_BUILD_TYPE=Release 1>Der Befehl "cmake.exe" ist entweder falsch geschrieben oder 1>konnte nicht gefunden werden. 1> 1> 1>Der Befehl "cmake.exe" ist entweder falsch geschrieben oderkonnte nicht gefunden werden. 1>Cannot configure CMake project. Exited with code: 1 1>CMakeTarget failed to load target: libdatachannel 1>WebRTC Path: E:\UEGames\WebRTCTest\Plugins\WebRTC\Source\Deps\libdatachannel 1>Target is up to date 1>Total execution time: 1.10 seconds
(BTW: "Der Befehl "cmake.exe" ist entweder falsch geschrieben oder" means cmake.exe could not be found)
I'm using UE 5.4 with a completely blank Third-Person Template.
I read online that it could be related to the ExecuteCommandSync method with UseShellExecute set to false, but that was just a quick search and I've never worked with C# before.
Thanks for help! If you need anything else let me know!
Edit: The command from the calling output works fine in powershell!