Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Necessitas on emulator
Forum Updated to NodeBB v4.3 + New Features

Necessitas on emulator

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deimos
    wrote on last edited by
    #1

    Hi all,
    I have just installed necessitas and android sdk. I setup qtcreator following the wiki and I have generated a default project. I started also the emulator within qtcreator. When I compile it, its ok, but when I run it it tell me that can't copy the binary file. In the build directory it doesn't exist
    here the output:

    @Running build steps for project untitledandroid...
    Configuration unchanged, skipping qmake step.
    Starting: "/usr/bin/make" -w
    make: Entering directory /home/deimos/Documents/workspace/prove/untitledandroid-build-android' /opt/necessitas/android-ndk-r5c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ --sysroot=/opt/necessitas/android-ndk-r5c/platforms/android-8/arch-arm/ -L/opt/necessitas/android-ndk-r5c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3 -Wl,-rpath-link=/opt/necessitas/android-ndk-r5c/platforms/android-8/arch-arm//usr/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libuntitledandroid.so -Wl,-rpath=/data/data/eu.licentia.necessitas.ministro/files/qt/lib -o libuntitledandroid.so main.o qmlapplicationviewer.o qtmain_android.o moc_qmlapplicationviewer.o -L/opt/necessitas/android-ndk-r5c/sources/cxx-stl/gnu-libstdc++/libs/armeabi -L/opt/necessitas/android-ndk-r5c/platforms/android-8/arch-arm//usr/lib -L/opt/necessitas/Android/Qt/4762/armeabi-v7a/lib -lQtDeclarative -L/opt/necessitas/Android/Qt/4762/armeabi-v7a/lib -L/tmp/necessitas/android-ndk-r5c/sources/cxx-stl/gnu-libstdc++/libs/armeabi -L/tmp/necessitas/android-ndk-r5c/platforms/android-4/arch-arm//usr/lib -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtNetwork -lQtGui -lQtCore -lstdc++ -lsupc++ -llog -lz -lm -ldl -lc -lgcc Copying application data... make: Leaving directory /home/deimos/Documents/workspace/prove/untitledandroid-build-android'
    The process "/usr/bin/make" exited normally.
    Copy Qt app & libs to Android package ...
    Can't copy 'untitledandroid' from '/home/deimos/Documents/workspace/prove/untitledandroid-build-android' to '/home/deimos/Documents/workspace/prove/untitledandroid-build-android'
    Error while building project untitledandroid (target: Android)
    When executing build step 'Packaging for Android'@

    what could I missed ? thanks
    I am using debian 64 bit

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Not sure, as I've used actual device, not an emulator. The 'can't copy' line seems to indicate, that 'Packaging' step tries to copy 'untitledandroid' from one directory back to the vary same directory. Maybe that's the cause?

      (Z(:^

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deimos
        wrote on last edited by
        #3

        thanks for the reply.
        Yes, the packaging step tries to copy that binary file, but it is not there, it's not created. I just made a default project to test and I am new to this. I read somewhere that a "android/libs/armeabi/<projectName.so>" should be created, but its not.
        In a shell, I tried to do 'ant release' under 'android' directory, and it create the apk file. Then with 'ant install' its been installed correctly into emulator. When I run it in the emulator it ask for ministro but cannot find it even if I set in Deploy Configuration to install it :(
        So I think there is something wrong in my installation or in some necessitas script, but I don't know where to put my fingers

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qtnext
          wrote on last edited by
          #4

          I think waiting for next necessitas release (alpha 3) can help ... and It seems that it's not far now :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved