Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. psql detect wrong path if cross compiling?
Forum Updated to NodeBB v4.3 + New Features

psql detect wrong path if cross compiling?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 517 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HorstJ
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you install the PostgreSQL dev package on your Raspberry Pi ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved