06-20-2013 07:41 AM
I've made an app using Cascades. Ran it on my Z10 in debug mode. Works great!
Packed it and signed it. All is fine.
Installed it on my Z10 and tried to run it but it doesn't do nothing. It tries to start pushing to the first page on my Z10, crashes and backs up on the page where the app icon is shown.
Reistalled the debug version and it works just fine.
I am using OS 10.1.0.1880 leacked cause the mobile providers here didn't bother to push any official version of the 10.1 OS.
06-20-2013 08:21 AM - edited 06-20-2013 08:21 AM
Have you tryed to create a new project and copy/paste your code into it?
If you have started to develop your project from a long time and updated your SDK, the old project structure can cause a invalid and different compilation between debug and release.
Check specificaly your .pro, and your main declaration.
06-20-2013 08:39 AM
Thank for the advise but I am using the same SDK.
Also, tried to copy/paste in a new project and same problem.
I always save my project in different stages of build. I packed the project for release in a starting stage and installed the .bar on the device. The app works fine, although it's not complite.
Any other idea, please!?!
06-20-2013 10:03 AM - edited 06-20-2013 10:04 AM
Ok. Seen that. Quite enlightened me but not so sure if I am right. I am using a read XML and a persistence memory. Guess I need to set shared file permission, yes?
06-20-2013 10:45 AM
Could you paste your bar-descriptor.xml file? I had the same problem earlier and solved it.
06-20-2013 11:23 AM
Make sure you are not trying to write to a folder you don't have write permission in, like the assets folder. If you packaged an asset into your app and want to be able to edit it in your app, copy it to the data folder first.
06-20-2013 12:43 PM
Here is the bar-descriptor.xml I am using:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<asset path="arm/o.le-v7-g/M_W_O" entry="true" type="Qnx/Elf">M_W_O</asset>
<asset path="arm/o.le-v7/M_W_O.so" entry="true" type="Qnx/Elf">M_W_O.so</asset>
<asset path="arm-p/o.le-v7-g/M_W_O" entry="true" type="Qnx/Elf">M_W_O</asset>
<asset path="x86/o-g/M_W_O" entry="true" type="Qnx/Elf">M_W_O</asset>
<asset path="translations" dest="qm">
<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
06-22-2013 10:24 AM - edited 06-22-2013 10:25 AM
Sorry for not writing any more here in this post I was checking, over checking and over checking again my code.
So, I discovered that I made a mistake in the .cpp as follows:
int main(int argc, char **argv)
And it had to be:
Q_DECL_EXPORT int main(int argc, char **argv)
So this problem is solved. Now the IDE packs and signs. The app launches.
But before packing is still saying this:
Source file of asset "MyApp" does not exist.
Again I am missing something and I don't know what.
Any ideas please!!!