Results 1 to 2 of 2

Thread: Compiling on different platforms

  1. #1
    Join Date
    Jan 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Compiling on different platforms

    Hi, I'm new to QT and attempting to make a cross platform project. I have coded something on windows and am now trying to compile it on mac. Does any one know the correct steps to do this? I am creating a .pri file through visual studio, then transferring all files to the mac, running qmake -project, qmake, then opening up xcode and trying to compile. What am I doing wrong? It gets as far as linking then isn't happy. Thanks! (Using QT4.1 on both platforms)
    Last edited by Tori; 25th January 2006 at 22:02.

  2. #2
    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: Compiling on different platforms

    1. The file should be ".pro" not ".pri"
    2. You don't need to do qmake -project, just copy your .pro file from Windows

    If you don't use any compiler dependent code and all needed libraries are present on the target system, everything should compile and link. If it doesn't, please provide the error messages so that we can take a look at them.

Similar Threads

  1. Replies: 1
    Last Post: 16th September 2008, 17:29
  2. error compiling using vs 2005
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 16th May 2008, 02:32
  3. Cross compiling setup for all platforms
    By oc2k1 in forum Installation and Deployment
    Replies: 0
    Last Post: 5th February 2008, 13:42
  4. not compiling
    By sudheer in forum Installation and Deployment
    Replies: 6
    Last Post: 28th November 2007, 12:10

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.