Results 1 to 2 of 2

Thread: Error compiling Qtdeclarative for arm / cannot find existing libraries

  1. #1
    Join Date
    Aug 2013
    Posts
    15
    Thanks
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Question Error compiling Qtdeclarative for arm / cannot find existing libraries

    Good day fellow programmers,
    I am trying to cross-compile Qt 5.1.1 for a Nitrogen6x running Debian Wheezy.
    The host is an Ubuntu 12.10 32bit machine and the toolchain is gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.

    Qtbase has successfully been build, using only static libraries support though.
    What I am having problems with is compiling qtdeclarative which runs into errors during the make process (qtjsbackend compiled just fine).

    This is the error output:

    Qt Code:
    1. /home/finn/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory
    2. /home/finn/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
    3. /home/finn/qt/qtbase/lib/libQt5Core.a(qlibrary_unix.o): In function `QLibraryPrivate::load_sys()':
    4. qlibrary_unix.cpp:(.text+0xaac): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    5. /home/finn/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lqxcb
    6. /home/finn/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/arm-linux-gnueabihf/libpthread.so.0
    7. /home/finn/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/arm-linux-gnueabihf/libpthread_nonshared.a
    8. collect2: error: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    Here is a part of my qmake file:

    Qt Code:
    1. QMAKE_INCDIR = /media/finn/d6ff8d38-92e1-465a-a512-2be56071338d/usr/include
    2. QMAKE_INCDIR +=/media/finn/d6ff8d38-92e1-465a-a512-2be56071338d/usr/include/arm-linux-gnueabihf/
    3. QMAKE_LIBDIR = /media/finn/d6ff8d38-92e1-465a-a512-2be56071338d/usr/lib
    4. QMAKE_LIBDIR +=/media/finn/d6ff8d38-92e1-465a-a512-2be56071338d/usr/lib/arm-linux-gnueabihf/
    To copy to clipboard, switch view to plain text mode 


    The libraries it is asking for are present in the directories specified in qmake.
    I already tried adding
    Qt Code:
    1. LIBRARY_PATH=/media/finn/d6ff8d38-92e1-465a-a512-2be56071338d/usr/lib/arm-linux-gnueabihf
    To copy to clipboard, switch view to plain text mode 
    to the make command but this sadly didn't change a thing.

    What I think is strange is that I've encountered pretty much the same error when I tried to compile qtbase with shared libraries instead of static ones.

    Does anyone has an idea how to fix this?
    Any help will be greatly appreciated!

  2. #2
    Join Date
    Aug 2013
    Posts
    15
    Thanks
    4
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error compiling Qtdeclarative for arm / cannot find existing libraries

    It's me again and I found the solution to my problem:
    Simply reinstall the host machine.

    It sure isn't an elegant solution but it's working for me.

Similar Threads

  1. "Cannot find -lqjpeg" error when compiling QT application in static mode
    By JonathanReez in forum Installation and Deployment
    Replies: 7
    Last Post: 6th September 2011, 15:44
  2. Replies: 5
    Last Post: 17th May 2011, 11:47
  3. how to exclude few libraries from existing QT source code?
    By nivditha in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 13th October 2010, 07:06
  4. Compiling errors - can't find the libraries
    By magelet in forum Newbie
    Replies: 7
    Last Post: 24th May 2010, 08:24
  5. Replies: 1
    Last Post: 3rd December 2009, 10:17

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.