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
Printable View
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
What are the exact steps you took to get this message?
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 :
Code:
###################################################################### # 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.
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.
Code:
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'
I've this problem right now when I try to go static. (At QT Creator it all builds OK).
Code:
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:
Hi everyone, I solved by problem by recreating the MakeFile like this:
Code:
/Users/TCB13/qt-source/bin/qmake -config release -o Makefile /Users/TCB13/ABBK/ABBK/ABBK.pro
Then issue the normal compile routine:
Code:
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!