Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Make QML executable on Mac (1.0.1)

$
0
0
Using the simplest QML application ever (the helloWord application), I’m just trying to make the executable. I created a blank application using New Project>Applications>Qt Quick Application So I get the following folder structure myApplication    |- myApplication.pro    |- qtquick2applicationviewer    |     |- qtquick2applicationviewer.pri    |     |- Headers    |     |- Sources    |- Sources    |    |- main.cpp    |- QML           |- qml/myApplication                  |- main.qml   so, from the command line, all I do is > qmake > make install and when I try to launch the application, I get file:////<path_to_folder>/myApplication/main.qml: File not found And if I do move the qml file at this location, it works. here is my .pro file # Add more folders to ship with the application, here folder_01.source = qml/myApplication folder_01.target = qml DEPLOYMENTFOLDERS = folder_01   # Additional import path used to resolve QML modules in Creator's code model QML_IMPORT_PATH =   # The .cpp file which was generated for your project. Feel free to hack it. SOURCES += main.cpp   # Installation path # target.path =   # Please do not modify the following two lines. Required for deployment. include(qtquick2applicationviewer/qtquick2applicationviewer.pri) qtcAddDeployment() As you can see, I can not make this application simpler… I guess I’m missing something basic but can’t figure out which one. Thanks

Viewing all articles
Browse latest Browse all 4972

Trending Articles