Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] DEPLOYMENTFOLDERS in .pro working in simulator,symbian but not maemo,meego
Forum Updated to NodeBB v4.3 + New Features

[Solved] DEPLOYMENTFOLDERS in .pro working in simulator,symbian but not maemo,meego

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 4.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    q8phantom
    wrote on last edited by
    #1

    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
    @
    Working nice on Symbian, Simulator..ie, image files appears in my app.

    In maemo "N900", I can see the files in terminal,(it's in opt/appname/bin and all resources are in opt/appname ) but It's not opening in my app, the app can't see the file, also I have managed to make everything in one folder,ie resources and bin in one folder, but still nothing happen, Maybe we have to change the working directory of the application or something?
    
    In meego "N950" it's even worse, I can't run the app on N950.
    

    @
    :-1: error: [copydeploymentfolders] Error 1
    File Not Found
    @
    I hope someone can help me,

    Also I have deployment.pri but not touched.
    
    Before adding some files the app was working nice on N950, but now this error came in.
    
    Thank you.
    
    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      q8phantom
      wrote on last edited by
      #2

      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

      @ QApplication app(argc, argv);@

      I added these so it looks like this

      @int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);
      QDir dir(QCoreApplication::applicationDirPath());
      #if defined(Q_WS_MAEMO_5)
      if (dir.dirName().toLower() == "bin")
      {
      dir.cdUp();
      }

      #endif
      QDir::setCurrent(dir.absolutePath());
      // rest of main
      return app.exec();
      

      }@

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        q8phantom
        wrote on last edited by
        #3

        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":http://forum.meego.com/showthread.php?p=30569#post30569.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          Glad it's working for you now! Be sure and edit the thread title to add [Solved]. Thanks!

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            q8phantom
            wrote on last edited by
            #5

            Thanks, Done the editing.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              matti-
              wrote on last edited by
              #6

              The INSTALLS directive won't install the additional files on Symbian?

              Author of <a href="http://mmark.777-team.org/">MMark13</a>

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved