Making a Release build with Necessitas



  • Sort of a repost from the qt-android mailing list.

    Couldn't figure this out myself and found next to nothing by googling this - how does one create a release build with current alpha4 Necessitas QtCreator? A year ago I published an Qt app on Google Play so it must have worked at some point but now..

    I mean I've selected the "Default build Release" configuration in the
    build options, do a clean rebuild and hit Run to deploy, and what I end up
    with is a debug build?

    It does build things into directory
    myapp-build-6510e5-Default_build_Release which includes myapp.so

    but then checking the output of 'file myapp.so' says:

    .so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically
    linked (uses shared libs), not stripped

    -> it's a debug build, also in the ant step the 'debug' target is run and
    I end up with myapp-debug-unaligned.apk.

    I'm trying to build on a 64bit Ubuntu 12.04 platform, for armv7 release target.

    What am I missing? Thanks in advance.

    • Matti


  • Somewhat strange thing is that the build gets -O2 -DQT_NO_DEBUG flags which I wouldnt expect in a debug build. At the same time the .pro file debug: definitions are used and a .so file with debug symbols is generated..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.