Results 1 to 4 of 4

Thread: Cross Compiling Problems

  1. #1
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Cross Compiling Problems

    I'm hoping someone can help me with this... here is my situation: I would simply like to build and run an Qt Linux Embedded application targeted for an x86 processor on which I've installed Qt/Linux Embedded 4.7.

    Starting with a GUI application I had originally created in Qt for Windows, I had no problem building and running the same application in my Ubuntu desktop machine. Here, I had simply downloaded and installed the Qt/X11 4.7 SDK and then simply rebuilt without incident and everything worked great.

    I am now trying to follow the documentation to cross compile the same application for my Qt/Linux Embedded system, but am completely confused about how to proceed. The very first instruction says to specify the cross compiler in the PATH, but what is that actually referring to? Simply stated - where do I get the cross compiler? Since my Ubuntu machine and my target machine are both 32-bit Linux systems with similar kernels and gcc/g++ compilers, can I just use the Ubuntu compiler?

    I've created a chroot environment where I installed the Qt/Embedded 4.7 library framework - am I supposed to point at that?

    Thanks in advance (wasn't sure if I should put this in the Newb forum or here...)

  2. #2
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cross Compiling Problems

    Well, I have found some tutorials that explain my previous cross compiling question, but I am still unable to build an application for a Linux Embedded environment. I think/assume it is related to some PATH or ENV setting, but I don't know what it is.

    I have created two Qt Embedded Linux builds - one with "-qvfb" and one with "-embedded", doing configure, make, and make install for both of them. But, when I go into Qt Creator project options and select qmake from either of the embedded builds, I get an "This Qt-Version is invalid" error.

    If I go into "Manage" from the Qt Creator project options, and I hover the mouse over either of the two embedded qmake selections, a box pops up with the qmake configuration - in there, I see that the "mkspec" entry is blank and there is no "compiler" option in the list. How do I set these?

    When building the two embedded builds, I merely followed the instructions from here:
    http://doc.qt.nokia.com/4.6/qvfb.html

    Thanks for your help

  3. #3
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Cross Compiling Problems

    Well, I guess I'll just keep responding to myself, hoping it'll help someone else. I've made it further along in the process, where I am now able to build and run my embedded applications for "qvfb". I think my problem was related to some sort of leftover environment variable setting or something like that. I closed all terminals and Qt Creator, reopened, and I was able to select the qvfb version of qmake to build with.

    Now my next problem is that even though I have built my applications with -qvfb, they are not showing up in the QVFB instance that I am running. I am able to start QVFB from my main install of QT and configure it as I wish, but when I run my application, it does not show up in the QVFB - instead it shows up on its own with the color scheme of the buttons all screwed up (when I recompile with the normal qmake, it displays properly).

    I have tried various command line options to try to force my application to show in the QVFB display, but I haven't had any luck at all. I have also tried to run the example applications (as is, and by rebuilding them), with the exact same behavior.

    If anyone can help, I'd appreciate it.

  4. #4
    Join Date
    Sep 2010
    Posts
    10
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Cross Compiling Problems

    If you are targeting x86 then it means you are not cross compiling? then you realy shouldn't follow cross-compiling guide, I guess

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. cross compiling QT for arm archetacture
    By yogeshpjadhav in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th August 2010, 03:48
  3. cross-compiling a Qt app for MacOS X?
    By akos.maroy in forum Qt Programming
    Replies: 0
    Last Post: 3rd August 2009, 20:37
  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.