Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Could not read qmake configuration file
Forum Updated to NodeBB v4.3 + New Features

Could not read qmake configuration file

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 9.2k 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.
  • L Offline
    L Offline
    lgb3
    wrote on 17 Nov 2013, 15:29 last edited by
    #1

    Hi,

    I'm trying to develop for Android using Qt, but with no success. I have tried several combinations of Qt versions, Android Targets (both emulators and real devices), and development platforms (Mac and Linux). The error message varies, but in all these combinations I have the following errors in the "General Messages" tab :

    @/bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
    Could not read qmake configuration file /home/guilhermebrant/Qt5.2.0/5.2.0-beta1/android_armv7/mkspecs/android-g++/qmake.conf.
    /bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
    Could not read qmake configuration file /home/guilhermebrant/Qt5.2.0/5.2.0-beta1/android_armv5/mkspecs/android-g++/qmake.conf.
    /bin/sh: 1: /opt/android/ndk/toolchains/x86-4.8/prebuilt/linux-x86_64/bin/i686-linux-android-gcc: not found
    Could not read qmake configuration file /home/guilhermebrant/Qt5.2.0/5.2.0-beta1/android_x86/mkspecs/android-g++/qmake.conf.@

    Could this be the issue preventing me from deploying to Android?

    Thanks in advance,
    lgb.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 17 Nov 2013, 18:00 last edited by
      #2

      Is the NDK installed where Qt is looking for it? Do those paths exist on your machine?

      (Z(:^

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgb3
        wrote on 17 Nov 2013, 21:13 last edited by
        #3

        Well, I just copied the ndk directory to the one indicated in the error. Now this error message does not appear anymore.
        However, I still get the same error while deploying to Android:

        @BUILD FAILED
        /home/guilhermebrant/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
        /home/guilhermebrant/android-sdk-linux/tools/ant/build.xml:698: null returned: 1

        Total time: 7 seconds
        Generating Android Package
        Input file: /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/android-libcutedroid-messenger.so-deployment-settings.json
        Output directory: /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/android
        Application binary: /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/libcutedroid-messenger.so
        Android build platform: android-10
        Install to device: 0123456789ABCDEF
        [subant] No sub-builds to iterate on
        Building the android package failed!
        -- For more information, run this command with --verbose.
        19:09:33: The process "/home/guilhermebrant/Qt5.2.0/5.2.0-beta1/android_armv5/bin/androiddeployqt" exited with code 14.
        Error while building/deploying project cutedroid-messenger (kit: Android for armeabi (GCC 4.8, Qt 5.2.0))
        When executing step 'Deploy to Android device'@

        Does anyone know a solution to this problem?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LangstoniusRex
          wrote on 19 Nov 2013, 04:59 last edited by
          #4

          I think the issue might be the addition of screenSize

          You should have similar line to this one in your AndroidManifest.xml (4th from the top if )

          <activity android:configChanges="orientation|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:screenOrientation="unspecified" android:label="@string/app_name">

          Note the bold part. You likely have screenSize in addition. Remove it, and the preceding | and try to build.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgb3
            wrote on 19 Nov 2013, 11:52 last edited by
            #5

            Well, another error appears now, the same I had when compilling on MacOs with QtCreator 5.2 Beta, targetting a API 18 emulator device:

            @BUILD FAILED
            /home/guilhermebrant/android-sdk-linux/tools/ant/build.xml:720: The following error occurred while executing this line:
            /home/guilhermebrant/android-sdk-linux/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

            Total time: 13 seconds
            Building the android package failed!
            -- For more information, run this command with --verbose.
            Generating Android Package
            Input file: /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/android-libcutedroid-messenger.so-deployment-settings.json
            Output directory: /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/android
            Application binary: /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/libcutedroid-messenger.so
            Android build platform: android-10
            Install to device: 0123456789ABCDEF
            [subant] No sub-builds to iterate on
            [javac] /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/android/gen/org/qtproject/example/cutedroid-messenger/BuildConfig.java:2: error: ';' expected
            [javac] package org.qtproject.example.cutedroid-messenger;
            [javac] ^
            [javac] /home/guilhermebrant/workspace/lgb-tcc/build-cutedroid-messenger-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Debug/android/gen/org/qtproject/example/cutedroid-messenger/R.java:8: error: ';' expected
            [javac] package org.qtproject.example.cutedroid-messenger;
            [javac] ^
            [javac] 2 errors@

            1 Reply Last reply
            0

            1/5

            17 Nov 2013, 15:29

            • Login

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