S
S
Sergey2014-01-21 22:18:34
Android
Sergey, 2014-01-21 22:18:34

Building Qt 5.2.0 for compiling android applications

I'm running this batch file:

SET "QTDIR=%~dp0"
SET "QTDIR=%QTDIR:~0,-1%"
SET QMAKESPEC=win32-g++
SET "PATH=C:\Qt\Qt5.2.0\Tools\mingw48_32\bin;%QTDIR%\bin;%PATH%"
pause
 
configure.exe -developer-build -platform win32-g++ -xplatform android-g++ -android-ndk C:\Qt\Qt5.2.0\android_ndk -android-sdk C:\Qt\Qt5.2.0\android_sdk\sdk -opensource -confirm-license -nomake tests -nomake examples -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples || @goto :ends
 
pause
 
mingw32-make
 
:ends
@cmd /q /a /k ""

Stumbles at this place:
Creating qmake...
mingw32-make: Nothing to be done for 'first'.
Running configuration tests...
The system cannot find the specified path.
process_begin: CreateProcess(NULL, C:\Qt\Qt5.2.0\android_ndk/toolchains/arm-linu
x-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -Wno-psabi -
march= armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables
-fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g
-gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -fPIE -IC:\Qt\Q
t5.2.0\5.2.0\mingw48_32_android\qtbase\mkspecs\android-g++ -I.-IC:\Qt\Qt5.2.0\a
ndroid_ndk\sources\cxx-stl\gnu-libstdc++\4.8\include -IC:\Qt\Qt5.2.0\android_ndk
\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a\include -IC:\Qt\Qt5.2.0\andr
oid_ndk\platforms\android-9\arch-arm\usr\include -o arch. obj arch.cpp, ...) fail
ed.
make (e=2):
mingw32-make: *** [arch.obj] Error 2
Could not find output file: No such file or directory
C:\Qt\Qt5.2.0\5.2.0\mingw48_32_android\qtbase>

Tell me what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GloooM, 2014-01-22
@GloooM

Do you use Cyrillic in the path to the file?

A
Alexey Volkov, 2014-04-28
@ASGAlex

So it is, the valiant QtCreator in the path to the build directory replaces "for" with "for" - that's where the end comes. In my case, build-RedmineTimeTrack-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_1-Debug turned into build-RedmineTimeTrack-Android_ for _armeabi_v7a_GCC_4_8_Qt_5_2_1-Debug. You need to rename it manually in the project build settings.

X
Xintrea, 2014-11-01
@webhamster

The process of installing qt 5.2.0 and compiling the first program is described in detail here .
And yes, qt does not digest Cyrillic in file names in any way. Even if the whole system is in utf8, the file system is in utf8, the source files are in utf8, the file will not be found anyway. It may have already been fixed, but in 4.8 there were problems with Cyrillic in file names.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question