You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to compile with scripting results in a large amount of sol2 errors when following the guide in the README at the point of make -j $(nproc) at [100%] Linking CXX executable bin/noggit.
/usr/bin/ld: CMakeFiles/noggit.dir/src/noggit/scripting/script_context.cpp.o: in function `void sol::state_view::open_libraries<sol::lib, sol::lib, sol::lib>(sol::lib&&, sol::lib&&, sol::lib&&)':
script_context.cpp:(.text._ZN3sol10state_view14open_librariesIJNS_3libES2_S2_EEEvDpOT_[_ZN3sol10state_view14open_librariesIJNS_3libES2_S2_EEEvDpOT_]+0x1ea): undefined reference to `luaopen_bit'
/usr/bin/ld: script_context.cpp:(.text._ZN3sol10state_view14open_librariesIJNS_3libES2_S2_EEEvDpOT_[_ZN3sol10state_view14open_librariesIJNS_3libES2_S2_EEEvDpOT_]+0x2d3): undefined reference to `luaopen_ffi'
/usr/bin/ld: script_context.cpp:(.text._ZN3sol10state_view14open_librariesIJNS_3libES2_S2_EEEvDpOT_[_ZN3sol10state_view14open_librariesIJNS_3libES2_S2_EEEvDpOT_]+0x30b): undefined reference to `luaopen_jit'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/noggit.dir/build.make:1958: bin/noggit] Error 1
make[1]: *** [CMakeFiles/Makefile2:845: CMakeFiles/noggit.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
After replacing the sol2 headers with v3.2.2's headers (https://github.com/ThePhD/sol2/releases) at build/_deps/sol2-src/include/sol, the terminal dumps the following errors at [ 81%] Building CXX object CMakeFiles/noggit.dir/src/noggit/scripting/script_exception.cpp.o terminaldump.txt
The text was updated successfully, but these errors were encountered:
The linker error indicates that Lua isn't correctly linked. The given symbol names seem to be unconditionally compiled in luajit, so there might have been an issue when installing luajit or when giving it to CMake when building Noggit. Please double-check the paths used. If you're 100% sure it is correct, verify that the path given to -DLUA_LIBRARIES= contains the symbols using nm that/path.so | grep -E 'luaopen_(bit|ffi|jit)'. It should give three lines that are not prefixed with an U.
Attempting to compile with scripting results in a large amount of sol2 errors when following the guide in the README at the point of make -j $(nproc) at
[100%] Linking CXX executable bin/noggit.
After replacing the sol2 headers with v3.2.2's headers (https://github.com/ThePhD/sol2/releases) at build/_deps/sol2-src/include/sol, the terminal dumps the following errors at
[ 81%] Building CXX object CMakeFiles/noggit.dir/src/noggit/scripting/script_exception.cpp.o
terminaldump.txt
The text was updated successfully, but these errors were encountered: