The OpenGL ES 2.0 functionality test failed!



  • Having read the posts

    "link 1 here...":http://developer.qt.nokia.com/forums/viewthread/1418

    "link 2 here...":http://developer.qt.nokia.com/forums/viewthread/879

    I tried to solve my problem, but could not succeed.

    The error log, is here, is an usual error log that many get/got.
    "My_error_log...":https://docs.google.com/leaf?id=0B12LY55IemhxMjIxZmNhZDktOGVlZC00M2MyLTlkYjktZTlkMDBhZTEyYTA3&hl=en_US

    My qmake.conf in /usr/local/Trolltech/Qt-4.7.4/mkspecs/qws/linux=mxc-g++ is
    here

    "qmake_config_file":https://docs.google.com/open?id=0B12LY55IemhxYWYyNjJjZDktZTZkZi00Mjk1LWI1ZWUtZDc2Y2U3MjgwYzcx

    I dont know what the problem is.

    Other details
    ls libgl*
    libglib-2.0.so libglib-2.0.so.0 libglib-2.0.so.0.1800.1
    ls libGL*
    libGLESv1_CM.so libGLESv2.so
    ls libgli*
    libglib-2.0.so libglib-2.0.so.0 libglib-2.0.so.0.1800.1

    Using Ubuntu 10.04, Qt-4.7.4 Stable Tarball Release on i.MX51 EVK

    Followed instructions from
    "imxdev_I_followed":http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt



  • Hello.

    I assume you have trouble crosscompiling Qt for the target architecture (imx51) correct?
    (and that you perform this on a x86 host computer running ubuntu 10.04)

    My first suspicion here is that you are not using the crosscompiler when compiling, and/or are pointing to the wrong libraries.

    According to the log;
    @Creating qmake. Please wait...
    g++ -c -o option.o -pipe -m64 -m64 -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/home/post4pavan/qt-target/include -I/home/post4pavan/qt-target/include/QtCore -I/home/post4pavan/qt-target/src/corelib/global -I/home/post4pavan/qt-target/src/corelib/xml -I/home/post4pavan/qt-target/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/post4pavan/qt-target/mkspecs/qws/linux-x86_64-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT option.cpp
    @

    That's g++, and not arm-none-linux-gnueabi-gcc ?

    Also do a 'sudo find / -name libGLES*' (without the quotes) and show us the paths.
    You need to link the arm version of the libraries when compiling, not the x86-ones.

    According to the qmake-file, your (arm) libraries are located in /tftpboot/ltib/usr/lib

    Check a binary/library-file by issuing 'file libInsertName.so'

    Please do not take this the wrong way, i've made these errors numerous times.

    Best regards
    A.



  • Thank You Almagest!

    sudo find / -name libGLES*

    /home/post4pavan/pavan/ltib/rootfs/usr/lib/libGLESv1_CM.so
    /home/post4pavan/pavan/ltib/rootfs/usr/lib/libGLESv2.so

    returned this.

    Modified qmake.conf can be found "here":https://docs.google.com/open?id=0B12LY55IemhxM2VmMGJkNjEtNTE0Ny00MTNiLTk5NjUtZWU0MmUxNjQ3NzU0



  • The link you provided still has;

    @QMAKE_INCDIR = /tftpboot/ltib/rootfs/usr/include
    QMAKE_LIBDIR = /tftpboot/ltib/rootfs/usr/lib@

    Also, please do not link to private sites / documents, since they might/will become unavailable later on.
    Better to include excerpts from the files as code snippets in posts.

    Did it work now?
    Please provide more information regarding status of compilation and error messages.



  • o.k, I have the error log. "Here":https://docs.google.com/open?id=0B12LY55IemhxOTU1MzE5OWQtYzIzMy00OTU1LWE1YTktMjE2ODU2N2E4MWVk

    Yeah! for short lines of code I will use code snippets, but this log is 304 lines or more, for the time being I will use a TRUSTED site like google-docs.



  • First of, its not a matter of trust of not, its just not the right way to post logs.
    The first error it encountered was:

    @arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.4/lib -o floatmath floatmath.o -L/home/post4pavan/ltib/rootfs/usr/lib -lglib-2.0 -lgthread-2.0 -lgstreamer-0.10 -lxml2 -lz -lgmodule-2.0 -lgobject-2.0 -lts -lasound -lgsl -lEGL -lpng
    /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgsl
    collect2: ld returned 1 exit status@

    No need to read the next 600+ errors or so.

    -lgsl must be an opengl library (libgsl.so), check if you have it (and that it is arm-compatible)

    It should be noted that you are trying to use the newest Qt version out there, and not 4.6 that other people did get to work on the i.mx51. That might be worth to test (before jumping to the very last version).

    Not to be rude, but if you post another link to your google docs, dont expect me to read it.

    Regards.
    A.



  • o.k, I do not have any issues to post codes here, from now.

    Coming to the graphic libraries

    @sudo find / -name lgsl@ gave nothing

    lgsl is not present.

    And the files in my ltib dir. are
    @ltib/usr/include$ ls
    alsa ft2build.h GLES2 iso7816-3.h libvolume_id.h pxp_lib.h tslib.h vpu_lib.h zlib.h EGL gio-unix-2.0 glib-2.0 KHR libxml2 ScreenLayer.h VG z160.h
    freetype2 GLES gstreamer-0.10 liboil-0.3 mxc_ipu_hl_lib.h sys vpu_io.h zconf.h@

    This is all I know till now.



  • Try 'sudo find / -name lgsl*' (with the wildcard)

    Also look in directory ltib/usr/lib, or ltib/lib for the libraries, only header (.h) files are supposed to be in include directories.



  • @sudo find /home/post4pavan/pavan/ltib/rootfs/lib/ -name lib*
    /home/post4pavan/pavan/ltib/rootfs/lib/
    /home/post4pavan/pavan/ltib/rootfs/lib/libSegFault.so
    /home/post4pavan/pavan/ltib/rootfs/lib/modules/2.6.31-770-g0e46b52/kernel/drivers/ata/libata.ko
    /home/post4pavan/pavan/ltib/rootfs/lib/modules/2.6.31-770-g0e46b52/kernel/drivers/ata/libahci.ko
    /home/post4pavan/pavan/ltib/rootfs/lib/modules/2.6.31-770-g0e46b52/kernel/lib
    /home/post4pavan/pavan/ltib/rootfs/lib/libpthread.so.0
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_nis-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libutil-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libresolv-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libpthread-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libthread_db.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libBrokenLocale.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libpcprofile.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_files-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libanl.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libc-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libmemusage.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_nisplus-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libc.so.6
    /home/post4pavan/pavan/ltib/rootfs/lib/libBrokenLocale-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libstdc++.so.6.0.8
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_nis.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libcrypt.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/librt.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libanl-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libm-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_nisplus.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libgcc_s.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_compat-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_compat.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_hesiod-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libnsl.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_files.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libvolume_id.so.0
    /home/post4pavan/pavan/ltib/rootfs/lib/libvolume_id.so.0.81.0
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_dns-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libdl-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/librt-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libm.so.6
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_dns.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libthread_db-1.0.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libnsl-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libcrypt-2.5.so
    /home/post4pavan/pavan/ltib/rootfs/lib/libresolv.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libutil.so.1
    /home/post4pavan/pavan/ltib/rootfs/lib/libnss_hesiod.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libdl.so.2
    /home/post4pavan/pavan/ltib/rootfs/lib/libstdc++.so.6
    @

    lgsl is not present even when @sudo find / -name lgsl*@ this was used.



  • According to this post;
    "building-qt-for-imx5x":http://imxcommunity.org/group/imxqt/forum/topics/building-qt-for-imx5x?commentId=4103961:Comment:46172&xg_source=activity&groupId=4103961:Group:12203

    A guy just linked (ln -s) to the library he had to fix a similar issue.

    What you can, and maybe should do, is download an ubuntu image (that was made to run on the i.mx51) from freescale to your harddrive and unpack that. If you look within its library folders, you probably find precompiled libraries that could work. (i have done similar stuff).

    A.



  • Thanks for your reply Almagest.
    I saw the "link here":http://imxcommunity.org/group/imxqt/forum/topics/building-qt-for-imx5x?commentId=4103961:Comment:46172&xg_source=activity&groupId=4103961:Group:12203 you have mentioned in your post.

    But, Almagest, I am not loading Ubuntu on my EVK, I just have to do with the Linux from LTIB only.

    Is there any other solution.
    Can you please suggest me an alternative?



  • In the modified config, that was sent later, I have pointed to my installation dir, rather than giving the link.

    Please try to take a look at that.....and suggest me.........>!



  • bq. But, Almagest, I am not loading Ubuntu on my EVK, I just have to do with the Linux from LTIB only.

    Im not saying that you should run ubuntu, im saying that image contain the needed libraries (so you could copy them to wherever you want them to be.

    bq. In the modified config, that was sent later, I have pointed to my installation dir, rather than giving the link.

    Im certain the files you posted to google docs are pretty much identical. At least they both contain /tftpboot/ltib/ references. So if you have your ltib directory somewhere else, you need to edit this file.

    In any case, if you do not have the libgsl.so (or a similar libgsl-fsl.so that you can link to) you would have to get this file somehow. My tip regarding downloading the ubuntu.tar-image still stands, im pretty certain all your library needs can be found there. And no, you do not need to run ubuntu, i ran ltib myself and copied some libraries from an earlier i.mx51 ubuntu-ready image.



  • i have copied arm opengl file from board to ubuntu desktop system.
    i have chnaged the qmake.conf file also export path from command line and also set varaible path from command line.but still it gives opengl functionality test error. include path of opengl lib/libs. please help



  • @citiustech I have the same problem, have you solved that? Could you help me? Thanks in advance!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.