Seleucids Posted April 5 Report Share Posted April 5 I am trying to build the latest version of the game, but I encounter nvtt build error when compilling libraries: $ ./build-source-libs.sh -j28 Building third-party dependencies... Building CxxTest... Skipping - already built (use --force-rebuild to override) Building FCollada... Skipping - already built (use --force-rebuild to override) Building NVTT... Building NVTT... CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. -- Configuring incomplete, errors occurred! ERROR: NVTT build failed I do have cmake installed at version 4.0.0-1: extra/cmake 4.0.0-1 (12.0 MiB 78.8 MiB) (Installed) A cross-platform open-source make system Quote Link to comment Share on other sites More sharing options...
Seleucids Posted April 5 Author Report Share Posted April 5 (edited) I tried to build libraries with NVTT included but this error will occur when i am making: $ make -j28 ... ../../../source/graphics/TextureConverter.cpp:37:10: fatal error: nvtt/nvtt.h: No such file or directory 37 | #include "nvtt/nvtt.h" | ^~~~~~~~~~~~~ compilation terminated. make[1]: *** [graphics.make:546: obj/graphics_Release/TextureConverter.o] Error 1 make[1]: *** Waiting for unfinished jobs.... JSInterface_Console.cpp ScenarioEditor.cpp ../../../source/ps/GameSetup/HWDetect.cpp:62:10: fatal error: nvtt/nvtt.h: No such file or directory 62 | #include "nvtt/nvtt.h" ... @real_tabasco_sauce this problem is preventing me from testing out your patch. This is for the latest A28 source code. Edited April 5 by Seleucids Quote Link to comment Share on other sites More sharing options...
Stan` Posted April 5 Report Share Posted April 5 Your Cmake is too recent. You might get away by editing the cmake file for nvtt and change the version there. 1 Quote Link to comment Share on other sites More sharing options...
Seleucids Posted April 6 Author Report Share Posted April 6 10 hours ago, Stan` said: Your Cmake is too recent. You might get away by editing the cmake file for nvtt and change the version there. Sadly this didn't work and resulted in a cascading follow up errors. I suspect conda environments are the cause and I am going to try to do it with a new system user. Quote Link to comment Share on other sites More sharing options...
real_tabasco_sauce Posted April 6 Report Share Posted April 6 Is that the original .patch file? Maybe compiling https://gitea.wildfiregames.com/0ad/0ad/pulls/7736 instead will be easier. Quote Link to comment Share on other sites More sharing options...
Stan` Posted April 6 Report Share Posted April 6 @real_tabasco_sauce they haven't reached the point of compiling the game yet. They are building the side libraries. @Seleucids Python isn't needed for NVTT so it shouldn't be because of conda. If we used another build system like meson for that library it might have, but this is not the case. @hyperion do you have cmake 4 on Gentoo ? Quote Link to comment Share on other sites More sharing options...
hyperion Posted 21 hours ago Report Share Posted 21 hours ago Fixed in https://gitea.wildfiregames.com/0ad/0ad/commit/263b481442ccf51f8588828c8bce7a2843299864 1 Quote Link to comment Share on other sites More sharing options...
Seleucids Posted 20 hours ago Author Report Share Posted 20 hours ago 44 minutes ago, hyperion said: Fixed in https://gitea.wildfiregames.com/0ad/0ad/commit/263b481442ccf51f8588828c8bce7a2843299864 This works after I reset and pulled. Thank you very much !!! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.