Results 1 to 3 of 3

Thread: building/ compiling Qt app on Mac

  1. #1
    Join Date
    Apr 2008
    Location
    California
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default building/ compiling Qt app on Mac

    Hello All,

    I'm not sure if there is a better way to accomplish what I'm doing here but I will share what I'm intending to do.

    I have have Qt app developed using Qt 4.3.1 commercial and VS 2005. I was able to distribute the app on other windows machines. Now I want to be able to do distribute the same app to Mac users.

    I have copied over the VS 2005 developed project dir to Mac and ran the below commands:
    qmake -project
    qmake

    this created a xcode project file for me. Now I'm trying to build the file on the Mac system but I keep getting this weird error message below
    Qt Code:
    1. /bin/sh -c /Developer/Examples/Qt/snipit/snipit/build/snipit.build/Debug/snipit.build/Script-A0A52A2ADF7A1E2A99738674.sh
    2. make: *** No rule to make target `../ui_addcitation.h', needed by `moc_addcitation.cpp'. Stop.
    To copy to clipboard, switch view to plain text mode 

    how can I resolve this issue???

    Thanks,
    - AR

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: building/ compiling Qt app on Mac

    What does the .pro file look like? Are there any intermediate files (ui_*.h or moc_*.cpp) in HEADERS or SOURCES? Try cleaning up all intermediate files (including ui_*.h and moc_*.cpp) and re-running "qmake -project" after that..
    J-P Nurmi

  3. #3
    Join Date
    Apr 2008
    Location
    California
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: building/ compiling Qt app on Mac

    Thanks JPN.

    It worked. I had to remove all the intermediate files and also the xcode project file too. then I ran qmake -project. added my QT libraries into .pro file and then ran qmake.

    once again, thank you for your time and response.
    - AR

Similar Threads

  1. error compiling using vs 2005
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 16th May 2008, 02:32
  2. Building debug version under VS2008
    By KenW in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd May 2008, 19:09
  3. Building Qt 4.3.4 on Win Vista & MinGW
    By Sirow in forum Installation and Deployment
    Replies: 2
    Last Post: 28th April 2008, 18:27
  4. not compiling
    By sudheer in forum Installation and Deployment
    Replies: 6
    Last Post: 28th November 2007, 12:10
  5. error in compiling qtopia.....
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 11th January 2007, 09: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.