make: *** [Makefile:51: sub-src-make_first] Error 2
-
Hello everyone, I'm new to qt embedded and I have problem with make command.
I have an ARM-based (Rockchip RK3288, ARM Cortex-A17 CPU, Mali-T760 MP4 (T764) GPU)motherboard and I want to cross-compile using it. I use Debian 9 as the operating system on this card, and I use Ubuntu 21.04 on the host PC.
I used this commands:
./configure -static -release -opengl es2 -device linux-jetway-arm-g++ -device-option CROSS_COMPILE=~/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -no-eglfs -sysroot ~/linaro/sysroot -opensource -confirm-license -prefix /usr/local/qt5li -extprefix ~/linaro/qt5li -hostprefix ~/linaro/qt5 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtlocation -no-gbm -nomake examples -nomake tests -make libs -pkg-config -no-use-gold-linker -v
My configure command works and I get no errors. Then when I run the make -j4 command I get the following error.
make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/gui' make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src' make: *** [Makefile:51: sub-src-make_first] Error 2
Edit 1:
/home/buket/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.5.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> ^~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1677: .pch/Qt5Core.gch/c++] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/home/buket/linaro/qtbase/src/corelib' make[1]: *** [Makefile:227: sub-corelib-make_first] Error 2 make[1]: Leaving directory '/home/buket/linaro/qtbase/src' make: *** [Makefile:51: sub-src-make_first] Error 2
I also ran the make install command because I thought it wouldn't cause any problems and this time I got the errors below.
make[2]: *** [Makefile:28838: .obj/qsslsocket_opensslpre11.o] Error 1 make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/network' make[1]: *** [Makefile:289: sub-network-install_subtargets] Error 2 make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src' make: *** [Makefile:63: sub-src-install_subtargets] Error 2
My qmake.conf file:
# # Generic qmake configuration for building with g++ on arm devices. # # A minimal configure line could look something like this: # ./configure -device arm-generic-g++ -device-option CROSS_COMPILE=arm-linux-gnueabi- include(../common/linux_device_pre.conf) QMAKE_INCDIR_POST += \ $$[QT_SYSROOT]/usr/include \ $$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf QMAKE_LIBDIR_POST += \ $$[QT_SYSROOT]/usr/lib \ $$[QT_SYSROOT]/lib/arm-linux-gnueabihf $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf QMAKE_RPATHLINKDIR_POST += \ $$[QT_SYSROOT]/usr/lib \ $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf \ $$[QT_SYSROOT]/lib/arm-linux-gnueabihf QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/qt5/plugins/egldeviceintegrations DISTRO_OPTS += hard-float COMPILER_FLAGS += -mtune=cortex-a17 -march=armv7-a -mfpu=vfpv3-d16 EGLFS_DEVICE_INTEGRATION = none include(../common/linux_arm_device_post.conf) load(qt_config)
I think there is a problem with my qmake.conf file as I had to edit it myself. Although I made changes in my configure command, the result did not change and since the motherboard I use is not a common card, I can only research according to its processor. How can I run the make command without getting an error?
-
@Buket said in make: *** [Makefile:51: sub-src-make_first] Error 2:
make: *** [Makefile:51: sub-src-make_first] Error 2
Please post the actual error, which should be above this line.
-
@Buket said in make: *** [Makefile:51: sub-src-make_first] Error 2:
I think this is the real error
No
Please post whole build log, but as TEXT. Then others can find the actual error. -
Was this error ever resolved @Buket ?