Results 1 to 7 of 7

Thread: Advise is sought for practical tips on multi-platform QT-development

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Advise is sought for practical tips on multi-platform QT-development

    I will really appreciate any advice or sharing an experience about multiplatform QT development. I am at the stage of selecting a laptop where I can develop on windows, mac and linux. Currently I am only developing against Windows. MacBookPro is an obvious choice but - I a)never did multiplatform development b) never used Macs . I found some links saying that Leopard can be installed on Dell, but it appears that it is a non-apple patched distribution.

    So the questions I have really are:
    1. Advise on a laptop for such a development
    2. Advise on a "proper" way, tips, methodology etc to practically do a multi-platform development (my primary OS is Windows, but I am open to change it if another OS should be the primary in order to simplify the work)

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Advise is sought for practical tips on multi-platform QT-development

    1. Advise on a laptop for such a development
    Buy a MacBook. You will be able to install Windows XP/Vista using BootCamp. This is an official feature.

    2. Advise on a "proper" way, tips, methodology etc to practically do a multi-platform development (my primary OS is Windows, but I am open to change it if another OS should be the primary in order to simplify the work)
    Use only GCC based compilers on all platforms, if possible.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Advise is sought for practical tips on multi-platform QT-development

    Quote Originally Posted by marcel View Post
    Use only GCC based compilers on all platforms, if possible.
    On Linux/Unix and Mac, this is already the default. On Windows you can use MinGW G++.

    p.s. But just to be contrary and obstinate, there is much value in using different compilers. Use Visual Studio on Windows (but stick with commandline qmake/nmake) if you already have it. The benefit is that with "lowest common denominator" C++, you will not have hassles whenever you do have to use a different compiler (or newer compiler release). It also helps to uncover subtle errors that one compiler alone might not flag.

  4. #4
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Advise is sought for practical tips on multi-platform QT-development

    I am unsure about the right way to organize such a development on a single machine. Should I have a partition which is recognizable by all OSes, keep sources and output on this partition and then, compiling on one OS switch to others and compile again? May be someone can share methods/tips for such a development?

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

    Default Re: Advise is sought for practical tips on multi-platform QT-development

    In my opinion it is best to have a code repository (can be remote) managed by some revision control system and a separate working copy for each platform. This way you won't have problems with stale intermediate files from other platforms and at the same time your code will always be synced if you remember to commit all changes to the repository.

  6. #6
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Advise is sought for practical tips on multi-platform QT-development

    Yes, source repository is a given. I am curious - you are saying that sequential work is the one preferred, i.e. check out sources, develop on one platform, then check sources in, switch to another platform, check out, build etc. I am wondering - is there a setup on a single machine where I can develop on a one platform and then send a "signal" to other platforms to start building from the same code repository, storing intermediates and targets in OS-specific directories.

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

    Default Re: Advise is sought for practical tips on multi-platform QT-development

    If you use proper tools then it's only a matter of asking it to perform an update of your working copy.

Similar Threads

  1. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 20:41

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.