Results 1 to 4 of 4

Thread: Qt4.6.0 release cross compiling error

  1. #1
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Qt4.6.0 release cross compiling error

    Hi,

    I am crossing compile Qt4.6 for arm. my configure arguments like below:

    Qt Code:
    1. ./configure -prefix /opt -opensource -embedded arm -xplatform qws/linux-arm-g++ -nomake demo -nomake example -nomake docs -no-webkit -no-qt3support -phonon -phonon-backend -no-mmx -no-3dnow -no-sse -no-sse2 -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/ -L ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gstreamer-0.10 -I /home/user/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libxml2/ -lglib-2.0 -lgthread-2.0 -lxml2 -v
    To copy to clipboard, switch view to plain text mode 

    at the end of configuration, I got:

    Qt Code:
    1. SQLite support ...... plugin (qt)
    2. OpenSSL support ..... yes (run-time)
    3. alsa support ........ yes
    4.  
    5. Finding project files. Please wait...
    6. Project MESSAGE: Unknown PROJECT: libsss
    7. Project MESSAGE: Unknown PROJECT: libsss
    8. 782 projects found.
    9.  
    10. Creating makefiles. Please wait...
    11.  
    12. Qt is now configured for building. Just run 'make'.
    13. Once everything is built, you must run 'make install'.
    14. Qt will be installed into /opt
    15.  
    16. To reconfigure, run 'make confclean' and 'configure'.
    To copy to clipboard, switch view to plain text mode 

    it don't create any makefiles at all. so when I type "make", it does nothing. why did this happen? or what did I do wrong?

  2. #2
    Join Date
    Jan 2009
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Qt4.6.0 release cross compiling error

    Hi, I don't know why above errors happened. but until I redo unpacking Qt sources package, and configure like below, it can read pro file and generate Makefiles. after then,
    I can issue "make" to compile Qt.

    Qt Code:
    1. ./configure -prefix /opt -opensource -embedded arm -xplatform qws/linux-arm-g++ \ -no-qt3support -nomake docs -nomake examples -phonon -phonon-backend -no-webkit \ -no-mmx -no-3dnow -no-sse -no-sse2 -no-nis -no-cups -no-dbus -no-opengl \ -no-openvg -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/ \ -L ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib \ -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 \ -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/gstreamer-0.10 \
    2. -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/liboil-0.3 \
    3. -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/libxml2 \
    4. -I ~/hd/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0 \
    5. -lglib-2.0 -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lxml2 -v
    To copy to clipboard, switch view to plain text mode 

    but these time, I got new problems. the compilation is stopped at errors:

    Qt Code:
    1. You have not explicitly asked to use pkg-config and are cross-compiling.
    2. pkg-config will not be used to automatically query cflag/lib parameters for
    3. dependencies
    4.  
    5. /home/user/hd/qt-everywhere-opensource-src-4.6.0/bin/uic dialogs/qpagesetupwidget.ui -o .uic/release-shared-emb-arm/ui_qpagesetupwidget.h
    6. make[1]: *** [.uic/release-shared-emb-arm/ui_qpagesetupwidget.h] Segmentation fault
    7. make[1]: *** Deleting file `.uic/release-shared-emb-arm/ui_qpagesetupwidget.h'
    8. make[1]: Leaving directory `/home/user/hd/qt-everywhere-opensource-src-4.6.0/src/gui'
    9. make: *** [sub-gui-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    I have two questions:

    first, I don't set pkg-config when cross compiling, but I set -I, -L options instead. I want to know how to set pkg_config. does it should be set like this "export PKG_CONFIG_PATH=/path/to/dir/pkgconfig/" , and then, "./configure ..."? but it seems that didn't work. what did I do wrong?

    the second, the building process is stopped by the uic segmentation fault. the uic generated can't create cpp source from Qt ui files. I checked it using "file uic", It shows that it's a x86 binary. I replaced it with local uic( from another qt for desktop x11), it can get through the errors. why? and what happened?

    I really appreciate your help.

  3. The following user says thank you to favor for this useful post:

    huanghaili (25th October 2011)

  4. #3

    Default Re: Qt4.6.0 release cross compiling error

    I have been having the same problem,
    and I am starting to believe UIC tool has problem when you compile it with threads.
    If you, in fact, do not link towards a thread libraries (and you remove the packages which need threads)
    to me the compilation works fine. But I have not found a solution to compile it with threads and succesfully


    Any help would be highly appreciated
    Last edited by edmondo1984; 8th March 2010 at 09:03.

  5. #4

    Default Re: Qt4.6.0 release cross compiling error

    I actually solved that, see another thread of mine.
    http://www.qtcentre.org/threads/2874...799#post135799
    Regards
    Edmondo

Similar Threads

  1. error compiling for QtCppIntegration
    By mzeal in forum Qwt
    Replies: 1
    Last Post: 5th January 2012, 08:25
  2. Gtk error when installing Qt in linux
    By john_god in forum Installation and Deployment
    Replies: 1
    Last Post: 18th November 2009, 05:08
  3. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19

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.