Results 1 to 5 of 5

Thread: qmake.conf in MAC OS

  1. #1
    Join Date
    Apr 2009
    Posts
    58
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qmake.conf in MAC OS

    hi,
    I am trying to compile a code in QT Mac os .I am facing a problem "No rule to make target file (file specified do not contain correct address)
    .How i can correct that address .I mean How Path of qmake.conf is set in Qt.
    thnx

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qmake.conf in MAC OS

    What are the exact steps you took to get this message?
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Apr 2009
    Posts
    58
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qmake.conf in MAC OS

    I have downloaded the package for QT 4.6 and installed it. I am able to compile projects, but there is one that im trying gives this error. The project file :
    Qt Code:
    1. ######################################################################
    2. # QextSerialPort Test Application (QESPTA)
    3. ######################################################################
    4.  
    5.  
    6. PROJECT = QESPTA
    7. TEMPLATE = app
    8. DEPENDPATH += .
    9. INCLUDEPATH += ../..
    10. QMAKE_LIBDIR += ../../build
    11.  
    12.  
    13. OBJECTS_DIR = .obj
    14. MOC_DIR = .moc
    15. UI_DIR = .uic
    16. CONFIG += qt thread warn_on debug
    17.  
    18.  
    19. HEADERS += MainWindow.h \
    20. MessageWindow.h \
    21. QespTest.h
    22.  
    23. SOURCES += main.cpp \
    24. MainWindow.cpp \
    25. MessageWindow.cpp \
    26. QespTest.cpp
    27.  
    28. CONFIG(debug, debug|release):LIBS += -lqextserialportd
    29. else:LIBS += -lqextserialport
    30.  
    31. unix:DEFINES = _TTY_POSIX_
    32. win32:DEFINES = _TTY_WIN_
    To copy to clipboard, switch view to plain text mode 

    Thanks.

  4. #4
    Join Date
    Apr 2009
    Posts
    58
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qmake.conf in MAC OS

    i have used QT Creator to build, the code builds properly on windows platform but not on Mac OSX, the project is one of the samples from qextserialport project at sourceforge, the compile output in the Creator produces the following:

    make: *** No rule to make target `\usr\local\Qt4.6\mkspecs\macx-g++\qmake.conf', needed by `Makefile'. Stop.
    Qt Code:
    1. Running build steps for project QESPTA...
    2. Starting: /usr/bin/qmake /Users/admin/Desktop/QT/qextserialport/examples/qespta/QESPTA.pro -spec macx-g++ -r CONFIG+=debug_and_release -win32
    3. Exited with code 0.
    4. Starting: /usr/bin/make debug -w
    5. make: *** No rule to make target `\usr\local\Qt4.6\mkspecs\macx-g++\qmake.conf', needed by `Makefile'. Stop.
    6. make: Entering directory `/Users/admin/Desktop/QT/qextserialport/examples/qespta'
    7. make: Leaving directory `/Users/admin/Desktop/QT/qextserialport/examples/qespta'
    8. Exited with code 2.
    9. Error while building project QESPTA
    10. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 
    Last edited by anupamgee; 9th February 2010 at 18:19. Reason: wrong use of CODE tag

  5. #5
    Join Date
    Aug 2011
    Location
    Portugal
    Posts
    34
    Thanks
    15
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qmake.conf in MAC OS

    I've this problem right now when I try to go static. (At QT Creator it all builds OK).

    Qt Code:
    1. macbook-de-tcb13:qt-source TCB13$ cd /Users/TCB13/ABBK/ABBK
    2. macbook-de-tcb13:ABBK TCB13$ make clean
    3. make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.
    4.  
    5. macbmacbook-de-tcb13:ABBK TCB13$ PATH=/Users/TCB13/qt-source:$PATH
    6. macbook-de-tcb13:ABBK TCB13$ export PATH
    7. macbook-de-tcb13:ABBK TCB13$ qmake -config release
    8. macbook-de-tcb13:ABBK TCB13$ make
    9. make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.
    To copy to clipboard, switch view to plain text mode 

    Some weeks ago this was working ok, I think this happened after I update QT to the latest version, I've build QT statically from the source again but the problem remains...

    Some help would be nice! Thanks.


    Added after 1 50 minutes:


    Quote Originally Posted by TCB13 View Post
    I've this problem right now when I try to go static. (At QT Creator it all builds OK).

    Qt Code:
    1. macbook-de-tcb13:qt-source TCB13$ cd /Users/TCB13/ABBK/ABBK
    2. macbook-de-tcb13:ABBK TCB13$ make clean
    3. make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.
    4.  
    5. macbmacbook-de-tcb13:ABBK TCB13$ PATH=/Users/TCB13/qt-source:$PATH
    6. macbook-de-tcb13:ABBK TCB13$ export PATH
    7. macbook-de-tcb13:ABBK TCB13$ qmake -config release
    8. macbook-de-tcb13:ABBK TCB13$ make
    9. make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.
    To copy to clipboard, switch view to plain text mode 

    Some weeks ago this was working ok, I think this happened after I update QT to the latest version, I've build QT statically from the source again but the problem remains...

    Some help would be nice! Thanks.
    Hi everyone, I solved by problem by recreating the MakeFile like this:

    Qt Code:
    1. /Users/TCB13/qt-source/bin/qmake -config release -o Makefile /Users/TCB13/ABBK/ABBK/ABBK.pro
    To copy to clipboard, switch view to plain text mode 

    Then issue the normal compile routine:
    Qt Code:
    1. cd /Users/TCB13/ABBK/ABBK/
    2. PATH=/Users/TCB13/qt-source/bin:$PATH; export PATH
    3. qmake -config release; make; make clean
    To copy to clipboard, switch view to plain text mode 

    And everything will work fine!
    Last edited by TCB13; 27th October 2011 at 23:36.

Similar Threads

  1. qt.conf
    By wirasto in forum Qt Programming
    Replies: 5
    Last Post: 25th December 2009, 14:45
  2. Qt.conf??? Maybe not...
    By Nefastious in forum Installation and Deployment
    Replies: 1
    Last Post: 7th November 2009, 22:32
  3. Failure to read QMAKESPEC conf file
    By hosseinyounesi in forum Qt Programming
    Replies: 1
    Last Post: 24th July 2009, 04:12
  4. Failure to read QMAKESPEC conf file
    By hosseinyounesi in forum Newbie
    Replies: 3
    Last Post: 23rd July 2009, 17:46
  5. Trolltech.conf Linking
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2007, 18:23

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.