[SOLVED] Qt Developer is unable to update the app on N900



  • Hello!

    I am currently working on a C++ application for the N900 and used Qt Developer to develop, test and deploy the application without any problems on the Device. Until now it worked like a charm.

    Now I observe some strange behavior: When i run the program it always executes an old version of the application. I can kill the application using the red button in Qt Developer. Even when I debug the program there comes no error message, but the program does not pause on breakpoints in the code.
    When i do a cleanup (Build->Clean Project) the process finishes without any errors. When I run the program first time after the cleanup the following messages appear in the "Application Output":
    @
    Cleaning up remote leftovers first ...
    Initial cleanup done.
    Files to deploy: /home/ ... /application_0.0.1_armel.deb.
    Deployment finished.
    Starting remote application.

    dpkg: cannot extract control file

    Finished running remote process.
    @

    When I start the application after this error message appears, it starts the old version again.

    Does anybody have an idea what could be broken?

    Where does Qt Developer store the executable on the Device?

    Thanks,
    pgebhard



  • Have you tried to remove the previous installation from the device and after that to install the new version?

    Cheers,
    Leon



  • My program is not listed in the installed applications in the application manager. I don't find the executable, so I can't delete the app manually.



  • Hi pgebhard,

    I do not have experience with Maemo but on MeeGo you can remove a package using rpm. Maemo is using deb files to install applications so you can try:

    @sudo dpkg -r <your app package>@

    Regards,
    Leon



  • Sounds completely weird. Which Creator version is this?



  • Hi!

    I use Qt Creator 2.0.1 on Ubuntu 10.10. The device is a N900 Maemo 5 Version 20.2010.36-2.

    To Leon: Thanks, I was able to remove the package.

    But my problem is still there: When I start the app, Qt Creator gives me the following Error message:
    @
    chmod: /usr/local/bin/MobileCassaApplication: No such file or directory
    @
    I guess there is some problem with the user rights. But as far as I remember, I did not change anything in the user management.



  • [quote author="pgebhard" date="1301991937"]Hi!

    I use Qt Creator 2.0.1 on Ubuntu 10.10.

    [/quote]

    I strongly advise you to to upgrade to 2.1, e.g. using the QtSDK 1.1 beta.

    [quote]

    To Leon: Thanks, I was able to remove the package.

    But my problem is still there: When I start the app, Qt Creator gives me the following Error message:
    @
    chmod: /usr/local/bin/MobileCassaApplication: No such file or directory
    @
    I guess there is some problem with the user rights. But as far as I remember, I did not change anything in the user management.
    [/quote]

    To me it looks as if Creator somehow "forgot" to put your executable in the package, but I don't remember version 2.0.1 well enough to help any further. Again, you should be using 2.1, it's worth it.



  • Now I updated to Qt Creator 2.1, but the problem still occurs.

    Here is a more detailed output of the build system:
    @
    Package created.
    Installing package to sysroot ...
    mad-admin: -t -- command not found.
    Installation to sysroot failed, continuing anyway.
    Connecting to device...
    No directories to unmount
    Started uploading file '/home/ ... /application_0.0.1_armel.deb'.
    Successfully uploaded file '/home/ ... /application_0.0.1_armel.deb'.
    Installing package to device...
    dpkg: cannot extract control file
    No directories to unmount
    Deployment finished.
    Error while building project Application (target: Maemo)
    When executing build step ''
    @

    I think I found the error: mad-admin command not found.
    I try to reinstall MADDE.



  • Updating to the new version also did not help. But it was it worth!!

    What helped was to completely reinstall the OS and developer tools on the N900.

    Thanks for your help!


Log in to reply
 

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