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. Can't configure Qt5.6 with cups on beaglenobe black debian jessie
Qt 6.11 is out! See what's new in the release blog

Can't configure Qt5.6 with cups on beaglenobe black debian jessie

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 2 Posters 2.7k 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.
  • MiladM Offline
    MiladM Offline
    Milad
    wrote on last edited by
    #1

    Hi,
    When I want to compile Qt with cups, I get the following errors:

    #Note: I mounted the rootfs with sshfs and passed it to -sysroot option in ./configure.

    Cups auto-detection... ()
    /home/milad/Desktop/embedded-dev/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 -mthumb -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard --sysroot=/mnt/bbb -O2 -O3 -std=gnu++0x -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-beagleboard-g++ -o cups.o cups.cpp
    /home/milad/Desktop/embedded-dev/toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/mnt/bbb -Wl,-O1 -o cups cups.o -lrt -lpthread -ldl --sysroot=/mnt/bbb -lcups
    /home/milad/Desktop/embedded-dev/toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libgssapi_krb5.so.2, needed by /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so, not found (try using -rpath or -rpath-link)
    /home/milad/Desktop/embedded-dev/toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libgnutls-deb0.so.28, needed by /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so, not found (try using -rpath or -rpath-link)
    /home/milad/Desktop/embedded-dev/toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libavahi-common.so.3, needed by /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so, not found (try using -rpath or -rpath-link)
    /home/milad/Desktop/embedded-dev/toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libavahi-client.so.3, needed by /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so, not found (try using -rpath or -rpath-link)
    /home/milad/Desktop/embedded-dev/toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/../../../../arm-linux-gnueabihf/bin/ld: warning: libz.so.1, needed by /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so, not found (try using -rpath or -rpath-link)
    /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so: undefined reference to avahi_simple_poll_set_func' /mnt/bbb/usr/lib/arm-linux-gnueabihf/libcups.so: undefined reference to gnutls_record_send@GNUTLS_DEBIAN_0_1_4'
    .
    .
    .
    collect2: error: ld returned 1 exit status
    make: *** [cups] Error 1
    Cups disabled.

    It's complaining about existing some libraries dependencies but i have all of them that location with proper symlinks. seems strange. Any solution to debug this problem?

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

      Hi and welcome to devnet,

      Might be a silly question but: did you install the corresponding dev packages on your BBB debian ?

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

      MiladM 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Might be a silly question but: did you install the corresponding dev packages on your BBB debian ?

        MiladM Offline
        MiladM Offline
        Milad
        wrote on last edited by Milad
        #3

        @SGaist
        Yes , their all installed by libcups2-dev packege , and for files that caused error:

        libgssapi_krb5.so.2
        libgnutls-deb0.so.28
        libavahi-common.so.3
        libavahi-client.so.3
        libz.so.1

        i have them all exactly in /usr/lib/arm-linux-gnueabihf/ of my bbb.
        i can admit that i didn't have this problem in debian wheezy (7.x) with same version of Qt 5.6.0 .

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

          Silly test: try to run configure with your options and add -L /mnt/bbb/usr/lib/arm-linux-gnueabihf/ (with the space)

          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
          • MiladM Offline
            MiladM Offline
            Milad
            wrote on last edited by Milad
            #5

            I solved the issue by passing -rpath-link as following paths to linker.

            • /mnt/bbb/usr/lib/arm-linux-gnueabihf/
              /mnt/bbb/lib/arm-linux-gnueabihf/

            After some investigations i noticed qt already had this option, so i added this line:
            DISTRO_OPTS += deb-multi-arch
            to my qtbase/mkspecs/devices/linux-beagleboard-g++/qmake.conf

            I think qt's documentation for embedded devices is not complete enough.

            BTW: thanks for your help SGaist.

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

              Glad you found out and thanks for sharing !

              Are you trying to build the latest version of Qt ?

              In any case, since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

              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