[Solved] DEPLOYMENTFOLDERS in .pro working in simulator,symbian but not maemo,meego
Hello there everyone I hope someone could help me with Qt I have some files that are in resourc directory under my project. I have added the following in my project.pro- dir1.source = resourc\*
- DEPLOYMENTFOLDERS = dir1
- :-1: error: [copydeploymentfolders] Error 1
- File Not Found
5 replies
Hi there,
My guess was right, it’s the working directory that was wrong, I solved the problem related to maemo N900, but still N950 with the build issue. I’ll search in this too, anyways here is the N900 maemo solution, add this code in main, first
- #include <QDir>
and then just under this line
I added these so it looks like this
- int main(int argc, char *argv[])
- {
- #if defined(Q_WS_MAEMO_5)
- if (dir.dirName().toLower() == "bin")
- {
- dir.cdUp();
- }
- #endif
- // rest of main
- return app.exec();
- }
Hello guys, I solved the problem for N950 also and Harmattan in general, this is the modified .pro.
- unix {
- dir1.files = resourc/*
- dir1.path = /opt/$${TARGET}
- INSTALLS += dir1
- } else {
- dir1.source += resourc/*
- DEPLOYMENTFOLDERS = dir1
- }
Thanks to the guy over here [forum.meego.com].
You must log in to post a reply. Not a member yet? Register here!


