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. [SOLVED] Qt 5.1 Installation Problem (for Android)
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 5.1 Installation Problem (for Android)

Scheduled Pinned Locked Moved Mobile and Embedded
29 Posts 4 Posters 16.8k 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.
  • K Offline
    K Offline
    kingsta
    wrote on last edited by
    #20

    You got good point. I moved the SDK and NDK to different folder. I changed android settings on Qt (SDK and NDK locations). I have a weird error. I got the error when I build. How can I fix?

    @:-1: error: SDK-NDK\ndk-x86\android-ndk-r9/platforms/android-14/arch-arm/: No such file or directory@

    Output:
    @17:06:19: Running steps for project qt_android2...
    17:06:19: Configuration unchanged, skipping qmake step.
    17:06:19: Starting: "C:\Qt\Qt5.1.0_Android\Tools\mingw48_32\bin\mingw32-make.exe"
    D:\Programs\Android SDK-NDK\ndk-x86\android-ndk-r9/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++ --sysroot=D:\Programs\Android SDK-NDK\ndk-x86\android-ndk-r9/platforms/android-14/arch-arm/ -Wl,-soname,libqt_android2.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libqt_android2.so main.obj mainwindow.obj moc_mainwindow.obj -LD:\Programs\Android\ SDK-NDK\ndk-x86\android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi-v7a -LD:\Programs\Android\ SDK-NDK\ndk-x86\android-ndk-r9/platforms/android-14/arch-arm//usr/lib -lgnustl_shared -lsupc++ -llog -lz -lm -ldl -lc -lgcc -LC:\Qt\Qt5.1.0_Android\5.1.0\android_armv7\lib -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2
    arm-linux-androideabi-g++: SDK-NDK\ndk-x86\android-ndk-r9/platforms/android-14/arch-arm/: No such file or directory
    makefile:147: recipe for target 'libqt_android2.so' failed
    mingw32-make: *** [libqt_android2.so] Error 1
    17:06:20: The process "C:\Qt\Qt5.1.0_Android\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project qt_android2 (kit: Android for arm (GCC 4.4.3, Qt 5.1.0))
    When executing step 'Make'
    17:06:20: Elapsed time: 00:01.@

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Moster
      wrote on last edited by
      #21

      http://qt-project.org/forums/viewthread/30337/

      Same issue like this guy, are you also on windows 8 maybe?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kingsta
        wrote on last edited by
        #22

        Yes I know. I use Windows 7.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kingsta
          wrote on last edited by
          #23

          I found something.

          If I dont connect my phone and I build the project, Android Emulator starts and it waits main screen.
          !http://k1308.hizliresim.com/1d/2/r1hsd.jpg(qt)!

          If I connect my phone, I got the @ :-1: error: SDK-NDK\ndk-x86\android-ndk-r9/platforms/android-14/arch-arm/: No such file or directory@ error

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Moster
            wrote on last edited by
            #24

            I would recommend to try it on a linux distribution. Qt5.1 seems to be more stable on linux.

            Or maybe try some older ndk: http://dl.google.com/android/ndk/android-ndk-r8e-windows-x86.zip

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kingsta
              wrote on last edited by
              #25

              I guess I should wait the Qt 5.2 for more stable. Emulator has a bug, yes. Why dont i connect my phone? :(

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Moster
                wrote on last edited by
                #26

                Same goes for you. I also posted in the other thread. You have spaces in your folder structure.
                Android SDK-NDK\ndk-x86\android-ndk-r9
                Remove the space in Android SDK-NDK

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kingsta
                  wrote on last edited by
                  #27

                  I think You got the point. I changed the folder name Android-SDK-NDK. So If I connect my phone, I got the @:-1: error: [install_target] Error 1@ error now. If I dont connect my phone, I still see the main android screen.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Moster
                    wrote on last edited by
                    #28

                    What is the rest of the log to maybe see at which step it fails?

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kingsta
                      wrote on last edited by
                      #29

                      Here they are... We finally found the solution.

                      I fix the "install_target error" error. Cause of the error is spaces in my folder structure. My project's location is D:\Other\C++\Qt\my codes. I change the D:\Other\C++\Qt\my-codes. We should never use spaces.

                      Secondly, I have a layout problem. "Merhaba Dünya :)" label has a big background, you see. How can I do screen that like Windows (I mean similar windows)? Is there any article for Android Widget/Layout system on Qt?

                      !http://m1308.hizliresim.com/1d/6/r6bxv.jpg(qt)!

                      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