Results 1 to 20 of 21

Thread: About Creating .sis for Nokia

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    10
    Qt products
    Qt/Embedded
    Platforms
    MacOS X Windows

    Default About Creating .sis for Nokia

    Hai Guys,
    I have a question...
    I'm making a mobile application using a lot of sound (for WAV i used QSound and for MP3 i used phonon) and i dont have Nokia device to test it so i used emulator.
    I have a problem with the emulator because at the emulator, i couldn't find my sound folder so i have to copy the sound folder manually.
    How if i'm going to deploy at device and make .sis program to make sure that all of my sound file is already included at the .sis package? An if .sis package did't contain my sound folder, what should i do?

    p.s i tried to pu the sound in resource file. but my sound size is too big... and a read that we can't put sound to resource file

    thx a lot guys

  2. #2
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: About Creating .sis for Nokia

    How if i'm going to deploy at device and make .sis program to make sure that all of my sound file is already included at the .sis package?
    Please take a look at DEPLOYMENT keyword from the documentation, I have used that technique to add some extra files to sis package.

  3. The following user says thank you to tsp for this useful post:

    ardisaz (1st December 2010)

  4. #3
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    10
    Qt products
    Qt/Embedded
    Platforms
    MacOS X Windows

    Default Re: About Creating .sis for Nokia

    Thanks for your suggestion...
    If i used that technique, will my sound folder at the same directory with the .pro? Because to play the music, i use QCoreApplication::applicationDirPath()+"/sound/guitar.mp3". Will it be the same path if i used that technique?
    thank you very much

  5. #4
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: About Creating .sis for Nokia

    Because to play the music, i use QCoreApplication::applicationDirPath()+"/sound/guitar.mp3". Will it be the same path if i used that technique?
    I think it works because in Symbian devices applicationDirPath returns actually application's private folder (i.e. \private\<uid>) instead of the folder where the executable is (\sys\bin), and private folder is the location where the extra files are deployed.

    I have not used applicationDirPath in my projects instead I have next definition in pro-file:

    # Add level files to sis package
    addFiles.sources = levels/*.tmx
    addFiles.path = levels
    DEPLOYMENT += addFiles

    That means that extra files are deployed to private folder in Symbian i.e. if application is installed to C: -drive then the location of those extra files is c:\private\<uid>\levels\ and in the source code the way to access those files is:
    Qt Code:
    1. QFile file("levels/board.tmx");
    2. if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
    3. return false;
    4. :
    To copy to clipboard, switch view to plain text mode 

    I have a problem with the emulator because at the emulator, i couldn't find my sound folder so i have to copy the sound folder manually
    In case of shadow builds better option would be to ensure that working directory points to correct location. In QtCreator select Projects and then select the run configuration of desktop / simulator etc. and ensure that working directory points to correct location instead of the location of the shadow build.

  6. The following user says thank you to tsp for this useful post:

    ardisaz (1st December 2010)

  7. #5
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    10
    Qt products
    Qt/Embedded
    Platforms
    MacOS X Windows

    Default Re: About Creating .sis for Nokia

    Thx for your answer, i still have some question...

    the path for the "addFiles.sources = levels/*.tmx" and "addFiles.path = levels" is taken from the .pro directory or from C://qt/project/levels? do i just write the code like that or i have to add some included?

    and how to make sure that i have already deployed the extra file at .sis because i don't have nokia device?

    thx a lot dear tsp

  8. #6
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: About Creating .sis for Nokia

    I have all source files (including pro-file) under "game" -folder (the absolute path is actually c:\temp\game) and the level files are in "game\levels" -folder and then in the pro-file there is the deployment part.

    When you build your code to Symbian target you can check from the generated pkg-file what files are in the sis-file to ensure that all files that should be there are there, in my case generated game_template.pkg -file contains line:

    Qt Code:
    1. ; DEPLOYMENT
    2. "/NokiaQtSDK/Symbian/SDK/epoc32/data/z/private/ee097ed6/levels/board.tmx" - "!:\private\ee097ed6\levels\board.tmx"
    To copy to clipboard, switch view to plain text mode 
    and based on that line I know that board.tmx file is in the sis package as well as the executable itself.

  9. The following user says thank you to tsp for this useful post:

    ardisaz (1st December 2010)

  10. #7
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    10
    Qt products
    Qt/Embedded
    Platforms
    MacOS X Windows

    Default Re: About Creating .sis for Nokia

    Wow,, it works!!
    Thank you very much tsp...

  11. #8
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    10
    Qt products
    Qt/Embedded
    Platforms
    MacOS X Windows

    Default Re: About Creating .sis for Nokia

    Im sorry, i can find my file at template.pkg using that deployment technique but the file doesn't included at device (using nokia 5800). Same as friends with other project using database, the database didn't show up.

  12. #9

    Default Re: About Creating .sis for Nokia

    Hi,

    I think You first need to create a .pkg file with directives for creating the sis file. Then you create the sis file using the makesis utility form the SDK.

  13. #10
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    10
    Qt products
    Qt/Embedded
    Platforms
    MacOS X Windows

    Default Re: About Creating .sis for Nokia

    Hi seowebmarketing,

    i'm sorry, but could you please help me explain about create a .pkg file with directives for creating the sis file? thank you very much,,,

  14. #11
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: About Creating .sis for Nokia

    file doesn't included at device
    What do you mean by that? If you create the SIS with the DEPLOYMENT keyword and without it, is the size of the SIS file different?

    If you define the file with DEPLOYMENT keyword and the location is not correct i.e. file cannot be found then you are not able to create SIS file instead error message is shown that the file cannot be found.

    Maybe there are some problems in the way you access the file?

Similar Threads

  1. Apple vs Nokia
    By high_flyer in forum General Discussion
    Replies: 2
    Last Post: 30th November 2010, 04:35
  2. Qt installation on Nokia N78
    By Alteros in forum Installation and Deployment
    Replies: 3
    Last Post: 8th November 2010, 13:21
  3. Nokia to cut 1,800 jobs
    By TorAn in forum General Discussion
    Replies: 2
    Last Post: 25th October 2010, 21:16
  4. Nokia Open C++ Download
    By Granty in forum Newbie
    Replies: 6
    Last Post: 19th October 2010, 21:33
  5. Nokia N810
    By QTInfinity in forum Installation and Deployment
    Replies: 1
    Last Post: 6th March 2009, 12:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.