I am trying to build Qt on my raspberry pi with jessie on it.
The configure option that I have provided are as below for my build:
./configure -v -opengl es2 -device linux-rasp-pi-g''+ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5
However, I am getting the below error pertaining to QtWayland ...
Project ERROR: wayland-client development package not found
Makefile:54: recipe for target 'sub-brcm-egl-install_subtargets' failed
make[5]: *** [sub-brcm-egl-install_subtargets] Error 3
make[5]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src/plugins/hardwareintegration/client'
Makefile:54: recipe for target 'sub-client-install_subtargets' failed
make[4]: *** [sub-client-install_subtargets] Error 2
make[4]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src/plugins/hardwareintegration'
Makefile:81: recipe for target 'sub-hardwareintegration-install_subtargets' failed
make[3]: *** [sub-hardwareintegration-install_subtargets] Error 2
make[3]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src/plugins'
Makefile:107: recipe for target 'sub-plugins-install_subtargets' failed
make[2]: *** [sub-plugins-install_subtargets] Error 2
make[2]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland/src'
Makefile:56: recipe for target 'sub-src-install_subtargets' failed
make[1]: *** [sub-src-install_subtargets] Error 2
make[1]: Leaving directory '/home/pi/packages/qt5/qt-everywhere-opensource-src-5.5.1/qtwayland'
Makefile:737: recipe for target 'module-qtwayland-install_subtargets' failed
make: *** [module-qtwayland-install_subtargets] Error 2
Is there any way that I can disable the QtWayland option during Qt build?
You can skip it while doing configure
./configure -skip wayland.
Related
The compiling process breaks at around 11%. I'm inside the azerothcore/build/ directory and running the command
make -j4
Errors are included below.
^
23 warnings and 1 error generated.
29 warnings and 1 error generated.
src/server/shared/CMakeFiles/shared.dir/build.make:120: recipe for target 'src/server/shared/CMakeFiles/shared.dir/Realms/RealmList.cpp.o' failed
make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Realms/RealmList.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/server/shared/CMakeFiles/shared.dir/build.make:81: recipe for target 'src/server/shared/CMakeFiles/shared.dir/DataStores/DBCDatabaseLoader.cpp.o' failed
make[2]: *** [src/server/shared/CMakeFiles/shared.dir/DataStores/DBCDatabaseLoader.cpp.o] Error 1
7 warnings generated.
CMakeFiles/Makefile2:943: recipe for target 'src/server/shared/CMakeFiles/shared.dir/all' failed
make[1]: *** [src/server/shared/CMakeFiles/shared.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2
I'm using these version of gcc and cmake.
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
cmake 3.18.2
Your compiler version is too old. Try a newer version of gcc or clang.
You need AT LEAST gcc 7.5+ or clang 6, however the latest stable version is recommended.
I started doing cross compile following this steps:
At step 10 after doing the configuration with this command:
I run the make command and revice the following errors:
Any Ideas about solving this?
https://wiki.qt.io/RaspberryPi2EGLFS
Configure command:
./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/mihai/Desktop/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-use-gold-linker
make command result:
/home/mihai/Desktop/raspi/qtbase/lib/libQt5EglSupport.a(qeglplatformcontext.o): In function QEGLPlatformContext::getProcAddress(char const*)': qeglplatformcontext.cpp:(.text+0xa4): undefined reference todlsym'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile.eglfsdeviceintegration:252: ../../../../lib/libQt5EglFSDeviceIntegration.so.5.12.5] Error 1
make[5]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins/platforms/eglfs'
make[4]: *** [Makefile:46: sub-eglfsdeviceintegration-pro-make_first-ordered] Error 2
make[4]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins/platforms/eglfs'
make[3]: *** [Makefile:102: sub-eglfs-make_first] Error 2
make[3]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins/platforms'
make[2]: *** [Makefile:78: sub-platforms-make_first] Error 2
make[2]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins'
make[1]: *** [Makefile:832: sub-plugins-make_first] Error 2
make[1]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src'
make: *** [Makefile:51: sub-src-make_first] Error 2
So here's the thing: I downloaded the Qt 4.7 tar and I'm installing on Ubuntu 16. I unzip the downloaded folder and installed all libs that were preventing me to run the ./configure
After I could run the configure, the make runs but get an error at some point. Here's what I get when I run 'make configure' or 'make':
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make configure
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
I really appreciate the help, Ty :D
Building Qwt with Qt 5 fails (with Qt 4 works) in Windows 7 64 bits. I tried via Qt Creator and via CLI but both ends in:
12:51:08: Running steps for project qwt...
12:51:08: Starting: "C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\qmake.exe" C:\qwt-6.1.2\qwt.pro -r -spec win32-g++ "CONFIG+=debug"
Reading C:/qwt-6.1.2/src/src.pro
Reading C:/qwt-6.1.2/textengines/textengines.pro
Reading C:/qwt-6.1.2/doc/doc.pro
Reading C:/qwt-6.1.2/designer/designer.pro
Project MESSAGE: debug_and_release: building the Qwt designer plugin in release mode only
12:51:10: The process "C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\qmake.exe" exited normally.
12:51:10: Starting: "C:\Qt\Qt5.3.2\Tools\mingw482_32\bin\mingw32-make.exe" -j3
cd src/ && ( test -e Makefile || C:/Qt/Qt5.3.2/5.3/mingw482_32/bin/qmake.exe C:/qwt-6.1.2/src/src.pro -spec win32-g++ CONFIG+=debug -o Makefile ) && C:/Qt/Qt5.3.2/Tools/mingw482_32/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/qwt-6.1.2/src'
C:/Qt/Qt5.3.2/Tools/mingw482_32/bin/mingw32-make -f Makefile.Debug all
C:/Qt/Qt5.3.2/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release all
mingw32-make[2]: Entering directory 'C:/qwt-6.1.2/src'
mingw32-make[2]: Entering directory 'C:/qwt-6.1.2/src'
moc qwt_dyngrid_layout.h
moc qwt_magnifier.h
moc qwt_dyngrid_layout.h
/usr/bin/sh: C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\moc.exe: command not found
/usr/bin/sh: C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\moc.exe: command not found
/usr/bin/sh: C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\moc.exe: command not found
Makefile.Debug:455: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed
mingw32-make[2]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 127
mingw32-make[2]: Leaving directory 'C:/qwt-6.1.2/src'
Makefile.Release:455: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed
mingw32-make[2]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 127
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[2]: *** [moc/moc_qwt_magnifier.cpp] Error 127
Makefile.Release:507: recipe for target 'moc/moc_qwt_magnifier.cpp' failed
mingw32-make[2]: Leaving directory 'C:/qwt-6.1.2/src'
Makefile:38: recipe for target 'debug-all' failed
Makefile:52: recipe for target 'release-all' failed
mingw32-make[1]: Leaving directory 'C:/qwt-6.1.2/src'
Makefile:41: recipe for target 'sub-src-make_first-ordered' failed
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [release-all] Error 2
mingw32-make: *** [sub-src-make_first-ordered] Error 2
12:51:11: The process "C:\Qt\Qt5.3.2\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project qwt (kit: Desktop)
When executing step "Make"
12:51:11: Elapsed time: 00:03.
I tried to remove all Qt installations from the computer and re-install only qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe but the issue persists.
Any suggestion?
I'm trying building new version 5.5.1 on win32
After
configure -static -release -opensource -qt-sql-sqlite –platform win32-g++ -opengl desktop
and
MinGW-make
after just one minute:
c:\mingw\include\math.h: In function 'float hypotf(float, float)':
c:\mingw\include\math.h:635:30: error: '_hypot' was not declared in this scope
{ return (float)(_hypot (x, y)); }
^
Makefile.Release:316: recipe for target '.obj/release/moc.o' failed
mingw32-make[4]: *** [.obj/release/moc.o] Error 1
mingw32-make[4]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:34: recipe for target 'release' failed
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src/tools/moc'
Makefile:86: recipe for target 'sub-moc-make_first' failed
mingw32-make[2]: *** [sub-moc-make_first] Error 2
mingw32-make[2]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/Qt/5.5/qt-everywhere-opensource-src-5.5.1
/qtbase'
Makefile:68: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
I read that maybe possibly perform construction msvc or try mingw64 but I need it on Windows 32 with platform win32-g++
You really can not build this version with win32 and win32-g++ platform??
Any suggestions please, welcome any help.
SOLUTION.................................................................................................................................................
You can compile QT 5.5.1 with MinGW-64 project.
This project also works on 32 bits.
It´s not possible to compile with the "typical" version minimalist, neither changing the libraries. MinGW-64 project is not available from MinGW Installation Manager, I do not understand this and dislike me as an advocate for alternatives like mingw, I could always download from this manager all I need, now this manager... should improve.
After installing MinGW-64 project in all programs MinGW-64 project Run terminal
cd pathQTconfigure
configure -static -release -opensource –platform win32-g++ -opengl desktop
mingw-make
THANKS TO ALL :)