-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
imgui: compile imgui project occur link issue of 'undefined reference to glClear' #3411
Comments
Title: imgui-scaffold: Using xmake to compile projects that depend on imgui lacks opengl Related header file links Xmake version2.8.7 Operating system version and architectureUbuntu22.04 Describe the problemNewly installed ubuntu22.04, after configuring the following environment, there is a problem when compiling the example imgui-scaffold sudo add-apt-repository ppa:xmake-io/xmake
sudo apt-get update
sudo apt-get install g++ gdb xmake make git -y Expected resultsimgui-scaffold Project configurationhttps://github.com/xmake-examples/imgui-scaffold Additional information and error logsCurrently, mesa-common-dev is installed and can be compiled normally by adding add_links("GL") to xmake.lua sudo apt-get install mesa-common-dev The possible reason is that glfw does not add gl link? xmake-repo/packages/g/glfw/xmake.lua Line 35 in 0c96573
|
The config in imgui-scaffold seems deprecated, maybe enable this config and try again? |
the add_requires("imgui 1.88", {configs = {glfw_opengl3 = true}}) xmake-repo/packages/i/imgui/xmake.lua Line 86 in d2f42d9
its more of a link issue |
Xmake 版本
2.8.7
操作系统版本和架构
Ubuntu22.04
描述问题
真实问题出现在 我自己的项目KHistory上(xmake.lua)
老电脑上使用 xmake v2.7.3可以正常构建,新安装的ubuntu22.04, 使用 xmake v2.8.7 会出现 opengl 相关的问题
最后发现编译 imgui-scaffold示例也会出现问题
期待的结果
imgui-scaffold 可以正常构建
工程配置
https://github.com/xmake-examples/imgui-scaffold
附加信息和错误日志
目前通过 安装mesa-common-dev, 并且在xmake.lua 中加 add_links("GL") 可以正常编译
可能的原因 glfw 没有加 gl链接吗?
xmake-repo/packages/g/glfw/xmake.lua
Line 35 in 0c96573
The text was updated successfully, but these errors were encountered: