Results 1 to 2 of 2

Thread: cross platform basics

  1. #1
    Join Date
    Nov 2007
    Posts
    103
    Thanks
    71
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default cross platform basics

    I have written a program under Windows environment and now I'd like to compile the source for Linux, Unix, Mac-OS (or at least some of them, most importantly Mac). The problem is that I only know windows and I don't know ANYTHING about the others. This leads me to asking some basic and boring questions:

    1. I know Qt code is cross platform. Are there any modifications in the code you have to make to compile for other platforms? (Apart from the obvious, like "never use right mouse button on Mac").

    2. Do I really have to aquire a separate computer for each type of compilation? Can my windows machine compile for other platforms? If yes, what needs to be done? My plan is to compile all of them statically.

    3. Is there anything Mac-, Unix-, Linux-specific about Qt4.3.3 that I should be aware of? Any pitfalls that you guys are aware of?

    4. Windows version of Qt uses MingW. What about the other platforms?

    Thanks a lot!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,014 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: cross platform basics

    Quote Originally Posted by tommy View Post
    1. I know Qt code is cross platform. Are there any modifications in the code you have to make to compile for other platforms?
    No.

    (Apart from the obvious, like "never use right mouse button on Mac").
    Why not? What if I attach a 12 button mouse to a Mac?

    2. Do I really have to aquire a separate computer for each type of compilation?
    In theory no.
    Can my windows machine compile for other platforms?
    In theory yes.
    If yes, what needs to be done? My plan is to compile all of them statically.
    Google for "crosscompiling".

    3. Is there anything Mac-, Unix-, Linux-specific about Qt4.3.3 that I should be aware of? Any pitfalls that you guys are aware of?
    Not really. Just forget your Windows habits and let Qt worry about details.


    4. Windows version of Qt uses MingW. What about the other platforms?
    Actually you can use various compilers. For Windows the two most frequently used are MSVC and MinGW, for other platforms GCC has a dominant position.

    http://doc.trolltech.com/4.3/compiler-notes.html

Similar Threads

  1. Cross platform PDF printing?
    By ucntcme in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2008, 09:29
  2. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:41
  3. Weird Cross Platform Printing Problems
    By igor in forum Qt Programming
    Replies: 7
    Last Post: 7th August 2007, 16:25
  4. Cross Platform Logging
    By skyphyr in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2006, 16:32
  5. Cross compile QT/X11 for platform xscale-elf
    By nmkarvekar in forum Installation and Deployment
    Replies: 0
    Last Post: 19th May 2006, 07:20

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.