Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

make failed for QT 4.8.4 with tslib



  •  make
    cd src/tools/bootstrap/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/bootstrap'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/bootstrap'
    cd src/tools/moc/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/moc'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/moc'
    cd src/tools/rcc/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/rcc'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/rcc'
    cd src/tools/uic/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/uic'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/uic'
    cd src/corelib/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/corelib'
    /home/ijaz/QT_4_8_4/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -c -include .pch/release-shared-emb-arm/QtCore -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-gnueabihf-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -I/home/ijaz/Desktop/tslib_ins/include -o .obj/release-shared-emb-arm/qglobal.o global/qglobal.cpp
    In file included from global/qglobal.cpp:42:0:
    ../../mkspecs/qws/linux-arm-gnueabihf-g++/qplatformdefs.h:42:40: fatal error: ../linux-g++/qplatformdefs.h: No such file or directory
     #include "../linux-g++/qplatformdefs.h"
                                            ^
    compilation terminated.
    Makefile:9287: recipe for target '.obj/release-shared-emb-arm/qglobal.o' failed
    make[1]: *** [.obj/release-shared-emb-arm/qglobal.o] Error 1
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/corelib'
    Makefile:203: recipe for target 'sub-corelib-make_default-ordered' failed
    make: *** [sub-corelib-make_default-ordered] Error 2
    
    

    Please help me to solve this error


  • Moderators

    Qt 4 is long out of official support. Consider upgrading to Qt 5. Or at least, to the newest release in 4.8.x branch!

    What steps have you taken before calling make? What were your configure flags? Are you cross-compiling? What is the target and host operating system and platform?



  • @sierdzio
    I have tried many time to cross-compile Qt-5.12.x version but configuration step failed every time and I had post my problem many time in this form but did't get solution thats why I am still using qt-4.8.7 for my cross-compilation.

    I have cross-compiled qt4-8-7 successfully for the SDR board ADRV9361 working fine but screen touch not working properly. Screen curser move away from the figure touch. that why I need to reconfigure with tslib .

    Now for cross-compile with tslib I have download qt 4-8-4 as given in the tutorial given in https://importgeek.wordpress.com/2012/04/09/compiling-qt-and-tslib-for-mini2440-and-run-a-demo-app/

    ijaz@ijaz-HP:~/QT_4_8_4/qt-everywhere-opensource-src-4.8.4$ ./configure -opensource -confirm-license -xplatform qws/linux-arm-gnueabihf-g++ -prefix /usr/local/Qt-4.8.4-arm -embedded arm -qt-mouse-tslib -little-endian -no-qt3support -qt-mouse-tslib -qt-mouse-linuxinput
    
    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into /usr/local/Qt-4.8.4-arm
    
    To reconfigure, run 'make confclean' and 'configure'.


  • @sierdzio

    When I make it then.

    ijaz@ijaz-HP:~/QT_4_8_4/qt-everywhere-opensource-src-4.8.4$ make
    cd src/tools/bootstrap/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/bootstrap'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/bootstrap'
    cd src/tools/moc/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/moc'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/moc'
    cd src/tools/rcc/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/rcc'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/rcc'
    cd src/tools/uic/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/uic'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/tools/uic'
    cd src/corelib/ && make -f Makefile 
    make[1]: Entering directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/corelib'
    /home/ijaz/QT_4_8_4/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -c -include .pch/release-shared-emb-arm/QtCore -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-gnueabihf-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/zlib -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -I/home/ijaz/Desktop/tslib_ins/include -o .obj/release-shared-emb-arm/qglobal.o global/qglobal.cpp
    In file included from global/qglobal.cpp:42:0:
    ../../mkspecs/qws/linux-arm-gnueabihf-g++/qplatformdefs.h:42:40: fatal error: ../linux-g++/qplatformdefs.h: No such file or directory
     #include "../linux-g++/qplatformdefs.h"
                                            ^
    compilation terminated.
    Makefile:9290: recipe for target '.obj/release-shared-emb-arm/qglobal.o' failed
    make[1]: *** [.obj/release-shared-emb-arm/qglobal.o] Error 1
    make[1]: Leaving directory '/home/ijaz/QT_4_8_4/qt-everywhere-opensource-src-4.8.4/src/corelib'
    Makefile:204: recipe for target 'sub-corelib-make_default-ordered' failed
    make: *** [sub-corelib-make_default-ordered] Error 2
    
    

  • Moderators

    Perhaps the mkspecs is broken, they are never fully tested (way too many combinations!). Luckily, you can modify mkspecs by hand. Browse the mkspecs directory see if you can find qplatformdefs.h there, if it's missing or in a wrong place you can move it about, or copy the file from other platform and adapt it to your needs.


Log in to reply