z3ntu / RazerGenie

Qt application for configuring your Razer devices under GNU/Linux.
GNU General Public License v3.0
374 stars 35 forks source link

Cannot build under FreeBSD 13 #128

Closed iron-udjin closed 1 year ago

iron-udjin commented 2 years ago

$ ninja -C builddir

ninja: Entering directory `builddir'
[6/29] Generating data/translation_de with a custom command
Updating 'data/de.qm'...
    Generated 74 translation(s) (74 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[7/29] Generating data/translation_fr with a custom command
Updating 'data/fr.qm'...
    Generated 75 translation(s) (75 finished and 0 unfinished)
[27/29] Compiling C++ object src/razergenie.p/razergenie.cpp.o
FAILED: src/razergenie.p/razergenie.cpp.o 
c++ -Isrc/razergenie.p -Isrc -I../src -Isrc/libopenrazer -I../src/libopenrazer -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtCore -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtDBus -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtXml -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O0 -g -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -MD -MQ src/razergenie.p/razergenie.cpp.o -MF src/razergenie.p/razergenie.cpp.o.d -o src/razergenie.p/razergenie.cpp.o -c ../src/razergenie.cpp
In file included from ../src/razergenie.cpp:22:
In file included from /usr/local/include/qt5/QtWidgets/QtWidgets:3:
In file included from /usr/local/include/qt5/QtWidgets/QtWidgetsDepends:4:
In file included from /usr/local/include/qt5/QtGui/QtGui:47:
/usr/local/include/qt5/QtGui/qopengl.h:141:13: fatal error: 'GL/gl.h' file not found
#   include <GL/gl.h>
            ^~~~~~~~~
1 error generated.
[28/29] Compiling C++ object src/razergenie.p/customeditor_customeditor.cpp.o
FAILED: src/razergenie.p/customeditor_customeditor.cpp.o 
c++ -Isrc/razergenie.p -Isrc -I../src -Isrc/libopenrazer -I../src/libopenrazer -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtCore -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtDBus -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtXml -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O0 -g -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -MD -MQ src/razergenie.p/customeditor_customeditor.cpp.o -MF src/razergenie.p/customeditor_customeditor.cpp.o.d -o src/razergenie.p/customeditor_customeditor.cpp.o -c ../src/customeditor/customeditor.cpp
In file included from ../src/customeditor/customeditor.cpp:22:
In file included from /usr/local/include/qt5/QtWidgets/QtWidgets:3:
In file included from /usr/local/include/qt5/QtWidgets/QtWidgetsDepends:4:
In file included from /usr/local/include/qt5/QtGui/QtGui:47:
/usr/local/include/qt5/QtGui/qopengl.h:141:13: fatal error: 'GL/gl.h' file not found
#   include <GL/gl.h>
            ^~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

$ pkg which /usr/local/include/GL/gl.h /usr/local/include/GL/gl.h was installed by package libglvnd-1.3.4

How can I fix it?

Thank you.

z3ntu commented 2 years ago

I have this workaround in the CI system: https://github.com/z3ntu/RazerGenie/blob/master/.builds/freebsd.yml#L16-L18

iron-udjin commented 2 years ago

@z3ntu Thank you, compiled successfully.

Are there any info about how to setup RazerGenie under FreeBSD?

z3ntu commented 2 years ago

It works with this experimental OpenRazer rewrite: https://github.com/z3ntu/razer_test . Unfortunately I haven't done much there since Jan. 2020. Probably also doesn't support your device yet, there are some PRs for additional devices but still small compared to proper openrazer.

z3ntu commented 1 year ago

Closing as FreeBSD is not supported.