WA_AlwaysStackOnTop error [SOLVED]
-
So how I can fix this error?
mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
mainwindow.cpp:122:35: error: 'WA_AlwaysStackOnTop' is not a member of 'Qt'
mainwindow.cpp:123:22: error: 'class QQuickWidget' has no member named 'setClearColor'
Makefile:2002: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1Regards, Niko H.
-
Hi,
WA_AlwaysStackOnTop is part of Qt since 5.4. Are you using that version or a more recent ?
-
Yes, I use 5.3, how to upgrade 5.4?
Regards, Niko H.
-
It depends on how you installed Qt. If using the online installer, you can simply run the maintenance tool application.
-
It depends on how you installed Qt. If using the online installer, you can simply run the maintenance tool application.
@SGaist I mean how I build that for Raspberry pi?
-
Did you already cross-compile Qt for the Raspberry Pi or are you using a Linux distribution that provides it ?
-
Did you already cross-compile Qt for the Raspberry Pi or are you using a Linux distribution that provides it ?
@SGaist I use repository where is 5.3 version qt.
-
@SGaist I use repository where is 5.3 version qt.
I try compile in raspberry pi qt 5.5.1, but I get this error:
The test for linking against libxcb and support libraries failed!
You might need to install dependency packages, or pass -qt-xcb.
See src/plugins/platforms/xcb/README.
I'am already installed xcb, but it's not working.... -
Did you install the dev packages ?
-
Did you already cross-compile Qt for the Raspberry Pi or are you using a Linux distribution that provides it ?
@SGaist I get same error when I do cross compile. Any tips?
-
Again: did you install the dev-packages of xcb ?
-
@SGaist Maybe not, what is the packages name? Something I install, but maybe that need more packages...
-
The package name depends on the Linux flavor you are using. Search for xcb in the package manager of your distribution.
-
The package name depends on the Linux flavor you are using. Search for xcb in the package manager of your distribution.
@SGaist Hi, I try conpile, but after over 12 hours I get this error:
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QOpenGLContextPrivate::globalShareContext()'
collect2: error: ld returned 1 exit status
Makefile.WebProcess:100: recipe for target '../../bin/QtWebProcess' failed
make[3]: *** [../../bin/QtWebProcess] Error 1
make[3]: Leaving directory '/home/pi/qt-everywhere-opensource-src-5.5.1/qtwebkit/Source/WebKit2'
Makefile.QtWebKit:105: recipe for target 'sub-WebKit2-WebProcess-pro-make_first-ordered' failed
make[2]: *** [sub-WebKit2-WebProcess-pro-make_first-ordered] Error 2
make[2]: Leaving directory '/home/pi/qt-everywhere-opensource-src-5.5.1/qtwebkit/Source'
Makefile:351: recipe for target 'sub-Source-QtWebKit-pro-make_first-ordered' failed
make[1]: *** [sub-Source-QtWebKit-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/qt-everywhere-opensource-src-5.5.1/qtwebkit'
Makefile:490: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2
What was wrong? -
Are you mixing different version of Qt ?
-
@SGaist No, I try compile 5.5.1 and also I try older version, but that give different error. This error is 5.5.1 version.
BR. Niko H.
-
Are you sure you're not using the older version to try to compile the webkit module ?
-
@SGaist no, it's new 5.5.1.
-
@SGaist What libs webkit need?
-
It looks like you are currently linking your Qt 5.5.1 WebKit with a locally installed version of Qt. Where does /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5 come from ?