@jsulm said in Compiling qtgraphicaleffects separately yields errors.:
Is the source code you're building same version as your Qt?
Please post errors as text.
Think you for your reply.
Is the source code you're building same version as your Qt?
My qmake info:
QMake version 3.1
Using Qt version 5.12.5 in /home/lohand/t507/arm_qt5/lib
Please post errors as text.
I'm sorry about that. Here is the complete compiled output:
lohand@t507:~/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects$ make -j8
cd src/ && ( test -e Makefile || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/src.pro ) && make -f Makefile
make[1]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src'
cd effects/ && ( test -e Makefile || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/effects.pro ) && make -f Makefile
make[2]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects'
( test -e Makefile.effects_plugin || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile.effects_plugin /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/effects_plugin.pro ) && make -f Makefile.effects_plugin
cd private/ && ( test -e Makefile || /home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/qmake -o Makefile /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/private/private.pro ) && make -f Makefile
make[3]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects'
rm -f libqtgraphicaleffectsplugin.so
/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/aarch64-linux-gnu-g++ --sysroot=/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/aarch64-buildroot-linux-gnu/sysroot -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -shared -o libqtgraphicaleffectsplugin.so .obj/plugin.o .obj/qrc_qtgraphicaleffectsshaders.o -latomic /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/lib/libQt5Quick.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/lib/libQt5Gui.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/lib/libQt5Qml.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/lib/libQt5Network.so /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/lib/libQt5Core.so -lGL -lpthread -lrt -lpthread -ldl
make[3]: Entering directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/private'
/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/bin/aarch64-linux-gnu-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DEGL_FBDEV -std=c++11 --sysroot=/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/aarch64-buildroot-linux-gnu/sysroot -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQuick/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQuick/5.12.5/QtQuick -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQuick -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/5.12.5/QtGui -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQml/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQml/5.12.5/QtQml -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtdeclarative/include/QtQml -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtNetwork -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtCore/5.12.5 -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtCore/5.12.5/QtCore -I/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtCore -I.moc -I/home/lohand/t507/OKT507-linux-sdk/out/t507/okt507/longan/buildroot/host/mkspecs/devices/linux-buildroot-g++ -o .obj/qgfxshaderbuilder.o qgfxshaderbuilder.cpp
/home/lohand/t507/OKT507-linux-sdk/out/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/7.4.1/../../../../aarch64-linux-gnu/bin/ld.gold: error: cannot find -lGL
collect2: error: ld returned 1 exit status
Makefile.effects_plugin:70: recipe for target '../../qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so' failed
make[3]: *** [../../qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so] Error 1
make[3]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects'
Makefile:45: recipe for target 'sub-effects_plugin-pro-make_first' failed
make[2]: *** [sub-effects_plugin-pro-make_first] Error 2
make[2]: *** Waiting for unfinished jobs....
qgfxshaderbuilder.cpp: In constructor ‘QGfxShaderBuilder::QGfxShaderBuilder()’:
qgfxshaderbuilder.cpp:68:20: error: aggregate ‘QOpenGLContext context’ has incomplete type and cannot be defined
QOpenGLContext context;
^~~~~~~
qgfxshaderbuilder.cpp:81:50: error: incomplete type ‘QOpenGLContext’ used in nested name specifier
QOpenGLContext *oldContext = QOpenGLContext::currentContext();
^~~~~~~~~~~~~~
qgfxshaderbuilder.cpp:82:51: error: invalid use of incomplete type ‘class QOpenGLContext’
QSurface *oldSurface = oldContext ? oldContext->surface() : 0;
^~
In file included from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurfaceformat.h:1:0,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurface.h:45,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurface.h:1,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qoffscreensurface.h:45,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qoffscreensurface.h:1,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/QOffscreenSurface:1,
from qgfxshaderbuilder.cpp:43:
/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurfaceformat.h:49:7: note: forward declaration of ‘class QOpenGLContext’
class QOpenGLContext;
^~~~~~~~~~~~~~
qgfxshaderbuilder.cpp:84:9: error: ‘QOpenGLFunctions’ was not declared in this scope
QOpenGLFunctions *gl = context.functions();
^~~~~~~~~~~~~~~~
qgfxshaderbuilder.cpp:84:9: note: suggested alternative: ‘QOpenGLContext’
QOpenGLFunctions *gl = context.functions();
^~~~~~~~~~~~~~~~
QOpenGLContext
qgfxshaderbuilder.cpp:84:27: error: ‘gl’ was not declared in this scope
QOpenGLFunctions *gl = context.functions();
^~
qgfxshaderbuilder.cpp:98:23: error: invalid use of incomplete type ‘class QOpenGLContext’
oldContext->makeCurrent(oldSurface);
^~
In file included from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurfaceformat.h:1:0,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurface.h:45,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qsurface.h:1,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qoffscreensurface.h:45,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/qoffscreensurface.h:1,
from /home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/QOffscreenSurface:1,
from qgfxshaderbuilder.cpp:43:
/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtbase/include/QtGui/../../src/gui/kernel/qsurfaceformat.h:49:7: note: forward declaration of ‘class QOpenGLContext’
class QOpenGLContext;
^~~~~~~~~~~~~~
Makefile:2159: recipe for target '.obj/qgfxshaderbuilder.o' failed
make[3]: *** [.obj/qgfxshaderbuilder.o] Error 1
make[3]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects/private'
Makefile:64: recipe for target 'sub-private-make_first' failed
make[2]: *** [sub-private-make_first] Error 2
make[2]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src/effects'
Makefile:46: recipe for target 'sub-effects-make_first' failed
make[1]: *** [sub-effects-make_first] Error 2
make[1]: Leaving directory '/home/lohand/t507/qt/qt_creator_5.12.5/5.12.5/Src/qtgraphicaleffects/src'
Makefile:47: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2