*Hi,* *I am configuring Qt5 for beaglebone black which runs ubuntu.*
*this is my configure line, I added so many -no options to reduce the errors.* - ./configure -v -opensource -confirm-license -prefix /usr/local/qt5 -no-largefile -no-accessibility -qt-zlib -no-gif -qt-libpng -qt-libjpeg -no-nis -no-cups -xplatform linux-arm-gnueabi-g++ -device linux-beaglebone-ubuntu-14.04-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -qreal float -sysroot /home/emayssat/sysroot/ubuntu_14.04 -no-opengl -opengl es2 -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-sse2 -no-c++11 -no-dbus -no-mtdev -no-icu -no-pulseaudio -no-xcb *This is my qmake.conf file, * - MAKEFILE_GENERATOR = UNIXCONFIG += incrementalQMAKE_INCREMENTAL_STYLE = sublibinclude(../../common/linux.conf)include(../../common/gcc-base-unix.conf)include(../../common/g++-unix.conf)load(device_config)#EMMANUELQMAKE_LIBDIR += $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/QMAKE_LIBDIR += $$[QT_SYSROOT]/usr/libQMAKE_LIBDIR += $$[QT_SYSROOT]/lib/arm-linux-gnueabihfQMAKE_LIBDIR += $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/mesa-eglQMAKE_INCDIR += $$[QT_SYSROOT]/usr/includeQMAKE_INCDIR += $$[QT_SYSROOT]/usr/include/mysqlQMAKE_INCDIR += $$[QT_SYSROOT]/usr/include/freetype2QMAKE_INCDIR += $$[QT_SYSROOT]/usr/include/glib-2.0QMAKE_INCDIR += $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/glib-2.0QMAKE_INCDIR += $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/glib-2.0/includeQMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf#EMMANEULQT_QPA_DEFAULT_PLATFORM = eglfs# modifications to g++.confQMAKE_CC = $${CROSS_COMPILE}gccQMAKE_CXX = $${CROSS_COMPILE}g++QMAKE_LINK = $${QMAKE_CXX}QMAKE_LINK_SHLIB = $${QMAKE_CXX}# modifications to linux.confQMAKE_AR = $${CROSS_COMPILE}ar cqsQMAKE_OBJCOPY = $${CROSS_COMPILE}objcopyQMAKE_NM = $${CROSS_COMPILE}nm -PQMAKE_STRIP = $${CROSS_COMPILE}stripCOMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp#COMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=softfp#modifications to gcc-base.confQMAKE_CFLAGS += $${COMPILER_FLAGS}QMAKE_CXXFLAGS += $${COMPILER_FLAGS}QMAKE_CXXFLAGS_RELEASE += -O3QMAKE_LIBS += -lrt -lpthread -ldl# Extra stuff (OpenGL, DirectFB, ...)QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/includeQMAKE_LIBDIR_EGL = $$[QT_SYSROOT]/usr/libQMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}QMAKE_LIBDIR_OPENGL_ES2 = $${QMAKE_LIBDIR_EGL}QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL}QMAKE_LIBDIR_OPENVG = $${QMAKE_LIBDIR_EGL}QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um#EMMANUELQMAKE_LIBS_EGL = -lEGL#EMMANEULQMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL}QMAKE_LIBS_OPENVG = -lOpenVG $${QMAKE_LIBS_EGL}# Sanity checkdeviceSanityCheckCompiler()load(qt_config) *I have added the QMAKE_LIBDIR AND QMAKE_INCDIR because the compiler was not able to find few library and header files during configure.* *Point is, The compilation process is able to atleast detect my target architecture wen i comment out the line;* QMAKE_LIBDIR += $$[QT_SYSROOT]/lib/arm-linux-gnueabihf *but this gives me libraries not found errors. And when i un-comment it, the compilation process says, "architecture not detected" as shown below;* Determining architecture... ()/usr/bin/arm-linux-gnueabi-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp --sysroot=/home/emayssat/sysroot/ubuntu_14.04 -g -Wall -W -fPIE -I/home/emayssat/qt-everywhere-opensource-src-5.3.1/qtbase/mkspecs/devices/linux-beaglebone-ubuntu-14.04-g++ -I/home/emayssat/qt-everywhere-opensource-src-5.3.1/qtbase/config.tests/arch -I/home/emayssat/sysroot/ubuntu_14.04/usr/include -I/home/emayssat/sysroot/ubuntu_14.04/usr/include/mysql -I/home/emayssat/sysroot/ubuntu_14.04/usr/include/freetype2 -I/home/emayssat/sysroot/ubuntu_14.04/usr/include/glib-2.0 -I/home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf/glib-2.0 -I/home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I. -o arch.o /home/emayssat/qt-everywhere-opensource-src-5.3.1/qtbase/config.tests/arch/arch.cpp/usr/bin/arm-linux-gnueabi-g++ -Wl,-rpath-link,/home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf -o arch arch.o -L/home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf/ -L/home/emayssat/sysroot/ubuntu_14.04/usr/lib -L/home/emayssat/sysroot/ubuntu_14.04/lib/arm-linux-gnueabihf -L/home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf/mesa-egl -lrt -lpthread -ldl --sysroot=/home/emayssat/sysroot/ubuntu_14.04 /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: error: /home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf//libc_nonshared.a(elf-init.oS) uses VFP register arguments, arch does not/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: failed to merge target specific data of file /home/emayssat/sysroot/ubuntu_14.04/usr/lib/arm-linux-gnueabihf//libc_nonshared.a(elf-init.oS)collect2: error: ld returned 1 exit statusmake: *** [arch] Error 1Unable to determine architecture!Could not determine the target architecture!Turn on verbose messaging (-v) to see the final report.Determining architecture... ()g++ -c -pipe -g -Wall -W -fPIE -I/home/emayssat/qt-everywhere-opensource-src-5.3.1/qtbase/mkspecs/linux-g++ -I/home/emayssat/qt-everywhere-opensource-src-5.3.1/qtbase/config.tests/arch -I. -o arch.o /home/emayssat/qt-everywhere-opensource-src-5.3.1/qtbase/config.tests/arch/arch.cppg++ -o arch arch.o Found architecture in binaryCFG_HOST_ARCH="x86_64"CFG_HOST_CPUFEATURES=" mmx sse sse2"System architecture: 'unknown'Host architecture: 'x86_64' *The system architecture: should show 'arm' instead of 'unknown'.* System architecture: 'unknown' *Can you please tell me where I am going wrong.* *Thanks in advance.* *Sincere Regards,* *Amey Patil*
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest