psql detect wrong path if cross compiling?
-
Hi,
I try to compile qt5.4 for my raspberry pi. It's no problem to build qtbase, but if I enable the psql driver, ./configure stops with an error. It looks like the auto detect mechanism ignores the cross settings. Does anyone know how to fix this?Output:
PostgreSQL auto-detection... ()
/opt/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard -O2 -Wall -W -fPIC -I/opt/rpi/qt5/qtbase/config.tests/unix/psql -I. -I/usr/include/postgresql -I/opt/rpi/qt5/qtbase/mkspecs/devices/linux-rasp-pi-g++ -o psql.o /opt/rpi/qt5/qtbase/config.tests/unix/psql/psql.cpp
/opt/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -Wl,-O1 -o psql psql.o -L/usr/lib/x86_64-linux-gnu -lpq
/usr/lib/x86_64-linux-gnu/libpq.so: file not recognized: File format not recognized -
Hi,
Did you install the PostgreSQL dev package on your Raspberry Pi ?