QT编译错误

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QT编译错误

4,285 Views
1182614726
Contributor III

大家好,

           1.芯片为imx6solo,BSP为yocot L4.1.15-2.1.0版本。

           2.使用bitbake meta-toolchain-qt5编译出sdk交叉编译工具链。

           3.配置交叉编译工具链后,使用qmake生成makefile时报以下错误,但是makefile可以生成

            Cannot read /opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/oe-device- extra.pri: No such file or directory
            4.使用make编译qt时报以下错误:
            Project ERROR: Unknown module(s) in QT: webkitwidgets webkit
            请各位大神帮忙支持!
            另外,我这个bsp编译出来的QT版本是多少呢?谢谢
Labels (1)
0 Kudos
12 Replies

3,790 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear Qiang,

    you should check if your toolchain is in "/opt/fsl-imx-fb/4.1.15-2.1.0/".  if it doesn't exist, you should export toolchain to the path.

    see i.MX_Linux_User's_Guide.pdf, 4.5.12 How to Build U-Boot and Kernel in Standalone Environment, please!

The content will tell you how export toolchain.

Have a nice day!

NXP TIC Weidong Sun

0 Kudos

3,791 Views
1182614726
Contributor III

Hi Wigros,

               1. The BSP I build is:

                DISTRO=fsl-imx-fb MACHINE=<machine name> source fsl-setup-release.sh -b build-fb

                bitbake fsl-image-qt5
               

               2. The toolchain I build is:

               bitbake meta-toolchain-qt5

               after the second step, in /fsl-release-bsp/build/tmp/deploy目录下生成sdk目录,然后运行fsl-imx-fb-xxx....-neon-toolchian-4.1.15-2.1.10.sh脚本,安装在/opt/fsl-imx-fb/4.1.15-2.1.0目录下,这些过程都做了,do you understand?

0 Kudos

3,791 Views
weidong_sun
NXP TechSupport
NXP TechSupport

OK, got it.

     Please try to create this file by touch command !

# touch /opt/fsl-imx-fb/4.1.15-2.1.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/oe-device-extra.pri

    don't need to add any content to it.

用手工的方式把缺少的文件,用touch创建一下。然后,再尝试继续编译。

(抱歉,我们要求论坛回复全部使用英文,只好英文回复你!)

Have a nice day!

NXP TIC Weidong

0 Kudos

3,791 Views
1182614726
Contributor III

其实我想问,我们因为QT要使用网页功能,所以编译的SDK是否需要增加webkitwidgets 的配置?怎么增加?

另外你们提供的L4.1.15-2.1.0 BSP中编译出的QT版本是多少?QT5.5还是QT5.6?

据我了解,QT5.5支持webkitwidgets ;QT5.6支持webengine,不支持webkitwidgets 。

希望能全力支持,非常感谢。

0 Kudos

3,791 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear Qiang,

      QT5's version can be found qt5-git.inc( source/meta-qt5/recipes-qt/qt5), open the file you will find detailed information on it's version.

     Then determine if web browser should be added.

 

    先到上面的路径下看一下具体的版本,然后再决定网页功能怎么加。网上有很多同行的经验可以分享,你可以查一下,QT网站去查,最好了。

Have a nice day!

NXP TIC Weidong

0 Kudos

3,791 Views
1182614726
Contributor III

你好 Wigros,

                    非常感谢你的回答,我查看了qt5-git.inc文件,我们BSP编译的QT版本为5.6.1.

                     另外,我们想要在编译的SDK中增加webengine功能,请问要如何配置呢?

0 Kudos

3,791 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear Qiang,

   After compiling QT5 souce code, you will get QT5 file system and library,  WebEngine should be included in it.

   Then you only need to load functions in WebEingine class.

编译后QT5之后,WebEngine插件应该已经可以使用了,应用里面调用他的成员函数就可以了。所以,你首先需要使用Yocto里编译QT5 image的命令,把QT5文件系统编译好。

这里的文档,很有价值:Qt WebEngine Overview | Qt WebEngine 5.6 

Have a nice day!

NXP TIC Weidong

0 Kudos

3,791 Views
1182614726
Contributor III

你好 Wigros,

                     我通过NXP官方提供的手册,按如下命令编译QT5

                     

                     DISTRO=fsl-imx-fb MACHINE=imx6dlsabresd source fsl-setup-release.sh -b build-fb

                      bitbake fsl-image-qt5

                     请问如何判断是否包含WebEngine插件?

                     比如我现在通过如下命令编译交叉编译工具链等工具:

                     bitbake meta-toolchain-qt5

                     生成sdk,然后用sh命令运行脚本文件,安装到/opt/fsl-imx-fb/4.1.15-2.1.0目录下,然后配置环境变量。

                     然后使用qmake生成Makefile文件,再用make编译自己制作的QT文件,在make过程中报如下错误:

                     Project ERROR: Unknown module(s) in QT: webkitwidgets webkit

                     请问要怎么解决呢?

                     非常感谢

0 Kudos

3,791 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear Qiang,

     I seems that WebEngine is not directly compiled into Q5 rootfs according to the description for above errors. We can try to refer to the link to solve ti.

    看这个提示,似乎真的默认情况,没有加入webengine软件包。我们看看同行的经验,他处理好了:

解决How to build Qt (with QtWebEngine support) using meta-toolchain-qt5? - qt5-qt-qtwebengine - ITkeyo... 

weidong

0 Kudos

3,791 Views
1182614726
Contributor III

Hi Wigros,

               非常感谢你的支持,这个似乎是可以的。

               另外,是否可以通过修改QT中的配置文件,基于我目前的qt版本L4.1.15-2.1.0,编译生成Qt5.5.1的版本呢?

               目前L4.1.15-2.1.0 yocto中配置的QT5版本为5.6,是否可以修改为5.5.1呢?

0 Kudos

3,791 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear Qiang,

     I have never tried compile other version of QT in yocto BSP.  In theory, it should be possible to compile other versions. You can create a new case for the question on community.

   我也没有试过下载除默认配置版本之外的其他版本,理论上,应该是可以的。

你可以为这个问题重新发一个帖子在论坛上。

Have a nice day!

Weidong

0 Kudos

3,791 Views
1182614726
Contributor III

Hi Wigros,

               非常感谢你的回答,谢谢

0 Kudos