PDA

View Full Version : Cross Compilation of QT- 4.4.3 with linux-sh4-g++



Manasa
4th March 2009, 11:48
Hi,
I am trying to cross compile qt-4.4.3 with linux-sh4-g++ compiler.
while configuring qt -4.4.3 with opengl.
./configure -embedded sh -xplatform qws/linux-sh4-g++ -no-libtiff -no-webkit -opengl
I got the following error.
The OpenGL ES functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in /root/src/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-sh4-g++.

i added the following paths
QMAKE_INCDIR_OPENGL = /usr/X11R6/include
QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
QMAKE_LIBS_OPENGL = -lqgl

but still it shows the same error.
Please provide solution regarding this.

numen
5th March 2009, 01:24
you can switch to subdir of config.tests,
find the opengl test directory,then try make,
you will find the specific error.

Manasa
5th March 2009, 05:19
Hi,
Thanks a lot for the reply.
I tried that, it says
opengles.cpp:1:21: error: GLES/gl.h: No such file or directory
opengles.cpp:2:22: error: GLES/egl.h: No such file or directory

Can you please tell me how can i proceed further.

Manasa
5th March 2009, 05:30
I located for that files, but there is no matching files found.:(

Manasa
5th March 2009, 10:09
Hi, i got the header files from net and created folder GLES inside opengles and added gl.h and egl.h.
Then i did make of opengles,
sh4-linux-g++ -Wl,-rpath,/root/SVN/platforms/image/target/usr/local/qt-4.4.3/lib -o opengles opengles.o -L/root/SVN/platforms/image/target/usr/local/qt-4.4.3/lib -L/usr/X11R6/lib -lqgl -lpthread
/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.1/../../../../sh4-linux/bin/ld: cannot find -lqgl

Please let me anyone has any idea abt this.