作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我尝试在我的 Ubuntu 15.04 机器上安装 APK Studio,但不断收到此错误消息:
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DAPP_REV_SHORT=\"0978cd4\" -DAPP_REV_LONG=\"0978cd4653fcfed5601d57b8e0f7cfade7f64d7a\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o adb.o src/adb.cpp
In file included from ./include/adb.h:5:0,
from src/adb.cpp:1:
./include/process.h:4:30: fatal error: QRegularExpression: No such file or directory
#include <QRegularExpression>
^
compilation terminated.
Makefile:474: recipe for target 'adb.o' failed
make: *** [adb.o] Error 1.
我该如何解决这个问题?
最佳答案
您可能正在使用不受支持的 QT 版本,请检查您的版本:
$ qmake -version
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu
确保你有 GCC 4.6+, QT 5.2+
在 Ubuntu 上,您可以运行:
$ sudo apt-get install qt5-qmake qt5-default libqt5opengl5-dev
$ qmake -version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
再次运行 make 应该可以正确构建 ApkStudio。
关于linux - 在 Linux(Ubuntu 15.04)上安装 ApkStudio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33799939/
我用 apktool 解码了一个 apk 文件,我没有改变任何东西。之后,我再次构建它,然后尝试安装 apk,但即使进行了一些基本更改,我仍收到以下错误。 我使用 Windows cmd 做了什么:
我尝试在我的 Ubuntu 15.04 机器上安装 APK Studio,但不断收到此错误消息: g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DAPP_
我是一名优秀的程序员,十分优秀!