April 24, 2012

cnaz cnaz
Lab Rat
11 posts

Problem in deploying application on Qt Creator

 

I’m developing a game application for Symbian^3 devices using Qt SDK 1.2.1. Below is the code on my .pro file

  1. # Add files and directories to ship with the application
  2. # by adapting the examples below.
  3. file1.source = /n-back/sounds/*.wav
  4.  dir1.source = /n-back/sounds/
  5.  file2.source = /general/sounds/*.mp3
  6.  dir2.source = /general/sounds/
  7.  file3.source = /general/images/level_buttons/*.png
  8.  dir3.source = /general/images/level_buttons/
  9.  file4.source = /general/images/g_mode_buttons/*.*
  10.  dir4.source = /general/images/g_mode_buttons/
  11.  file5.source = /general/images/AfterQuickPlay/*.png
  12.  dir5.source = /general/images/AfterQuickPlay/
  13.   file6.source = /general/images/*.*
  14.  dir6.source = /general/images/
  15.  file7.source = /eggmatics/images/*.*
  16.  dir7.source = /eggmatics/images/
  17.  file8.source = /ladderlogic/images/*.*
  18.  dir8.source = /ladderlogic/images/
  19.  file9.source = /vocabulary/images/*.*
  20.  dir9.source = /vocabulary/images/
  21.  file10.source = /running eggs/images/*.*
  22.  dir10.source = /running eggs/images/
  23.  file11.source = /n-back/images/*.*
  24.  dir11.source = /n-back/images/
  25. DEPLOYMENTFOLDERS =  file1 \
  26.    file2 \
  27.     file3 \
  28.     file4 \
  29.     file5 \
  30.     file6 \
  31.     file7 \
  32.     file8 \
  33.     file9 \
  34.     file10 \
  35.     file11
  36.  
  37. symbian:TARGET.UID3 = 0xE6025977
  38.  
  39. TARGET.EPOCHEAPSIZE = 0x1000 0x1F400000
  40.  
  41. QT += phonon
  42.  
  43. # Smart Installer package's UID
  44. # This UID is from the protected range
  45. # and therefore the package will fail to install if self-signed
  46. # By default qmake uses the unprotected range value if unprotected UID is defined for the application
  47. # and 0x2002CCCF value if protected UID is given to the application
  48. #symbian:DEPLOYMENT.installer_header = 0x2002CCCF
  49.  
  50. # Allow network access on Symbian
  51. symbian:TARGET.CAPABILITY += NetworkServices
  52.  
  53. # If your application uses the Qt Mobility libraries, uncomment
  54. # the following lines and add the respective components to the
  55. # MOBILITY variable.
  56. # CONFIG += mobility
  57. # MOBILITY +=
  58.  
  59. CONFIG += mobility
  60. MOBILITY +=
  61. symbian: {
  62. #ORIGINAL    TARGET.UID3 = 0xE6025977
  63. #JOKE TARGET.UID3 = 0xA000D7CE
  64. TARGET.UID3 = 0xE6025977
  65.  
  66. }
  67. SOURCES += main.cpp mainwindow.cpp \
  68.  customqgraphicsscene.cpp \
  69.     ladderlogic.cpp \
  70.     ladder.cpp \
  71.     lddrlogylwhen.cpp \
  72.     chick.cpp \
  73.     wood.cpp \
  74.     result.cpp \
  75.     lev.cpp \
  76.     transition.cpp \
  77.     timerstring.cpp \
  78.     levstat.cpp \
  79.     ladderintsruc.cpp \
  80.     egg.cpp \
  81.     eggmatics.cpp \
  82.     eqtngen.cpp \
  83.     vocabulary.cpp \
  84.     arrow.cpp \
  85.     word.cpp \
  86.     eggmatics_answer.cpp \
  87.     r_egg.cpp \
  88.     running_egg.cpp \
  89.     acetate.cpp \
  90.     num_in_square.cpp \
  91.     q_and_a_box.cpp \
  92.     n_back.cpp \
  93.     square.cpp \
  94.     nbackbutton.cpp \
  95.     great.cpp \
  96.     oops.cpp \
  97.     player.cpp \
  98.     btnquickgame.cpp \
  99.     btnlevel.cpp \
  100.     btnselectgamemode.cpp \
  101.     quickscore.cpp \
  102.     graph.cpp \
  103.     generalbutton.cpp \
  104.     userbtn.cpp \
  105.     key.cpp \
  106.     avatar.cpp \
  107.     musicplayer.cpp
  108.  
  109. HEADERS += mainwindow.h \
  110. customqgraphicsscene.h \
  111.     ladderlogic.h \
  112.     ladder.h \
  113.     lddrlogylwhen.h \
  114.     chick.h \
  115.     wood.h \
  116.     result.h \
  117.     lev.h \
  118.     transition.h \
  119.     timerstring.h \
  120.     levstat.h \
  121.     ladderintsruc.h \
  122.     egg.h \
  123.     eggmatics.h \
  124.     eqtngen.h \
  125.     vocabulary.h \
  126.     arrow.h \
  127.     word.h \
  128.     eggmatics_answer.h \
  129.     r_egg.h \
  130.     running_egg.h \
  131.     acetate.h \
  132.     num_in_square.h \
  133.     q_and_a_box.h \
  134.     n_back.h \
  135.     square.h \
  136.     nbackbutton.h \
  137.     great.h \
  138.     oops.h \
  139.     player.h \
  140.     btnquickgame.h \
  141.     btnlevel.h \
  142.     btnselectgamemode.h \
  143.     quickscore.h \
  144.     graph.h \
  145.     generalbutton.h \
  146.     userbtn.h \
  147.     key.h \
  148.     avatar.h \
  149.     musicplayer.h
  150.  
  151. FORMS += mainwindow.ui
  152. QT -= opengl
  153. DEFINES += QT_NO_OPENGL
  154. symbian {
  155.       TARGET.UID3 = 0xE6025977
  156.       DEPLOYMENT.installer_header=0xE6025977
  157.  
  158.       vendorinfo = \
  159.       "%{\"CustomVendor-EN\"}" \
  160.       ":\"CustomVendor\""
  161.  
  162.       my_deployment.pkg_prerules = vendorinfo
  163.       DEPLOYMENT += my_deployment
  164.   }
  165.  
  166.  
  167. # Please do not modify the following two lines. Required for deployment.
  168. include(deployment.pri)
  169. qtcAddDeployment()
  170.  
  171. RESOURCES +=

There were issues/errors upon building the application on device:

15:23:22: Running build steps for project LadderLogicTest…
15:23:22: Configuration unchanged, skipping qmake step.
15:23:22: Starting: “C:\QtSDK\Symbian\SDKs\Symbian3Qt474\epoc32\tools\make.exe” release-gcce -w
make.exe: Entering directory `C:/Users/Kaye/Desktop/Capstone/Eggheads/LadderLogicTest’
sbs -c arm.v5.urel.gcce4_4_1 mifconv : BITMAP [arm.v5.urel.gcce4_4_1]
sbs: warning: Missing dependency detected: c:/running C:/QtSDK/Symbian/tools/sbs/win32/cygwin/bin/cp: cannot stat `c:/running’: No such file or directory

sbs : warnings: 1
sbs : errors: 2

built ‘arm.v5.urel.gcce4_4_1’

Run time 30 seconds

sbs: build log in C:\QtSDK\Symbian\SDKs\Symbian3Qt474\epoc32\build\Makefile.2012-04-24-15-23-26.16-4820.log

FAILED qmake_emulator_deployment for arm.v5.urel.gcce4_4_1: c:\QtSDK\Symbian\SDKs\Symbian3Qt474\epoc32\data\z\private\e6025977\running mingw32-make1: *** [c:/QtSDK/Symbian/SDKs/Symbian3Qt474/epoc32/data/z/private/e6025977/running] Error 1
sbs: error: The make-engine exited with errors.
make.exe: Leaving directory `C:/Users/Kaye/Desktop/Capstone/Eggheads/LadderLogicTest’
make.exe: *** [release-gcce] Error 1
15:23:55: The process “C:\QtSDK\Symbian\SDKs\Symbian3Qt474\epoc32\tools\make.exe” exited with code 2.
Error while building project LadderLogicTest (target: Symbian Device)
When executing build step ‘Make’

How will i solve this problem?

9 replies

April 24, 2012

GentooXativa GentooXativa
Lab Rat
126 posts

You should put a TARGET, so the installer knows where should install the files into device.

  1. file1.source = /n-back/sounds/*.wav
  2. file1.path = dir_on_phone/n-back/sounds/*.wav          <----
  3.  
  4. dir1.source = /n-back/sounds/
  5. dir1.path = dir_on_phone/n-back/sounds/                  <----

By the way, if you move the whole dir, the installer move the files into that directory

 Signature 

Jose Vicente Giner Sanchez - Senior Mobile Developer

www.gigigo.com

C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
T: +34 917431436

April 24, 2012

leon.anavi leon.anavi
Area 51 Engineer
1216 posts

Update: As far as I see from the error file your problem is caused by a missing dependency. Ensure that file c:/running exists because Cygwin complains about it.

 Signature 

http://anavi.org/

April 24, 2012

cnaz cnaz
Lab Rat
11 posts

GentooXativa wrote:
You should put a TARGET, so the installer knows where should install the files into device.
  1. file1.source = /n-back/sounds/*.wav
  2. file1.path = dir_on_phone/n-back/sounds/*.wav          <----
  3.  
  4. dir1.source = /n-back/sounds/
  5. dir1.path = dir_on_phone/n-back/sounds/                  <----

By the way, if you move the whole dir, the installer move the files into that directory

How do I know the dir on phone? is that a variable? or is “dir_on_phone” the one i will literally use?

leon.anavi wrote:
Update: As far as I see from the error file your problem is caused by a missing dependency. Ensure that file c:/running exists because Cygwin complains about it.

How do i check if it exists? And if it does not exist, what will i do?

Sorry.I’m really a newbie in QT

April 24, 2012

GentooXativa GentooXativa
Lab Rat
126 posts

the dir on phone is relative

  1. /private/<UID of your APP/

so if you use

  1. file1.source = /n-back/sounds/*.wav
  2. file1.path = n-back/sounds/*.wav

This go to install into:

  1. /private/<UID of your APP>/n-back/sounds

 Signature 

Jose Vicente Giner Sanchez - Senior Mobile Developer

www.gigigo.com

C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
T: +34 917431436

April 24, 2012

cnaz cnaz
Lab Rat
11 posts

GentooXativa wrote:
the dir on phone is relative
  1. /private/<UID of your APP/

so if you use

  1. file1.source = /n-back/sounds/*.wav
  2. file1.path = n-back/sounds/*.wav

This go to install into:
@
/private/<UID of your APP>/n-back/sounds
@

I changed my codes according to what you instructed but same error appears, “make-engine exited with errors”

April 24, 2012

GentooXativa GentooXativa
Lab Rat
126 posts

Can you paste the error here or at pastebin? So i can help you properly :D

 Signature 

Jose Vicente Giner Sanchez - Senior Mobile Developer

www.gigigo.com

C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
T: +34 917431436

April 24, 2012

cnaz cnaz
Lab Rat
11 posts

Here are the issues:

warning: Missing dependency detected: c:/running

error: Recipe qmake_emulator_deployment failed with exit code 1.

Running command: C:/QtSDK/Symbian/tools/sbs/win32/cygwin/bin/cp.exe —remove-destination —no-preserve=mode c:/running c:/QtSDK/Symbian/SDKs/Symbian3Qt474/epoc32/data/z/private/e6025977/running
C:/QtSDK/Symbian/tools/sbs/win32/cygwin/bin/cp: cannot stat `c:/running’: No such file or directory

error: The make-engine exited with errors.

by the way, thanks in advance GentooXativa!

April 24, 2012

mlong mlong
Robot Herder
1551 posts

The problem is that qmake doesn’t handle directories with spaces in them very well at all. That’s why it’s only seeing “running” instead of “running eggs”

Try renaming “running eggs” to “running_eggs” or something similar and I bet things will work properly.

 Signature 

Senior Software Engineer
AccuWeather Enterprise Solutions
/* My views and opinions do not necessarily reflect those of my employer.  Void where prohibited. */

April 25, 2012

cnaz cnaz
Lab Rat
11 posts

Many thanks to those who replied! We are still not finished with the deployment but atleast there is already a progress. The Qt Creator has already produced a .sis file.

 
  ‹‹ Installation QT SDK 1.2.1 on mac os x 10.6.8 32-bit      Problem while building the example application ››

You must log in to post a reply. Not a member yet? Register here!