Open sanjuchopracool opened 4 months ago
Does this #1586 fix it for you?
When I enable all SOL2_EXAMPLES, SOL2_INTEROP_EXAMPLES, SOL2_DYNAMIC_LOADING_EXAMPLES I get the following error during building:
[279/325 84% :: 19.263] Performing update step for 'LUABRIDGE_BUILD_SOURCE'
[279/325 85% :: 19.525] Building CXX object examples/customization/CMakeFiles/customization_to_table.dir/source/lua_zm_interop.cpp.o
[279/325 85% :: 19.602] Building CXX object examples/customization/CMakeFiles/customization_to_table.dir/source/lua_interop.cpp.o
[279/325 85% :: 23.373] Performing download step (git clone) for 'LUWRA_BUILD_SOURCE'
Cloning into 'luwra_0.5.0'...
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'deps/catch' (https://github.com/philsquared/Catch.git) registered for path 'deps/catch'
Cloning into '/Users/mtillmanns/projects/qt/sol2/build/Clean/Debug/vendor/luwra_0.5.0/deps/catch'...
Submodule path 'deps/catch': checked out 'd758428fe297655e558a86cc6a013fcb1bcc8c7d'
ninja: build stopped: subcommand failed.
build finished with error(s).
Not working,
[cmake] -- Found LuaBuild: Lua::Lua (found version "5.4.4")
[cmake] -- Configuring done (6.8s)
[cmake] CMake Error at cmake/Packages/FindLuaBuild/LuaVanilla.cmake:254 (add_dependencies):
[cmake] The dependency target "LUA_VANILLA" of target "liblua-5.4.4" does not
[cmake] exist.
[cmake] Call Stack (most recent call first):
[cmake] cmake/Packages/FindLuaBuild.cmake:86 (include)
[cmake] cmake/Packages/FindLuaBuild.cmake:112 (find_lua_build)
[cmake] CMakeLists.txt:229 (find_package)
[cmake]
[cmake]
[cmake] -- Generating done (0.0s)
[cmake] CMake Generate step failed. Build files cannot be regenerated correctly.
[cmake]
[cmake] The command "/home/sanju/Qt/Tools/CMake/bin/cmake -S /home/sanju/PROJECTS/sol2 -B /home/sanju/PROJECTS/sol2/build/DEKSTOP_CLANG_17_QT_6_5_3-Debug -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/sanju/PROJECTS/sol2/build/DEKSTOP_CLANG_17_QT_6_5_3-Debug/.qtc/package-manager/auto-setup.cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/sanju/Qt/6.5.3/gcc_64/bin/qmake -DCMAKE_PREFIX_PATH:PATH=/home/sanju/Qt/6.5.3/gcc_64 -DCMAKE_C_COMPILER:FILEPATH=/bin/clang-17 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-17 -DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:07.
I had the same issue and https://github.com/ThePhD/sol2/pull/1586 fully fixed the issue for me, on Windows 10, CMake 3.29.5, MSVC 14.40 (Visual Studio 2022, 17.10)
Trying to build on intel mac with cmake , got error while configure project.