openframeworks / openframeworks/openFrameworks
Projects do not compile with glfw-wayland
Open
Nobody has claimed this yet.
feature
linux
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Not sure whether this is a bug or not, but just so you know, the projects do not link with glfw-wayland, producing the following errors:
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `ofAppGLFWWindow::setFullscreen(bool) [clone .part.11]':
ofAppGLFWWindow.cpp:(.text+0x630): undefined reference to `glfwGetX11Window'
ofAppGLFWWindow.cpp:(.text+0x638): undefined reference to `glfwGetX11Display'
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `ofAppGLFWWindow::setWindowIcon(ofPixels_<unsigned char> const&)':
ofAppGLFWWindow.cpp:(.text+0x1009): undefined reference to `glfwGetX11Display'
ofAppGLFWWindow.cpp:(.text+0x103d): undefined reference to `glfwGetX11Window'
ofAppGLFWWindow.cpp:(.text+0x1057): undefined reference to `glfwGetX11Display'
ofAppGLFWWindow.cpp:(.text+0x1093): undefined reference to `glfwGetX11Display'
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `keycodeToUnicode(ofAppGLFWWindow*, int, int, int)':
ofAppGLFWWindow.cpp:(.text+0x11ae): undefined reference to `glfwGetX11Display'
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `ofAppGLFWWindow::keyboard_cb(GLFWwindow*, int, int, int, int)':
ofAppGLFWWindow.cpp:(.text+0x278f): undefined reference to `glfwGetX11Display'
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `ofAppGLFWWindow::getX11Window()':
ofAppGLFWWindow.cpp:(.text+0x248): undefined reference to `glfwGetX11Window'
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `ofAppGLFWWindow::getX11Display()':
ofAppGLFWWindow.cpp:(.text+0x251): undefined reference to `glfwGetX11Display'
/home/paul/git/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o): In function `ofAppGLFWWindow::getGLXContext()':
ofAppGLFWWindow.cpp:(.text+0x298): undefined reference to `glfwGetGLXContext'
The environment is Archlinux kernel 4.6.
glfw-X11 works perfectly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the ofAppGLFWWindow.o references in libopenFrameworks.a and the linker configuration used with glfw-wayland. Compare the working glfw-X11 setup with the Wayland setup, then verify that projects link without the reported undefined references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- build-system, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100