overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
133 stars 50 forks source link

Build fails in VS 2022 due to overly long input line #390

Open theanine3D opened 1 year ago

theanine3D commented 1 year ago

VS 2022 fails to build Overte with either x64-Release or x64-Debug configurations. It occurs at build line 712 out of 1259. The error complains that the "input line is too long."

  [709/1259] Building CXX object libraries\ui\CMakeFiles\ui.dir\src\ui\Menu.cpp.obj
  [710/1259] Building CXX object libraries\ui\CMakeFiles\ui.dir\src\ui\types\ContextAwareProfile.cpp.obj
  [711/1259] Building CXX object libraries\ui\CMakeFiles\ui.dir\src\ui\types\FileTypeProfile.cpp.obj
  [712/1259] Linking CXX executable ice-server\ice-server.exe
  **FAILED: ice-server/ice-server.exe** 
  cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=ice-server\CMakeFiles\ice-server.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1435~1.322\bin\Hostx64\x64\link.exe /nologo ice-server\CMakeFiles\ice-server.dir\ice-server_autogen\mocs_compilation.cpp.obj ice-server\CMakeFiles\ice-server.dir\src\IceServer.cpp.obj ice-server\CMakeFiles\ice-server.dir\src\main.cpp.obj  /out:ice-server\ice-server.exe /implib:ice-server\ice-server.lib /pdb:ice-server\ice-server.pdb /version:0.0 /machine:x64 /LARGEADDRESSAWARE /DEBUG /OPT:REF /OPT:ICF /debug /INCREMENTAL /subsystem:console  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Network.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Core.lib  libraries\embedded-webserver\embedded-webserver.lib  libraries\networking\networking.lib  libraries\shared\shared.lib  C:\tmp\compile_tmp\c75d05b6\installed\x64-windows\lib\libssl.lib  C:\tmp\compile_tmp\c75d05b6\installed\x64-windows\lib\libcrypto.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Network.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Core.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5WebSockets.lib  libraries\platform\platform.lib  libraries\gl\gl.lib  libraries\shared\shared.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Network.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Gui.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Script.lib  Wbemuuid.lib  C:\tmp\compile_tmp\c75d05b6\installed\x64-windows\lib\zlib.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Widgets.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Gui.lib  C:\Users\petva\overte-files\qt\qt5-install\lib\Qt5Core.lib  C:\tmp\compile_tmp\c75d05b6\installed\x64-windows\lib\glad.lib  opengl32.lib  glu32.lib  Iphlpapi.lib  C:\tmp\compile_tmp\c75d05b6\installed\x64-windows\lib\tbb.lib  C:\tmp\compile_tmp\c75d05b6\installed\x64-windows\lib\webrtc.lib  ws2_32.lib  security.lib  winmm.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cmd.exe /C "cd /D G:\Documents\GitHub\overtea\out\build\x64-Release\ice-server && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUNDLE_EXECUTABLE="G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/ice-server.exe" -DBUNDLE_PLUGIN_DIR="G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/plugins" -P G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/FixupBundlePostBuild.cmake && cd /D G:\Documents\GitHub\overtea\out\build\x64-Release\ice-server && CMD /C SET PATH=C:/Users/petva/overte-files/qt/qt5-install/bin;%PATH% && C:/Users/petva/overte-files/qt/qt5-install/bin/windeployqt.exe        --release       --no-compiler-runtime --no-opengl-sw --no-angle -no-system-d3d-compiler "G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/ice-server.exe" && cd /D G:\Documents\GitHub\overtea\out\build\x64-Release\ice-server && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E make_directory G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audioWin7/audio && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E make_directory G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audioWin8/audio && if exist G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio/qtaudio_windows.dll ( "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -E copy G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio/qtaudio_windows.dll G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audioWin7/audio ) && if exist G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio/qtaudio_windows.dll ( "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -E copy G:/Documents/GitHub/overtea/out/build/x64-Release/ext/vc14/wasapi/project/src/wasapi/qtaudio_wasapi.dll G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audioWin8/audio ) && if exist G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio/qtaudio_windowsd.dll ( "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -E copy G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio/qtaudio_windowsd.dll G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audioWin7/audio ) && if exist G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio/qtaudio_windowsd.dll ( "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -E copy G:/Documents/GitHub/overtea/out/build/x64-Release/ext/vc14/wasapi/project/src/wasapi/qtaudio_wasapid.dll G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audioWin8/audio ) && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E remove_directory G:/Documents/GitHub/overtea/out/build/x64-Release/ice-server/audio""
  The input line is too long.
   `

I should note that it also throws errors about the SteamVR, LibOVR, and Neuron plugins in the /plugins folder, but those errors go away if you comment out all lines related to those 3 plugins in /plugins/CMakeLists.txt

My setup is Windows 11, Visual Studio 2022, Python 3.11.3, and the latest PyQt5.

EDIT: The error message above was specifically from RelWithDebInfo, but the error also appears in the other configurations.

JulianGro commented 1 year ago

I think for the ice-server this has been an issue for the longest of time.