QT4.8.6 eglfs Segmentation fault

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

QT4.8.6 eglfs Segmentation fault

跳至解决方案
3,079 次查看
Wizard_Richard
Contributor II

Hi,

I am porting QT to my mx6q custom board, there are some problems with the eglfs.

 

I use the LTIB package L3.0.35_4.1.0_130816_source.tar.gz and QT4.8 with tag v4.8.6(qtproject/qt · GitHub ).

According to Building QT for i.MX6

To build LTIB, the ipu,vpu and gpu firmware and libraries has been selected.

To build qt4.8.6, the step is:

① ./configure \

  -opensource -confirm-license -release -shared -qpa -arch arm -verbose \

  -xplatform qws/linux-imx6-g++ -fast -optimized-qmake -pch -opengl es2 -egl \

  -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype \

  -no-webkit -no-qt3support -exceptions -no-rpath \

  -make examples -make demos -make libs -nomake docs

② make && make install

③ build eglfs and linuxfb libraries.

Then copy all the QT files to LTIB rootfs, then boot through NFS. After that, set some QT environment variables, then run the QT examples.

Firstly, I run some examples with linuxfb, such as "collidingmice -platform linuxfb", it's ok.

But when I run some opengl examples, such as "hellogl_es2 -platform eglfs", I get error message as following:

"Opened display 0x36d844f8

Initialized display 1 4

Segmentation fault"

The same error I use the QT5.4.2, all the opengl examples always can't be executed.

Does any one can help me?

Best Regards,

Richard

标签 (4)
0 项奖励
回复
1 解答
1,858 次查看
Wizard_Richard
Contributor II

I have found the problem, The kernel code and the libraries is not matched.

So, I port my custom board from original package L3.0.35_4.1.0_130816_source.tar.gz, then,

run the opengl demo such as "./hellogl_es2 -platform eglfs", it success, about 100fps.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,859 次查看
Wizard_Richard
Contributor II

I have found the problem, The kernel code and the libraries is not matched.

So, I port my custom board from original package L3.0.35_4.1.0_130816_source.tar.gz, then,

run the opengl demo such as "./hellogl_es2 -platform eglfs", it success, about 100fps.

0 项奖励
回复
1,858 次查看
sanjeevsharma
Contributor IV

Hello,

I have similar issue QT5.4 eglfs(hellogl_es2) Segmentation fault

How did you identified that kernel code and EGL libraries is not matched ?

Regards

Sanjeev Sharma

0 项奖励
回复
1,858 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Richard,

Did you successfully add the EGL support patch image? as the Building QT for i.MX6 mention.

0 项奖励
回复