无法在Raspberry Pi上构建Qt代码

时间:2015-12-02 04:02:47

标签: qt raspberry-pi

过去几周,我一直在尝试在 Raspberry Pi 上设置Qt原生构建环境。

我按照Native Build of Qt 5.4.1中提到的步骤进行操作。 由于我不使用USB硬盘,我省略了以下步骤:

  1. 将信息源打包到外部USB HDD
  2. 增加并发编译的可用RAM
  3. 相反,我提取移动到路径:cd ~/opt/qt-everywhere-opensource-src-5.4.1

    对于编译,我跑了:make 2>&1 | tee make.out

    我尝试 Qt 5.4.1 构建 Jessie Raspbian OS ,但失败了。我发现有人发布了类似的错误并试图回复,但最后没有回复。 现在我在Wheezy版本上尝试了Qt 5.4.1,我得到了不同的错误:

    /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//libJavaScriptCore.a: member /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//.obj/dfg/DFGThunks.o in archive is not an object
    collect2: ld returned 1 exit status
    Makefile.jsc:98: recipe for target '../../bin/jsc' failed
    make[3]: *** [../../bin/jsc] Error 1
    make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
    Makefile.JavaScriptCore:126: recipe for target 'sub-jsc-pro-make_first-ordered' failed
    make[2]: *** [sub-jsc-pro-make_first-ordered] Error 2
    make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
    Makefile:93: recipe for target 'sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered' failed
    make[1]: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit'
    Makefile:485: recipe for target 'module-qtwebkit-make_first' failed
    make: *** [module-qtwebkit-make_first] Error 2
    

    有人能告诉我为什么会这样吗?这个Qt代码问题了吗?有办法解决这个问题吗?

0 个答案:

没有答案