November 24, 2010

niqt niqt
Lab Rat
72 posts

[Solved] Cross compile

 

hi,
I’m trying to compile qt for x86 platform with toolchain
other than the host, the result is qt with framebuffer, instead I want qt with x11. How do I configure to get with x11?

3 replies

November 25, 2010

anselmolsm anselmolsm
Ant Farmer
417 posts

Check if this other toolchain finds correctly the dependencies listed in this page [doc.trolltech.com]

Provide more information about your environment, it can help us to find your issue :-)

 Signature 

Anselmo L. S. Melo (anselmolsm)
www.anselmolsm.org

November 25, 2010

niqt niqt
Lab Rat
72 posts

i try to compile with the buildroot uclib toolchain. I have added in mkspecs my dir for the crosscompiling copied from linux-g++ with the difference of the qmake.conf. The qmake.conf has that information:

  1. MAKEFILE_GENERATOR      = UNIX
  2. TARGET_PLATFORM         = unix
  3. TEMPLATE                = app
  4. CONFIG                  += qt warn_on release incremental link_prl
  5. QT                      += core gui
  6. QMAKE_INCREMENTAL_STYLE = sublib
  7.  
  8. include(../common/g++.conf)
  9. include(../common/linux.conf)
  10. QMAKE_QMAKE_INCDIR_X11 = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/include/
  11. QMAKE_QMAKE_LIBDIR_X11 = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/target/usr/lib/
  12. QMAKE_LFLAGS = -L/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/lib -L/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/lib
  13. QMAKE_CXXFLAGS = --sysroot=/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging -pipe -Os  -mtune=i686 -march=i686 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/include -I/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/include
  14. QMAKE_CFLAGS = --sysroot=/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging -pipe -Os  -mtune=i686 -march=i686 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/include -I/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/include
  15. QMAKE_STRIP = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-strip
  16. QMAKE_RANLIB = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-ranlib
  17. QMAKE_OBJCOPY = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-objcopy
  18. QMAKE_AR = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-ar cqs
  19. QMAKE_LINK_SHLIB = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-g++ --sysroot=/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging
  20. QMAKE_LINK = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-g++ --sysroot=/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging
  21. QMAKE_CXX = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-g++
  22. QMAKE_CC = /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/bin/i686-unknown-linux-uclibc-gcc
  23. load(qt_config)

after when i try to compile with:

  1. PKG_CONFIG_SYSROOT_DIR="/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging" PKG_CONFIG="/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/host/usr/bin/pkg-config" PKG_CONFIG_PATH="/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr/lib/pkgconfig:" ./configure -silent -force-pkg-config   -opensource -confirm-license -xplatform linux-x11-crosscompile-g++ -arch i386 -largefile -no-qt3support -nomake examples -nomake demos -depths 8,16,32 -no-gfx-linuxfb -no-gfx-transformed -no-gfx-qvfb -no-gfx-vnc -no-gfx-multiscreen -no-gfx-directfb -no-mouse-pc -no-mouse-linuxtp -no-mouse-linuxinput -no-mouse-tslib -no-mouse-qvfb -no-kbd-tty -no-kbd-linuxinput -no-kbd-qvfb -release -shared -little-endian -no-gif -no-libmng -qt-zlib -no-libjpeg -no-libpng -no-libtiff -no-freetype -no-openssl -no-sql-sqlite -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-svg -no-webkit -script -no-scripttools -javascript-jit -no-stl -no-gfx-qnx -no-kbd-qnx -no-mouse-qnx -no-cups -no-nis -no-accessibility -no-separate-debug-info -prefix /usr -hostprefix /home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/staging/usr -fast -no-rpath ;

i have this problem at linking:
  1. compiling .moc/release-shared/moc_qdeclarativedebug_p.cpp
  2. rm -f libQtDeclarative.so.4.7.0 libQtDeclarative.so libQtDeclarative.so.4 libQtDeclarative.so.4.7
  3. linking ../../lib/libQtDeclarative.so.4.7.0
  4. .obj/release-shared/moc_qdeclarativeview.o:(.data.rel.ro._ZTV16QDeclarativeView[vtable for QDeclarativeView]+0xb0): undefined reference to `QWidget::x11Event(_XEvent*)'
  5. collect2: ld returned 1 exit status
  6. make[1]: *** [../../lib/libQtDeclarative.so.4.7.0] Errore 1
  7. make[1]: uscita dalla directory «/home/vittorio/lavoro/media_box/buildroot/buildroot-2010.08/output/build/qt-everywhere-opensource-src-4.7.0/src/declarative»
  8. make: *** [sub-declarative-make_default-ordered] Errore 2

have some idea to solve the problem?

thanks

November 26, 2010

niqt niqt
Lab Rat
72 posts

Resolved with gcc 4.4

 
  ‹‹ Freetype font rendering on Windows?      Installation issues - Virus checker might be causing problems ››

You must log in to post a reply. Not a member yet? Register here!