Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.5.0, 5.5.1
-
None
Description
I have the problem while cross compiling Qt 5.5.0 on my Linux PC (x64) for ARM (BeagleBone or Raspberry PI).
When configuring Qt before "make" I can't get MySql plugin available:
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ no
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. no
but it should!
I configured with:
./configure -opensource -confirm-license -no-pch -prefix /opt/qt551-bbbhf -release -force-debug-info -device linux-bbbhf-g++ -make libs -nomake tests -nomake examples -device-option CROSS_COMPILE=/opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/bbbhf
and I mounted the Raspberry or BeagleBone SD card on /mnt/bbbhf .
On the configuration log (passing -v to the configure command) I can see:
MySQL (thread-safe) auto-detection... () /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard --sysroot=/mnt/bbbhf -O2 -g -Wall -W -fPIC -I. -I/usr/include/mysql -I../../../mkspecs/devices/linux-bbbhf-g++ -o mysql.o ../mysql/mysql.cpp /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ --sysroot=/mnt/bbbhf -o mysql_r mysql.o -lrt --sysroot=/mnt/bbbhf -L/usr/lib64 -lpthread -lz -lm -lssl -lcrypto -ldl -lmysqlclient_r /usr/lib64/librt.so: file not recognized: File format not recognized collect2: error: ld returned 1 exit status
As you can see, the problem is the:
-L/usr/lib64
If I remove by hand the -L/usr/lib64 it works fine.
Attachments
Issue Links
- duplicates
-
QTBUG-42284 configure script adds host paths to gcc include and linking params
- Closed