Results 1 to 6 of 6

Thread: Xcode 3.1 + Qt4.4.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    20
    Thanks
    7
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Xcode 3.1 + Qt4.4.1

    Hi again :P

    I found where is the problem, but I don't know how to fix it :P

    When Qt4.4.3 generate a new xcode project or makefile, the UIC and MOC paths are incorrect (uuh!?)

    Example of qt_preprocess.mak (in .xcodeproj):

    ################################################## ###########################
    # Makefile for building: bin/xVideoServiceThief.app/Contents/MacOS/xVideoServiceThief
    # Generated by qmake (2.01a) (Qt 4.4.3) on: jue oct 9 13:31:26 2008
    # Project: xVideoServiceThief.pro
    # Template: app
    # Command: /usr/bin/qmake -spec /usr/local/Qt4.4/mkspecs/macx-xcode -macx -o xVideoServiceThief.xcodeproj/project.pbxproj xVideoServiceThief.pro
    ################################################## ###########################

    MOC = /Users/xEsk/bin/moc
    UIC = /Users/xEsk/bin/uic

    ...

    parser_clean:
    /Users/xEsk/bin/moc:
    (cd /Users/xEsk/src/moc && $(MAKE))

    ...

    build/moc-release/moc_addvideoimpl.cpp: build/ui/ui_addvideo.h \
    src/videoinformation.h \
    /Library/Frameworks/QtGui.framework/Versions/4/Headers/QtGui \
    src/videoitem.h \
    src/tools.h \
    src/http.h \
    /Library/Frameworks/QtNetwork.framework/Versions/4/Headers/QtNetwork \
    src/forms/addvideoimpl.h \
    ../../../../bin/moc
    /Users/xEsk/bin/moc $(DEFINES) $(INCPATH) -D__APPLE__ -D__GNUC__ src/forms/addvideoimpl.h -o build/moc-release/moc_addvideoimpl.cpp

    ...
    The MOC and UIC do not exist in /Users/xEsk/bin/ (this bin directory do not exists), the real path of MOC and UIC apps are in "/usr/bin/"...

    Well, my question now is, where Qt4.4 stores this information?? So I can change it manually! :P

    Thanks and best regards,
    Xesc

  2. #2
    Join Date
    Jun 2007
    Posts
    20
    Thanks
    7
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Xcode 3.1 + Qt4.4.1

    Hi again! xD

    Finally I found the solution! Yuhu!

    Into my user directory, I found the hidden .qmake.cache file, which contains the QT paths and others... so I changed them to correct one, and now it works perfectly! Phew!

    Thank you everybody!

Similar Threads

  1. compile with Xcode?
    By eric in forum Installation and Deployment
    Replies: 0
    Last Post: 19th August 2008, 17:21
  2. Qmake + Xcode + Dependencies?
    By amnesiac in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2008, 13:45
  3. Any issues with Qt 4.3.x and Mac Xcode 3.0?
    By will49 in forum Qt Programming
    Replies: 0
    Last Post: 7th March 2008, 16:30
  4. Replies: 2
    Last Post: 8th November 2007, 20:15
  5. Qt4 MacOSX UB Xcode and a static Qt build?
    By kuroyume0161 in forum Installation and Deployment
    Replies: 15
    Last Post: 18th March 2007, 08: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
  •  
Qt is a trademark of The Qt Company.