Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Packaging extra folder and files in Qt for symbian?
Forum Updated to NodeBB v4.3 + New Features

Packaging extra folder and files in Qt for symbian?

Scheduled Pinned Locked Moved Mobile and Embedded
32 Posts 9 Posters 19.7k 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.
  • S Offline
    S Offline
    smotiwala
    wrote on last edited by
    #13

    Hi,

    I was trying the above options but didn't installs the file or folder. can you please give me working example for Qt (symbian). how do i define relative path etc.?

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      smotiwala
      wrote on last edited by
      #14

      The code i use

      @file1.path = Image // folder where i want to copy splash_image.jpg
      file1.source = splash_image.jpg // image file to be copied which is placed in root folder where .pro file resides
      DEPLOYMENTFOLDERS += file1@

      please help me what is the problem.

      Thanks

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexander
        wrote on last edited by
        #15

        if try to use DEPLOYMENT instead DEPLOYMENTFOLDERS?
        edit : I forgot, you tried it:)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamalakshantv
          wrote on last edited by
          #16

          [quote author="smotiwala" date="1293092742"]The code i use

          @file1.path = Image // folder where i want to copy splash_image.jpg
          file1.source = splash_image.jpg // image file to be copied which is placed in root folder where .pro file resides
          DEPLOYMENTFOLDERS += file1@

          please help me what is the problem.

          Thanks[/quote]

          If your source is a file it should be DEPLOYMENT. If its folder it should be DEPLOYMENTFOLDERS.

          So use it like this

          @file1.source = Image // Folder name
          DEPLOYMENTFOLDERS += file1
          @

          1 Reply Last reply
          0
          • S Offline
            S Offline
            smotiwala
            wrote on last edited by
            #17

            I tried following but no luck

            @folder1.source = NewImage // Folder name to be created on destination
            DEPLOYMENTFOLDERS += folder1

            imagenew.source = Splash.PNG // image file to be copied which is placed in root folder where .pro file resides
            DEPLOYMENT += imagenew@

            No "NewImage" folder will created nor "Splash.PNG" copied.

            Size of the .sis file remains same

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vcsala
              wrote on last edited by
              #18

              Maybe you can try the makesis approach (described "here":http://wiki.forum.nokia.com/index.php/Using_Qt_Creator_With_Symbian#Packaging_Application_as_SIS_File_and_Deploying_to_Symbian_Device) by adding your additional files to the pkg file

              1 Reply Last reply
              0
              • S Offline
                S Offline
                smotiwala
                wrote on last edited by
                #19

                Should I manually update .pkg file to add the files and folders?

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vcsala
                  wrote on last edited by
                  #20

                  If you use makesis manually in this case I think yes

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Matze5590
                    wrote on last edited by
                    #21

                    Hey there,

                    i also have problems with files in symbian.
                    I'm using QtCreator 2.1.
                    When i use this:
                    @file1.source = db.sqlite
                    DEPLOYMENTFOLDERS = file1@
                    it works with simulator, but not on device (Nokia N8)
                    error: unable to open database, file Error opening database

                    so i tried this:
                    @file1.source = db.sqlite
                    DEPLOYMENT = file1@
                    and its not working too ("general related OS-error" while compiling)

                    please help me! thanks

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      alexander
                      wrote on last edited by
                      #22

                      Matze5590, Did you try to use next lines?
                      @file1.source = db.sqlite
                      file1.path = path to db.sqlite
                      DEPLOYMENT = file1@

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Matze5590
                        wrote on last edited by
                        #23

                        thanks, but when i use this its great with simulator,
                        but i can't run the app on device, still "General OS-related error"

                        @file1.source = db.sqlite
                        file1.path = C:/Users/user/project/
                        DEPLOYMENT = file1@

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Matze5590
                          wrote on last edited by
                          #24

                          ok, i found out that the error i posted above is not occuring with the following code:
                          @file1.source = db.sqlite
                          file1.path = C:\Users\user\project
                          DEPLOYMENT += file1@
                          but now i'm getting another error again:
                          "unable to open database file error opening database"
                          but i have no idea how to solve this problem. please help!

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            daliusd
                            wrote on last edited by
                            #25

                            [quote author="Matze5590" date="1303839482"]ok, i found out that the error i posted above is not occuring with the following code:
                            @file1.source = db.sqlite
                            file1.path = C:\Users\user\project
                            DEPLOYMENT += file1@
                            but now i'm getting another error again:
                            "unable to open database file error opening database"
                            but i have no idea how to solve this problem. please help![/quote]

                            I'm pretty sure people find this page using google and last question is still not answered. The one possible reason why error "unable to open database file.." is shown are separator symbols. Multiplatform fix requires function QDir::toNativeSeparators to be used. E.g.:

                            @ QString db_path(QApplication::applicationDirPath() );
                            db_path += "/data/dict.db";
                            QString db_path_symbian(QDir::toNativeSeparators(db_path));

                            db.setDatabaseName(db_path_symbian);@
                            
                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              Amine27
                              wrote on last edited by
                              #26

                              Thank you daliusd, it fixed my problem :)

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SherifOmran
                                wrote on last edited by
                                #27

                                hello guys, i want to add files inside a folder to the resource package in MAC but no luck

                                I used this in the pro file for an application called login

                                myFiles.sources += /Volumes/DATA/gamemedia/
                                DEPLOYMENTFOLDERS += myFiles

                                ls login-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/login.app/Contents/Resources/
                                empty.lproj

                                any body can fix my mistake?
                                thanks

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  daliusd
                                  wrote on last edited by
                                  #28

                                  SherifOmran,

                                  Something like this should work:

                                  folder_02.source = /Volumes/DATA/gamemedia
                                  folder_02.target =
                                  DEPLOYMENTFOLDERS = folder_02

                                  I'm not sure about empty target however

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SherifOmran
                                    wrote on last edited by
                                    #29

                                    How do you build the project? Should i build normally by clicking on the right arrow or with qmake?
                                    Should i rebuild? May be there is a trick? How can i check the compilation output, i don't see a line stating adding files or something like that in the output.

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      daliusd
                                      wrote on last edited by
                                      #30

                                      It doesn't matter: arrow is just qmake+make in disguise. You can read Makefile (generated by qmake) to see what is done with your files (search for your source). Depending on target platform they are either copied, linked or packaged somehow.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SherifOmran
                                        wrote on last edited by
                                        #31

                                        I ve the following notes:

                                        1- By right clicking the project file, i see (Deploy Project) in the menu but it is unclickable

                                        2- In the make file i see the following and no reference for wav files added in the media folder

                                        all: Makefile login.app/Contents/PkgInfo login.app/Contents/Resources/empty.lproj login.app/Contents/Info.plis$

                                        1 Reply Last reply
                                        0
                                        • D Offline
                                          D Offline
                                          daliusd
                                          wrote on last edited by
                                          #32

                                          What platform we are speaking here about?

                                          1. Most probably that's irrelevant. Not sure where you see it however.

                                          2. You shouldn't see wav files (most probably). All you might see reference to your source folder.

                                          Actually I'm not even sure if we speak about Symbian target here because your dev platform is Mac OS X clearly.

                                          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