Results 1 to 3 of 3

Thread: cross compiling Qt-3.3.8 for powerpc

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default cross compiling Qt-3.3.8 for powerpc

    Hi Everyone,
    I was trying to cross-compile qt-3.3.8 for powerpc. For this I had to do a bit of workaround. Firstly the cross compilers are exported on the shell and I had to create a directory with name linux-powerpc-g++ in mkspecs. I have copied the qmake.conf and qplatforms.h files from linux-g++ directory. I have changed the gcc and g++ compilers with the respective cross-compilers. Now the problem comes into picture when I start building it.

    I give ./configure -xplatform linux-powerpc-g++ -platform linux-g++ -thread -dlopen-opengl -prefix /opt/qt3.3

    as I want it to build in /opt/qt3.3. Now upon giving make, it stops at error in qtdir/bin/uic: command not found.
    There is no uic file present in bin. but when I compile it for host it doesn't give this error and creates the uic file.

    Can anybody please help me to know how this uic file is created in bin.

  2. #2
    Join Date
    Feb 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: cross compiling Qt-3.3.8 for powerpc

    Hi everyone,

    Now the approach I have taken is. I have unpacked the qt package and created a directory qtx86 in it. I executed the configure command as follows fro this directory
    ../configure -thread -prefix dir

    This made me build qt for host x86 machine. Now after this I made the directory linux-powerpc-g++ as written above in the mkspecs directory of package.

    After this I made a directory qtppc in the package directory and executed configure as follows
    ../configure -xplatform linux-powerpc-g++ -platform linux-g++ -thread -dlopen-opengl -prefix dir

    After this I issued make and eventualy got an error of no uic. I copied the uic from bin of qtx86 to bin of qtppc and again started the make process. This helped me cross-compile qt for powerpc. Now the examples are working fine on powerpc but I am not getting fonts. I see square brackets instead.

    Apart from this the qmake genrated in qtppc/bin is not creating the project for powerpc if I give the following command

    XXX/qtppc/bin/qmake -project
    in the application's directory. Please if anyone can help me understand these issues and solve it.

  3. #3
    Join Date
    Feb 2012
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: cross compiling Qt-3.3.8 for powerpc

    hi everyone,

    I was able to cross-compile qt-3.3 for powerpc. But I am not able to get fonts in it. Only square brackets appear instead of fonts when I run the example applications. Please if anyone can help in this.

Similar Threads

  1. Problem while Cross compiling Qt v4.6.3
    By bakul2331 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 26th August 2011, 07:46
  2. How to cross-compiling in Qt
    By sanjeet in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 29th April 2011, 18:14
  3. cross compiling QT for arm archetacture
    By yogeshpjadhav in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th August 2010, 03:48
  4. QtCreator and cross-compiling
    By zuck in forum Qt Tools
    Replies: 1
    Last Post: 28th April 2009, 20:04
  5. cross compiling
    By tommy in forum Installation and Deployment
    Replies: 1
    Last Post: 8th March 2009, 18:02

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.