Results 1 to 6 of 6

Thread: How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

  1. #1
    Join Date
    May 2010
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Question How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

    Hello!

    I am not absolutely new to writing programs for embedded systems, but i did
    never have to setup an programming environment.

    I am running Win7 on my Hostmaschine and i wan´t to create an QT program that runs on the
    FriendlyARM Mini2440 with an ARM9 µCtrl and 7" display (Linux 2.6.29 kernel and Qtopia 2.2.0) .

    Maybe i have searched wrong but i didn´t find any how to on this subject or i found too much
    cause you have a HUUUUUUUUUUUUUGE Database/Forum.

    My questions are:

    1.Which Development-tool shall i use (actually i have QT Creator 1.3.1 installed)

    2.How do i configure it so it "makes" code that runs on the mini2440
    -> I mean hack code in Win7 and then cross-compile it for the mini2440 (Linux/qtopia)

    3.For Example What are the steps to get this simple Code here to work on my mini2440
    -----------------------------------------
    Qt Code:
    1. #include <qapplication.h>
    2. #include <qpushbutton.h>
    3.  
    4.  
    5. int main( int argc, char **argv )
    6. {
    7. QApplication a( argc, argv );
    8.  
    9. QPushButton hello( "Hello world!", 0 );
    10. hello.resize( 100, 30 );
    11.  
    12. a.setMainWidget( &hello );
    13. hello.show();
    14. return a.exec();
    15. }
    To copy to clipboard, switch view to plain text mode 
    ------------------------------------------

    Please help!
    I need a base to start from. From there hopefully i will be able to
    reverse-engineer the other code but this is my actual bottleneck. In the
    tuts for the mini it always says "cross-compile the code" or "make" but never explicit
    how.

    Kind regards and best wishes from Germany.

    Berthold

  2. #2
    Join Date
    Apr 2010
    Location
    Bangalore
    Posts
    24
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

    Hi ,

    Even I also have not exactly tried crosscompiling Qt from Win7 to FriendlyARM-mini2440 , but you can find the below link which provides som initial steps for you to crosscompiling QtEmbedded

    http://www.qtforum.org/article/28362...-mini2440.html

    Regards,
    Aster

  3. #3
    Join Date
    May 2010
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

    The Link is about cross-compiling from linux to linux. And they don´t even get this running!
    It seems to be quiet hard to set an developing environment for the mini 2440.

    So i you have any clue or better know exactly how it is done PLEASE PLEASE HELP !!!

    Berthold

  4. #4
    Join Date
    Apr 2010
    Location
    Bangalore
    Posts
    24
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

    May be one of the solutions to the problem is that you crosscompile first in the Linux platform and from Linux platform to FriendlyArm platform.

    So then you have to make use of the your own qmake.conf(or make use of ARM compiler qmake.conf file from C:\Qt\4.6.2\mkspecs\qws\linux-arm-g++ and make necessary changes depending upon your compiler location for the target) changes files for the FriendlyARM compiler

    Then it is very much similar to crosscompiling from embedded Linux to ARM. You can find more info in the assistant iteself.

    Aster

  5. #5
    Join Date
    May 2010
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

    Hmm but i dont have any linux platform!(sorry my profile was a little bit misleading. I fixed it) I can try to install Linux on my system via VMWare, but then i am always denpended to this maschine(i think my netbook will be to slow).
    There has to be a way to get it from Windows(7) straight down to Qtopia(linux). My problem is i am not familiar with this whole toolchain an make stuff.
    In my understanding i need to configure QT creator that it eats my C++ code as normally, digests it with the proper qmake for ARM9/Qtopia2.2 and TADA i have my code ready to run on my Mini 2440.

    I want to use the mini to show some data which i will get from its gpio and it adcs. I have i all planed out but i cant get it even started, because i can´t compile even the simplest "HELLO WORLD".

    There has to be a way . I don´t want to install linux on my system so i can setup the compiler from win to linux and then the compiler from linux to qtopia. God knows what errors or problems will show up an that way.

    I hope you understand what i mean and you are not offended.


    Berthold

  6. #6
    Join Date
    Dec 2011
    Posts
    13
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: How to crosscompile form Win7 to Qtopia(linux)??? Please help me get into it

    Dear Berthold

    Could you get a solution to your problem of directly cross compiling the files for Qtopia of Friendlyarm from Windows 7?

    Please update as I am also facing the same problem.

    KpKale

Similar Threads

  1. Vista/Win7 UAC Shield Icon on QPushButton?
    By ChrisW67 in forum Qt Programming
    Replies: 4
    Last Post: 10th May 2010, 08:14
  2. How to install Qt/Qtopia on embeded linux?
    By atil in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 13th December 2007, 22:03
  3. Replies: 3
    Last Post: 15th November 2007, 13:09
  4. qte crosscompile
    By leiyuhong in forum Qt Programming
    Replies: 0
    Last Post: 15th July 2007, 03:01
  5. Crosscompile Qt in Linux
    By Morea in forum General Discussion
    Replies: 4
    Last Post: 13th April 2006, 18: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.