Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Building the android app with library fails in QtCreator/Windows
Forum Updated to NodeBB v4.3 + New Features

Building the android app with library fails in QtCreator/Windows

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 1 Posters 1.4k 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.
  • T Offline
    T Offline
    Tramvon
    wrote on last edited by
    #1

    I try to create qtquick extention and app which uses it. The project root folder is: f:/work/app-project. There is all.pro file in that folder:

    @TEMPLATE = subdirs

    SUBDIRS +=
    app
    ext

    ext.subdir = ext
    app.depends = ext
    @

    When I try to build and deploy project to my android device and I have got an errors:
    @
    Starting: "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" INSTALL_ROOT="F:/work/app-project/build-app-Android_for_armeabi_GCC_4_8_Qt_5_3_1Debug/android-build" install
    cd ext/ && ( test -e Makefile || D:/Qt/5.3/android_armv5/bin/qmake.exe F:/work/app-project/app/ext/ext.pro -spec android-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ) && D:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile install
    mingw32-make[1]: Entering directory 'f:/work/app-project/build-app-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Debug/ext'
    /usr/bin/sh: D:MinGWmsys1.0workapp-projectbuild-app-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Debugandroid-build/libs/armeabi/: No such file or directory
    /usr/bin/sh: D:MinGWmsys1.0workapp-projectbuild-app-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Debugandroid-build/libs/armeabi/: No such file or directory
    @

    It seems like path passed to MSYS contains MS slashes - '', and MSYS simple eats them. How I can correct this?

    I think this situation can be corrected in way to change msys shell commands to Windows native shell commands - copy, mkdir, etc. How I can configure qtCreator/qmake to use windows native shell?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tramvon
      wrote on last edited by
      #2

      This problem was inspired by MSYS installed on my PC, and path to MSYS bin directory specified in system variable %PATH%.

      QMake script in spec_pre.prf:
      @
      equals(QMAKE_HOST.os, Windows) {
      QMAKE_EXT_OBJ = .obj
      QMAKE_EXT_RES = .res
      QMAKE_SH =
      PATH = $$(PATH)
      PATH = $$split(PATH, ;)
      for(dir, PATH) {
      exists($$dir/sh.exe) {
      QMAKE_SH = $$dir/sh.exe
      break()
      }
      }
      unset(PATH)
      } else {
      QMAKE_EXT_CPP += .C
      QMAKE_EXT_H += .H
      QMAKE_EXT_OBJ = .o
      QMAKE_SH = sh
      }@

      finds executable SH.EXE and uses it. Removing MSYS from %PATH% solves problem.

      New problem is:

      Tryinig to make project causes calling mingw32-make and the something test. I find such prormam in MSYS, but I can't understand, what it do. Try test -h, test --help, test -h, test /h and so on does nothing.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tramvon
        wrote on last edited by
        #3

        I wrote test.bat which solveng problem:
        @
        echo off
        rem test -d file - 0 if file or dir exist
        rem test -e file - 0 if file exist

        if "%1"=="-d" goto lblchkdir
        if "%1"=="-e" goto lblchkfile
        goto end

        :lblchkdir
        if exist %2% (
        exit /b 0
        )
        goto end
        :lblchkfile
        if exist %2% (
        exit /b 0
        )
        :end
        exit /b 1
        @

        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