Does not compile
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- build-system
调研方向
Start by inspecting include/raylib-lua-sol.hpp and the linked raylib-lua-sol.cpp object, then review the CMake link configuration that produces the raylib-lua-sol executable. Reproduce the Ubuntu 20 build and trace the unresolved rlUnproject and LoadImageEx references; done means the executable links without these errors.
由索引模型根据 Issue 内容生成。
描述
It fails compiling under Ubuntu 20 with
[ 94%] Built target lua
[ 97%] Linking CXX executable raylib-lua-sol
/usr/bin/ld: ../liblua.a(loslib.c.o): in function `os_tmpname':
loslib.c:(.text+0x18b): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: CMakeFiles/raylib-lua-sol.dir/raylib-lua-sol.cpp.o: in function `raylib_lua_sol_rlgl(sol::state&)':
raylib-lua-sol.cpp:(.text+0xce9): undefined reference to `rlUnproject'
/usr/bin/ld: CMakeFiles/raylib-lua-sol.dir/raylib-lua-sol.cpp.o: in function `raylib_lua_sol_functions(sol::state&)':
raylib-lua-sol.cpp:(.text+0xa867): undefined reference to `LoadImageEx'
/usr/bin/ld: raylib-lua-sol.cpp:(.text+0xadb0): undefined reference to `ImageExtractPalette'
/usr/bin/ld: raylib-lua-sol.cpp:(.text+0xc799): undefined reference to `SetMusicLoopCount'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/CMakeFiles/raylib-lua-sol.dir/build.make:86: bin/raylib-lua-sol] Error 1
make[1]: *** [CMakeFiles/Makefile2:970: bin/CMakeFiles/raylib-lua-sol.dir/all] Error 2
I then took out ImageExtraPalette and SetMusicLoopCount from include/raylib-lua-sol.hpp but the rlUnproject and LoadImageEx undefied references stay.
- 主要语言
- C++
- 星标
- 120
- 派生
- 22
- 平均合并
- 50 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RobLoach/raylib-lua-sol 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
RobLoach/raylib-lua-sol#49 ·
-
难度 3/5 1-2 天 新手友好度 42/100
RobLoach/raylib-lua-sol#46 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
RobLoach/raylib-lua-sol#45 · 7 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
RobLoach/raylib-lua-sol#44 ·
-
难度 1/5 1 小时以内 新手友好度 48/100
RobLoach/raylib-lua-sol#41 · 5 条评论 ·
查看 RobLoach/raylib-lua-sol 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
microsoft/onnxruntime#33018 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
customer-reported needs-triage question
难度 2/5 1-3 小时 新手友好度 76/100
Azure/azure-sdk-for-cpp#7435 ·
维护者通常 1 天内回复
-
ChromieCraft Generic Confirmed World Event
难度 2/5 1-3 小时 新手友好度 68/100
azerothcore/azerothcore-wotlk#27882 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
aristocratos/btop#1874 ·
维护者通常 1 天内回复