Skip to content

Wayland support for Linux #6306

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

Open
rdtor opened this issue Jun 6, 2019 · 7 comments
Open

Wayland support for Linux #6306

rdtor opened this issue Jun 6, 2019 · 7 comments
Milestone

Comments

@rdtor
Copy link

rdtor commented Jun 6, 2019

Gcc -- 8.3
all the dependencies and codec fullfilled required by script.
nightly builds without error
running the make file inside the project folder of openFrameworkscompiled or the build script i get this error.
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/ofImage.cpp:1:
/usr/include/GL/glew.h:22687:52: note: previous declaration 'void (* __glewGetFragmentMaterialfvSGIX)(GLenum, GLenum, const GLfloat*)'
GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:212,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/ofImage.h:3,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/ofImage.cpp:1:
/usr/include/GL/glext.h:12099:90: error: 'void __glewGetFragmentMaterialivSGIX(GLenum, GLenum, GLint*)' redeclared as different kind of symbol
APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);
^

In file included from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:210,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/ofImage.h:3,
from /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/graphics/ofImage.cpp:1:
/usr/include/GL/glew.h:22688:52: note: previous declaration 'void (* __glewGetFragmentMaterialivSGIX)(GLenum, GLenum, const GLint*)'
GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [makefileCommon/compile.core.mk:240: /home/shank/Programs/openframeworks-nightly/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/graphics/ofImage.o] Error 1
make: *** [makefileCommon/compile.core.mk:212: Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

@madc
Copy link

madc commented Aug 14, 2019

The openframeworks-nightly package in AUR is quite outdated. Did you use it?

I installed oF on a fresh arch installation yesterday using the openFrameworks package on AUR. To get the package to build, I needed to manually install glfw-x11 (even tough I'm using gnome with wayland) and pugixml. Everything runs smooth.

@CarloCattano
Copy link

Hm, in my current system I cant satisfy the dependencies since I have no x11.

resolving dependencies...
looking for conflicting packages...
:: glfw-x11 and glfw-wayland are in conflict (glfw). Remove glfw-wayland? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing glfw-wayland breaks dependency 'glfw-wayland' required by wlay-git

in theory xwayland could run ofx apps from within wayland I guess , but not sure how to solve the deps issue
Seems like the petition on #6752 makes a lot of sense

@CarloCattano
Copy link

CarloCattano commented Sep 7, 2023

OK , problem is if you have glfw-wayland installed, replacing it for glfw-git from AUR it does let you compile it.
Tested a few gl projects and all works as intended

@dimitre
Copy link
Member

dimitre commented Sep 8, 2023

@CarloCattano should we add this information to installation guides? or maybe changing installation scripts?
I suppose you are testing with 0.12.0 right?

@ofTheo
Copy link
Member

ofTheo commented Sep 8, 2023

I think @artificiel is using arch linux.
Did you have any issues with 0.12.0 install there?

Agree with @dimitre if this is a common issue we should add to the install guide.
https://github.com/openframeworks/ofSite/blob/master/content/setup/linux-install.md

@ofTheo ofTheo mentioned this issue Sep 8, 2023
54 tasks
@artificiel
Copy link
Contributor

I'm not using Wayland and I'm not sure about the implications, but we cannot adjust the install libs scripts with packages on the AUR.

a note like "for Wayland Arch users: you need to replace glfw-wayland with glfw-git from the AUR" in the install guide would be good.

in any case this ticket should be closed as it's relating to a older problem (and these problem really outdate themselves fast on Arch) and the wider Wayland issue really is covered by #6752

@ofTheo ofTheo changed the title of-0.10.2 build fail on arch linux. Wayland support for Linux Apr 1, 2025
@ofTheo
Copy link
Member

ofTheo commented Apr 1, 2025

Going to rename this issue and track for 0.13.0.
We'll merge @danoli3's linux branch (
#8255 ) which adds Wayland support as soon as 0.12.1 is out.

@ofTheo ofTheo added this to the 0.13.0 milestone Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants