Marmalade stupid mistakes compilation

I’ll periodically update this post with the most common mistakes that i do when developing with Marmalade, and that make me waste time.

– adding an empty .group file: Let’s say that i have a main .group file, say, MyProject.group, including all the .ui files, assets, fonts, etc. And this MyProject.group includes another SomeAssets.group file.

If SomeAssets.group is an empty file, application will compile, and work fine on x86 debug / x86 release; But when deploying to Android, App will come with an “Application has crashed unexpectedly” message on its start. Check your .group files! don’t leave one of them empty!

– Having an empty .h/.cpp file in a subproject: This case is much simpler. The app just doesn’t compile. But it displays an error related to the linker that is difficult to identify. It’s just about an empty .h or .cpp file.

– Deploying to win32 release, and not deleting the previous folder: After deploying to Windows, and executing my InnoSetup script to generate an installer, application is installed and overwrites the same folder than the last remaining installation. That means that all user data (e.g. SQLite databases) remain untouched.

– Deploying to Android, not deleting the App first: Marmalade, by default, does an “adb install -r” command when you select the “Package and install” option. That means it will re-install the App, but will keep user data untouched (databases, files, etc…in the smartphone’s SD card). So if you make changes like adding tables to the database, these changes won’t work because the new installation will keep the old database file. The solution to this is just doing “adb uninstall com.myapp.packagename” before re-installing the app.

Advertisements

2 thoughts on “Marmalade stupid mistakes compilation

  1. Excellent blog! Do you have any recommendations for aspiring
    writers? I’m hoping to start my own website soon but I’m a little lost on everything.
    Would you suggest starting with a free platform like WordPress or
    go for a paid option? There are so many options out there that I’m totally confused .. Any ideas? Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s