Wayland support for Linux
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
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.
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
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
@CarloCattano should we add this information to installation guides? or maybe changing installation scripts? I suppose you are testing with 0.12.0 right?
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
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 https://github.com/openframeworks/openFrameworks/issues/6752
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.