【问题标题】:Building with new Qt 5.9 for Android failed使用适用于 Android 的新 Qt 5.9 构建失败
【发布时间】:2018-03-17 12:34:14
【问题描述】:

我刚刚安装了 Qt 5.9 - Android for armeabi-v7a (GCC 4.9, Qt 5.9.1 for Android armv7)

然后我已经下载并安装了所有的 Android 软件包:

然后我在 Qt Creator 中创建了新的 Qt Quick 应用程序项目。 但是在构建项目时,我遇到了一些奇怪的错误:

22:02:34: Starting: "D:\Qt\Qt5.9\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=D:/source/build-Ble-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_1_for_Android_armv7-Debug/android-build" install
      0 [main] sh 4200 sync_with_child: child 4856(0x1A0) died before initialization with status code 0xC0000142
     16 [main] sh 4200 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
Makefile:884: recipe for target 'install_target' failed
mingw32-make: *** [install_target] Error 129

看起来在某些 shell 脚本上构建失败,但我不知道它在哪里。正如我所看到的,它与安装过程有关。编译和链接代码没有任何问题。

【问题讨论】:

    标签: android qt android-ndk qtquick2 android-sdk-tools


    【解决方案1】:

    好的,问题找到了。我有名为AVRDude 的 AVR 固件上传实用程序。看起来在安装 AVRDude 时将其自身添加到 PATH 环境中,因此 Qt 会从该文件夹中获取 sh 和所有其他 bash 工具。

    从PATH 中删除AVRDude 并重建项目解决了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-28
      • 2021-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多