openframeworks / openframeworks/openFrameworks

Projects do not compile with glfw-wayland

Open
#5,193 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.