PDA

View Full Version : qmake.conf in MAC OS



anupamgee
30th January 2010, 11:30
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

franz
30th January 2010, 21:09
What are the exact steps you took to get this message?

anupamgee
8th February 2010, 07:40
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 :



################################################## ####################
# QextSerialPort Test Application (QESPTA)
################################################## ####################


PROJECT = QESPTA
TEMPLATE = app
DEPENDPATH += .
INCLUDEPATH += ../..
QMAKE_LIBDIR += ../../build


OBJECTS_DIR = .obj
MOC_DIR = .moc
UI_DIR = .uic
CONFIG += qt thread warn_on debug


HEADERS += MainWindow.h \
MessageWindow.h \
QespTest.h

SOURCES += main.cpp \
MainWindow.cpp \
MessageWindow.cpp \
QespTest.cpp

CONFIG(debug, debug|release):LIBS += -lqextserialportd
else:LIBS += -lqextserialport

unix:DEFINES = _TTY_POSIX_
win32:DEFINES = _TTY_WIN_



Thanks.

anupamgee
9th February 2010, 17:49
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.


Running build steps for project QESPTA...
Starting: /usr/bin/qmake /Users/admin/Desktop/QT/qextserialport/examples/qespta/QESPTA.pro -spec macx-g++ -r CONFIG+=debug_and_release -win32
Exited with code 0.
Starting: /usr/bin/make debug -w
make: *** No rule to make target `\usr\local\Qt4.6\mkspecs\macx-g++\qmake.conf', needed by `Makefile'. Stop.
make: Entering directory `/Users/admin/Desktop/QT/qextserialport/examples/qespta'
make: Leaving directory `/Users/admin/Desktop/QT/qextserialport/examples/qespta'
Exited with code 2.
Error while building project QESPTA
When executing build step 'Make'

TCB13
27th October 2011, 23:36
I've this problem right now when I try to go static. (At QT Creator it all builds OK).


macbook-de-tcb13:qt-source TCB13$ cd /Users/TCB13/ABBK/ABBK
macbook-de-tcb13:ABBK TCB13$ make clean
make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.

macbmacbook-de-tcb13:ABBK TCB13$ PATH=/Users/TCB13/qt-source:$PATH
macbook-de-tcb13:ABBK TCB13$ export PATH
macbook-de-tcb13:ABBK TCB13$ qmake -config release
macbook-de-tcb13:ABBK TCB13$ make
make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.


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:


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


macbook-de-tcb13:qt-source TCB13$ cd /Users/TCB13/ABBK/ABBK
macbook-de-tcb13:ABBK TCB13$ make clean
make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.

macbmacbook-de-tcb13:ABBK TCB13$ PATH=/Users/TCB13/qt-source:$PATH
macbook-de-tcb13:ABBK TCB13$ export PATH
macbook-de-tcb13:ABBK TCB13$ qmake -config release
macbook-de-tcb13:ABBK TCB13$ make
make: *** No rule to make target `../../qt/mkspecs/macx-g++/qmake.conf', needed by `Makefile'. Stop.


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:


/Users/TCB13/qt-source/bin/qmake -config release -o Makefile /Users/TCB13/ABBK/ABBK/ABBK.pro


Then issue the normal compile routine:

cd /Users/TCB13/ABBK/ABBK/
PATH=/Users/TCB13/qt-source/bin:$PATH; export PATH
qmake -config release; make; make clean

And everything will work fine!