Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.1
-
None
-
-
c99f909bedad3f590c92deeeefa02e4e74029c1c
Description
Something changed which has caused qmake to produce relative paths in the Makefile for the dependencies in the Android NDK.
When combined with Qt Creator's long shadow build directory names on Windows, this will almost always cause us to hit the system path length limitation, which will cause errors like this:
10:20:26: Running steps for project qmlsensorgestures... 10:20:26: Starting: "D:\dev\Qt5.2.1Android\Tools\mingw48_32\bin\mingw32-make.exe" clean del moc_qcountergestureplugin.cpp moc_qcounterrecognizer.cpp Could Not Find D:\dev\Qt5.2.1Android\5.2.1\android_armv7\examples\sensors\build-qmlsensorgestures-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_1_Android_GCC_arm_4_8-Debug\plugin\moc_qcountergestureplugin.cpp del qcountergestureplugin.obj qcounterrecognizer.obj moc_qcountergestureplugin.obj moc_qcounterrecognizer.obj Could Not Find D:\dev\Qt5.2.1Android\5.2.1\android_armv7\examples\sensors\build-qmlsensorgestures-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_1_Android_GCC_arm_4_8-Debug\plugin\qcountergestureplugin.obj del *~ core *.core Could Not Find D:\dev\Qt5.2.1Android\5.2.1\android_armv7\examples\sensors\build-qmlsensorgestures-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_1_Android_GCC_arm_4_8-Debug\plugin\*~ 10:20:26: The process "D:\dev\Qt5.2.1Android\Tools\mingw48_32\bin\mingw32-make.exe" exited normally. 10:20:26: Configuration unchanged, skipping qmake step. 10:20:26: Starting: "D:\dev\Qt5.2.1Android\Tools\mingw48_32\bin\mingw32-make.exe" mingw32-make: *** No rule to make target '..\..\..\..\..\..\..\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a\include\bits\c++config.h', needed by 'qcountergestureplugin.obj'. Stop. 10:20:27: The process "D:\dev\Qt5.2.1Android\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2. Error while building/deploying project qmlsensorgestures (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.2.1)-Android GCC (arm-4.8)) When executing step 'Make' 10:20:27: Elapsed time: 00:01.
The problem here is that while the file exists, the path
$$REALLY_LONG_INSTALL_PATH\..\..\..\..\..\..\..\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a\include\bits\c++config.h
becomes too long for the system, so the file can't be opened by mingw32-make.
I think we should return to using absolute paths for the dependencies.
Attachments
Issue Links
- is required for
-
QTBUG-37065 Issues to be fixed before 5.3.0 RC1 release
- Closed
- replaces
-
QTCREATORBUG-11343 Android: Shadow building on Windows broken with Qt 5.2.1 packages
- Closed
For Gerrit Dashboard: QTBUG-37113 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
83425,1 | don't make relative paths if we don't know the top-level build dir | release | qt/qtbase | Status: MERGED | +2 | 0 |