• 11061阅读
  • 1回复

[提问]make install qt-everywhere-opensource-src-4.8.2.tar.gz时出现错误! [复制链接]

上一主题 下一主题
离线绘梦之卷
 

只看楼主 正序阅读 楼主  发表于: 2012-06-07
首先,虚拟机使用的是arm-linux-gcc-4.3.2版本的交叉编译器,之前没有安装过任何Qt版本。
其次,在官网下载的qt-everywhere-opensource-src-4.8.2.tar.gz。解压后修改了qt-everywhere-opensource-src-4.8.2/mkspace/qws/linux-arm-g++/qmake.conf文件。修改为:
QMAKE_CC              = arm-none-linux-gnueabi-gcc
QMAKE_CXX             = arm-none-linux-gnueabi-g++
QMAKE_LINK            = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
最后,./configure -prefix /usr/local/qt-4.8.2-linux-arm-install -embedded arm -host-little-endian -no-cups -no-3dnow -nomake examples -nomake demos -nomake docs -xplatform /qws/linux-arm-g++make通过,提示使用gmake之类的但是没有使用,按照网上和一些教材的说法直接使用make install,然后就出错了,下面贴出出错的几行:

install -m 644 -p /work/qt-everywhere-opensource-src-4.8.2/src/declarative/debugger/qdeclarativedebug.h /usr/local/qt-4.8.2-linux-arm-install/include/QtDeclarative/
install -m 644 -p /work/qt-everywhere-opensource-src-4.8.2/include/QtDeclarative/QtDeclarative /usr/local/qt-4.8.2-linux-arm-install/include/QtDeclarative/
make[1]: Leaving directory `/work/qt-everywhere-opensource-src-4.8.2/src/declarative'
cd src/3rdparty/webkit/Source/ && make -f Makefile.WebKit install
make[1]: Entering directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source'
cd JavaScriptCore/ && make -f Makefile.WebKit install
make[2]: Entering directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/JavaScriptCore'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/JavaScriptCore'
cd WebCore/ && make -f Makefile.WebKit install
make[2]: Entering directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebCore'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebCore'
cd WebKit/qt/ && make -f Makefile.WebKit.QtWebKit install
make[2]: Entering directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebKit/qt'
make[2]: *** No rule to make target `../../WebCore/release/libwebcore.a', needed by `../../../../../../lib/libQtWebKit.so.4.9.2'.  Stop.
make[2]: Leaving directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebKit/qt'
make[1]: *** [sub-WebKit-qt-QtWebKit-pro-install_subtargets-ordered] Error 2
make[1]: Leaving directory `/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source'
make: *** [sub-webkit-install_subtargets-ordered] Error 2


十分希望各位高人提点和帮助啊,不胜感激!
P.S.上面红色字体部分是不是问题所在呢?缺少的这个库文件要如何加入呢?
离线bzweichao
只看该作者 1楼 发表于: 2012-12-20
出现这个的原因是你的WebCore/release目录(路径大体时qt-everywhere-..../src/3rdparty/webkit/Source)下没有libwebcore.a静态链接库,需要你手动编译出来,如果你有Creator,可以直接打开WebCore.pro,设置成“发布”模式(就是再左侧绿色三角上面有个小电脑,点一下就会出来一个发布一个调试),构建一下即可。如果是命令行,
$qmake WebCore.pro -r -spec linux-g++
$make -w in /home/xxxxxx....xxxxxx/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebCore
具体路径根据个人情况设置。
希望能有用!
快速回复
限100 字节
 
上一个 下一个