Skip to content

Compiling fails on Fedora 35 with scripting enabled #114

@aweirddudee

Description

@aweirddudee

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions