This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am3352请问如何在linux3.8上移植带有webengine的qt5?

有没有移植qt5 webengine 成功的大神能指导一下,万分感谢!

  • http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_Release_Notes?keyMatch=qt5%20webengine&tisearch=Search-EN-Everything

    SDK Components & Versions

    ComponentVersion
    Linux Kernel 4.4.41+ (2016 LTS)
    U-Boot 2016.05
    Yocto Project 2.1 (Krogoth)
    Linaro Toolchain (gcc) 5.3 2016.02 hard-float
    Qt 5.6.2
    OpenCL 1.1.12
    OpenCV 3.1
    Wayland 1.9
  • 您好,我是想自己编译出来到我们用的3.8的内核中,有没有相关的文档呢?还是说只能用在4.4内核才可以?

  • 请问你现在解决了吗?怎么解决的,我现在在源码中选中了webengine模块,交叉编译后并没有生成对应的库,所以执行qmake的时候还是会提示Project ERROR: Unknown module(s) in QT: webenginewidgets,不知道怎么解决。

  • 看看这个http://doc.qt.io/qt-5/qtwebengine-platform-notes.html

  • 您好:我看过这个帖子,把交叉平台-xplatform配置成linux-g++的话,这样是x86架构的吧,工具链使用的是arm-linux-gnueabihf-,这样编译就出错了:

    Creating qmake...
    arm-linux-gnueabihf-g++ -lts -o "../bin/qmake" project.o option.o property.o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeevaluator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_compat.o qstringbuilder.o qtextstream.o qiodevice.o qringbuffer.o qdebug.o qmalloc.o qglobal.o qarraydata.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o qjsonobject.o qjsonvalue.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o  -Wl,--gc-sections
    /usr/local/sbin/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lts
    project.o: file not recognized: File format not recognized
    collect2: error: ld returned 1 exit status
    Makefile:149: recipe for target '../bin/qmake' failed
    make: *** [../bin/qmake] Error 1

    我的配置信息如下:

     1 #!/bin/sh
      2 ./configure \
      3 -v \
      4 -opensource \
      5 -prefix /home/linux/qt5.7.1 \
      6 -xplatform linux-g++ \
      7 -release \
      8 -shared \
      9 -qt-zlib \
     10 -qt-libjpeg \
     11 -qt-libpng \
     12 -qt-freetype \
     13 -qt-sql-sqlite \
     14 -qreal float \
     15 -no-iconv \
     16 -skip qtandroidextras \
     17 -skip qtpurchasing \
     18 -skip qtvirtualkeyboard \
     19 -tslib \
     20 -I/usr/local/tslib/include \                                                                           
     21 -L/usr/local/tslib/lib
     22
     23 exit

    我的qmake.conf文件如下:

    MAKEFILE_GENERATOR      = UNIX
      6 CONFIG                 += incremental
      7 QMAKE_INCREMENTAL_STYLE = sublib
      8
      9 include(../common/linux.conf)
     10 include(../common/gcc-base-unix.conf)
     11 include(../common/g++-unix.conf)
     12
     13 QT_QPA_DEFAULT_PLAFORM =linuxfb
     14 QMAKE_CFLAGS_RELEASE   += -O2 -march=armv7-a
     15 QMAKE_CXXFLAGS_RELEASE += -O2 -march=armv7-a
     16
     17
     18 # modifications to g++.conf
     19 QMAKE_CC                = arm-linux-gnueabihf-gcc -lts
     20 QMAKE_CXX               = arm-linux-gnueabihf-g++ -lts
     21 QMAKE_LINK              = arm-linux-gnueabihf-g++ -lts
     22 QMAKE_LINK_SHLIB        = arm-linux-gnueabihf-g++ -lts                                                 
     23
     24 # modifications to linux.conf
     25 QMAKE_AR                = arm-linux-gnueabihf-ar cqs
     26 QMAKE_OBJCOPY           = arm-linux-gnueabihf-objcopy
     27 QMAKE_NM                = arm-linux-gnueabihf-nm -P
     28 QMAKE_STRIP             = arm-linux-gnueabihf-strip
     29 load(qt_config)

    我在ubuntu上可以使用webengine模块,只是想移植到开发板上,使用交叉工具链编译的qmake编译的时候提示找不到模块,就是libwebengine库没有生成,进入到qtwebengine模块内部,没有lib文件夹和mkspces文件夹,但是主目录下的Makefile已经生成,qtwebengine已经被选中编译了。

    如果是要改成linux-g++的话,是不是qmake.conf中的工具链要直接指定成gcc g++,那这样的话在arm板上就用不了了。

  • 如果要在ARM 上跑自然要换成对应的工具链,感觉是对应的库去没找到,按他的提示将对应的库先编译进去试试

  • 呵呵,qtwebengine模块在arm下好像不支持,但是我看到的TI文件系统中有这个库libQt5WebEngine.so.5.7.1,不知道如何编出来的,万能的技术支持们,帮我解答一下吧。