Skip to content

Wayland support for Linux #6306

Open
Open
@rdtor

Description

@rdtor

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

Activity

madc

madc commented on Aug 14, 2019

@madc

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

CarloCattano commented on Sep 7, 2023

@CarloCattano

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

CarloCattano commented on Sep 7, 2023

@CarloCattano

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

dimitre commented on Sep 8, 2023

@dimitre
Member

@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

ofTheo commented on Sep 8, 2023

@ofTheo
Member

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

artificiel

artificiel commented on Sep 8, 2023

@artificiel
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

changed the title [-]of-0.10.2 build fail on arch linux.[/-] [+]Wayland support for Linux[/+] on Apr 1, 2025
ofTheo

ofTheo commented on Apr 1, 2025

@ofTheo
Member

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.

added this to the 0.13.0 milestone on Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dimitre@ofTheo@madc@artificiel@CarloCattano

        Issue actions

          Wayland support for Linux · Issue #6306 · openframeworks/openFrameworks