Move from QML Only Application to Qt Quick Application with C++
Page |
1 |
I have been developing my application with only QML and JavaScript. I recognize that I need to move to C++ soon and so I started that transition today. I created a new Qt Quick Application and imported all of my QML Files into it. When I try to build the Main.Pro file I receive:
- :-1: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found
- :-1: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -F not found
- :-1: error: [copydeploymentfolders] Error 1
Any help would be appreciated. Thanks.
26 replies
- Running build steps for project Main...
- Configuration unchanged, skipping qmake step.
- Starting: "/usr/bin/make" -w
- make: Entering directory `/Users/kp/Desktop/Precision Work/Harvest DU Repository/Main-build-desktop'
- g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.7/mkspecs/macx-g++ -I../Main -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/Library/Frameworks/QtDeclarative.framework/Versions/4/Headers -I/usr/include/QtDeclarative -I/usr/include -I../Main/qmlapplicationviewer -I. -I../Main -I. -F/Library/Frameworks -o main.o ../Main/main.cpp
- g++ -headerpad_max_install_names -o Main.app/Contents/MacOS/Main main.o qmlapplicationviewer.o moc_qmlapplicationviewer.o -F/Library/Frameworks -L/Library/Frameworks -framework QtDeclarative -L/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib -F/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib -framework QtScript -framework QtSvg -framework QtSql -framework QtXmlPatterns -framework QtOpenGL -framework QtNetwork -framework QtGui -framework QtCore
- ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found
- ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -F not found
- Copying application data...
- cp: Repository/Main/../QML: No such file or directory
- make: *** [copydeploymentfolders] Error 1
- make: Leaving directory `/Users/kp/Desktop/Precision Work/Harvest DU Repository/Main-build-desktop'
- The process "/usr/bin/make" exited with code 2.
- Error while building project Main (target: Desktop)
- When executing build step 'Make'
how do I add it to my pro file or resource file? Will doing so negate the need to move it in manually?
The best option is to use resource [doc.qt.nokia.com]. You can use Qt Creator to add a new resource. Just check the docs for more info.
Still having problems with this:ld: warning: directory ‘/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib’ following -L not found
ld: warning: directory ‘/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib’ following -F not foundAny ideas there?
Its a warning right. Your app must be compiled properly now.
Added the .qrc and still having this error stop my build:
- Running build steps for project Main...
- Configuration unchanged, skipping qmake step.
- Starting: "/usr/bin/make" -w
- make: Entering directory `/Users/kp/Desktop/Precision Work/Harvest DU Repository/Main-build-desktop'
- /Developer/Tools/Qt/rcc -name Main ../Main/Main.qrc -o qrc_Main.cpp
- g++ -c -pipe -O2 -Wall -W -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.7/mkspecs/macx-g++ -I../Main -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/Library/Frameworks/QtDeclarative.framework/Versions/4/Headers -I/usr/include/QtDeclarative -I/usr/include -I../Main/qmlapplicationviewer -I. -I../Main -I. -F/Library/Frameworks -o qrc_Main.o qrc_Main.cpp
- g++ -headerpad_max_install_names -o Main.app/Contents/MacOS/Main main.o qmlapplicationviewer.o moc_qmlapplicationviewer.o qrc_Main.o -F/Library/Frameworks -L/Library/Frameworks -framework QtDeclarative -L/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib -F/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib -framework QtScript -framework QtSvg -framework QtSql -framework QtXmlPatterns -framework QtOpenGL -framework QtNetwork -framework QtGui -framework QtCore
- ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -L not found
- ld: warning: directory '/tmp/qt-stuff-6474/source/qt-everywhere-opensource-src-4.7.0/lib' following -F not found
- Copying application data...
- cp: Repository/Main/../QML: No such file or directory
- make: *** [copydeploymentfolders] Error 1
- make: Leaving directory `/Users/kp/Desktop/Precision Work/Harvest DU Repository/Main-build-desktop'
- The process "/usr/bin/make" exited with code 2.
- Error while building project Main (target: Desktop)
- When executing build step 'Make'
You must log in to post a reply. Not a member yet? Register here!



