Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation failed : error: unable to find library -lLua51 on FreeBSD #1697

Open
Martinfx opened this issue Jul 4, 2024 · 0 comments
Open
Labels
Bug The issue in the run-time.

Comments

@Martinfx
Copy link
Contributor

Martinfx commented Jul 4, 2024

Describe the bug
Hi, i have problem find library "-lLua51" .
Maybe only add path -DCMAKE_LUA_LIBRARIES ?

To Reproduce
Steps to reproduce the behavior:

  1. Clone xray16: new port Martinfx/FreeBSD-Ports#144
  2. sudo make
  3. build failed

Screenshots, videos
FAILED: /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrScriptEngine.so : && /usr/local/bin/clang++18 -fPIC -pipe -g -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fdelayed-template-parsing -Wno-unused-command-line-argument -Wno-inconsistent-missing-override -stdlib=libc++ -Wno-attributes -Wl,--no-undefined -mfpmath=sse -msse3 -Og -Wall -Wextra -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-parentheses -Wno-unused-label -Wno-unused-parameter -Wno-switch -pipe -g -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fstack-protector-strong -fuse-ld=lld -shared -Wl,-soname,xrScriptEngine.so -o /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrScriptEngine.so src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_callStack.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_debugger.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_debugger_threads.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_lua_helper.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/BindingsDumper.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_engine.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/ScriptEngineScript.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/ScriptExporter.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/pch.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/xrScriptEngine.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/LuaStudio/LuaStudio.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_process.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_thread.cpp.o src/xrScriptEngine/CMakeFiles/xrScriptEngine.dir/script_stack_tracker.cpp.o -L/usr/local/lib -Wl,-rpath,"\$ORIGIN:/usr/local/lib:/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug:" /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrAPI.so /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrLuaFix.a /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrLuabind.a /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrLuajit-debug.so /usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-2188-november-2023-rc1/bin/x64/Debug/xrCore.so -lpthread -lexecinfo /usr/local/lib/libSDL2.so -lLua51 -Wl,-rpath-link,/usr/local/lib && : ld.lld: error: unable to find library -lLua51 clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. *** Error code 1
Desktop (please complete the following information):

  • OS: FreeBSD 13.3 Amd64
  • OpenXRay build version 6f5590d

Additional context
Add any other context about the problem here.

@Martinfx Martinfx added the Bug The issue in the run-time. label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The issue in the run-time.
Projects
Status: No status
Development

No branches or pull requests

1 participant