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.

Qt5 on am3517 problem

Other Parts Discussed in Thread: AM3517

Hello!

I trying to compile Qt 5.0.0 for my am3517 kit.

I follow this instructions: http://gpupowered.org/node/16, but change some paths in qmake.conf for my system.

my qt-everywhere-opensource-src-5.0.0/qtbase/mkspec/linux-arm-gnueabi-ti-g++ file is:

MAKEFILE_GENERATOR      = UNIX
CONFIG                  += incremental gdb_dwarf_index
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

ROOTFS_PATH=/home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi
SGX_SDK_ROOT            = /home/grebenev/Graphics_SDK_4_06_00_02
# Change the required paths here
QMAKE_INCDIR          = $${ROOTFS_PATH}/usr/include $${ROOTFS_PATH}/usr/include/glib-2.0 $${ROOTFS_PATH}/usr/lib/glib-2.0/include/ $${ROOTFS_PATH}/usr/include/libxml2/ $${ROOTFS_PATH}/usr/include/freetype2 $${ROOTFS_PATH}/usr/include/dbus-1.0 $${ROOTFS_PATH}/usr/include/dbus-1.0/dbus

QMAKE_LIBDIR          += $${ROOTFS_PATH}/usr/lib

QMAKE_INCDIR_OPENGL_ES2 = $${SGX_SDK_ROOT}/include/OGLES2
QMAKE_LIBDIR_OPENGL_ES2 = $${SGX_SDK_ROOT}/gfx_rel_es5.x
QMAKE_INCDIR_EGL      = $${QMAKE_INCDIR_OPENGL_ES2}
QMAKE_LIBDIR_EGL      = $${QMAKE_LIBDIR_OPENGL_ES2}
QMAKE_LIBDIR          += $${QMAKE_LIBDIR_OPENGL_ES2}
# libs
QMAKE_LIBS            = -lxml2 -lz -lts -lasound -lfreetype -lexpat \
-lfontconfig -lpng -lpthread -Wl,-rpath-link=$${ROOTFS_PATH}/usr/lib/arm-linux-gnueabi -Wl,-rpath-link=$${ROOTFS_PATH}/usr/lib

QMAKE_LIBS_OPENGL_ES2= -lEGL -lIMGegl -lsrv_um -lGLESv2 -lGLES_CM -lusc
QMAKE_LIBS_EGL= $${QMAKE_LIBS_OPENGL_ES2}
QMAKE_LIBS_THREAD     = -lpthread

QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp

QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE

QMAKE_CC                = arm-arago-linux-gnueabi-gcc
QMAKE_CXX               = arm-arago-linux-gnueabi-g++
QMAKE_LINK              = $${QMAKE_CXX}
QMAKE_LINK_SHLIB        = $${QMAKE_CXX}

QMAKE_AR                = arm-arago-linux-gnueabi-ar cqs
QMAKE_OBJCOPY           = arm-arago-linux-gnueabi-objcopy
QMAKE_STRIP             = arm-arago-linux-gnueabi-strip

# dbus-1.0
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/dbus-1.0
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib/dbus-1.0/include
# glib-2.0
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib/glib-2.0/include
# gstreamer-0.10
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/gstreamer-0.10
# libxml2
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/libxml2
# freetype2
QMAKE_INCDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/freetype2
QMAKE_LIBDIR            += /home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib
#QMAKE_LFLAGS            += "-Wl,-rpath-link=/home/grebenev/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib -dbus-1 -lglib-2.0 -lgthread-2.0 -lpulse -lpulse-mainloop-glib"

load(qt_config)

I use this configure params (in qt-everywhere-opensource-src-5.0.0/qtbase):

./configure  -release -make libs -xplatform linux-arm-gnueabi-ti-g++ -opengl es2 -confirm-license -opensource -no-xcb -make examples -verbose -no-pch

output:

Building on:   linux-g++-64
Building for:  linux-arm-gnueabi-ti-g++
Architecture:  arm, features:
Host architecture: x86_64, features: mmx sse sse2
Platform notes:

            - Also available for Linux: linux-kcc linux-icc linux-cxx
        
qmake vars .......... styles += mac fusion windows QMAKE_CFLAGS_FONTCONFIG =  QMAKE_LIBS_FONTCONFIG = -lfreetype -lfontconfig DEFINES += QT_NO_XCB PRECOMPILED_DIR = .pch/release-shared OBJECTS_DIR = .obj/release-shared MOC_DIR = .moc/release-shared RCC_DIR = .rcc/release-shared UI_DIR = .uic/release-shared sql-drivers =  sql-plugins =  sqlite qmake switches .........
Build ..................  libs examples
Configuration ..........  cross_compile qpa largefile neon pcre  minimal-config small-config medium-config large-config full-config no-pkg-config fontconfig libudev evdev xlib xrender linuxfb c++11 accessibility egl eglfs openvg opengl opengles2 shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-png png system-freetype system-zlib nis cups iconv openssl rpath alsa concurrent audio-backend v8 release
Debug .................. no
C++11 support .......... yes
pkg-config ............. no
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtWidgets module ....... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
PCH support ............ no
iWMMXt support ......... no
NEON support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... yes
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
JPEG support ........... plugin (system)
PNG support ............ yes (system)
zlib support ........... system
Session management ..... auto
libudev support ........ yes
Use system proxies ..... no
OpenGL support ......... yes (OpenGL ES 2.x)
OpenVG support ......... yes
XShape support ......... auto
XVideo support ......... auto
XSync support .......... auto
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xi support ............. runtime
Xi2 support ............ auto
MIT-SHM support ........ auto
FontConfig support ..... yes
XKB Support ............ auto
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ yes (run-time)
Alsa support ........... yes
libICU support ......... no
PCRE support ........... qt
Xcb support ............ no
Xrender support ........ yes
EGLFS support .......... yes
DirectFB support ....... no
LinuxFB support ........ yes
KMS support ............ no


Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /usr/local/Qt-5.0.0

To reconfigure, run 'make confclean' and 'configure'.

After "make" & "sudo make install", i copy /usr/local/Qt-5.0.0 folder into targetfs.

In target command line:

root@am3517-evm:~# cd /usr/local/Qt-5.0.0/examples/opengl/hellogl_es2/
root@am3517-evm:/usr/local/Qt-5.0.0/examples/opengl/hellogl_es2# ./hellogl_es2
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
Failed to load platform plugin "xcb". Available platforms are:
eglfs
linuxfb
minimal
minimalegl

Aborted
root@am3517-evm:/usr/local/Qt-5.0.0/examples/opengl/hellogl_es2# ./hellogl_es2 -qpa -platform eglfs

QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
Failed to load platform plugin "eglfs". Available platforms are:
eglfs
linuxfb
minimal
minimalegl

Aborted

How avoid this errors?

P.S: Qt 4.8.5 works perfectly:

root@am3517-evm:/usr/local/Trolltech/QtEmbedded-4.8.5-arm/examples/opengl/hellogl_es2# ./hellogl_es2 -qws -display powervr
[ 6845.523345] omap_device: omap_i2c.1: new worst case deactivate latency 0: 114379882
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
Found non-Nokia v1.4 driver, enabling brokenFBOReadBack

  • Is there a reason why you are specifying "-qpa" ? Did you try setting "QT_DEBUG_PLUGINS=1" and checking the output ?

  • Thanks for answer! It's realy help!

    "-qpa" option is my wrong experiment :-)

    I set "export QT_DEBUG_PLUGINS=1" and i see output:

    root@am3517-evm:/usr/local/Qt-5.0.0/examples/opengl/hellogl_es2# ./hellogl_es2 -

    platform eglfs
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("minimalegl")
    loaded library "/usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so"
    QLibraryPrivate::loadPlugin failed on "/usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so" : "Cannot load library /usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so: (libudev.so.0: cannot open shared object file: No such file or directory)"
    Failed to load platform plugin "eglfs". Available platforms are:
    eglfs
    linuxfb
    minimal
    minimalegl

    Aborted

    How i see, i need copy libudev.so.0 file to my target filesystem from TI SDK (in my host machine):

    sudo cp ~/ti-sdk-am3517-evm-05.05.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib/libu* ~/am300/src/rootfs/filesystem/lib


    After this operation i get this output:

    root@am3517-evm:/usr/local/Qt-5.0.0/examples/opengl/hellogl_es2# ./hellogl_es2 -platform eglfs -display powervr r
    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("minimalegl")
    loaded library "/usr/local/Qt-5.0.0/plugins/platforms/libqeglfs.so"
    evdevtouch: Using device /dev/input/event1
    min X: 0 max X: 0
    min Y: 0 max Y: 0
    min pressure: 0 max pressure: 1023
    device name: TPS6507x Touchscreen
    Protocol type A
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/imageformats/libqgif.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/imageformats/libqgif.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ]
        },
        "className": "QGifPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/imageformats/libqico.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/imageformats/libqico.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico"
            ]
        },
        "className": "QICOPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("ico")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/imageformats/libqjpeg.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/imageformats/libqjpeg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg"
            ]
        },
        "className": "QJpegPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("jpg", "jpeg")
    loaded library "/usr/local/Qt-5.0.0/plugins/imageformats/libqgif.so"
    loaded library "/usr/local/Qt-5.0.0/plugins/imageformats/libqico.so"
    loaded library "/usr/local/Qt-5.0.0/plugins/imageformats/libqjpeg.so"
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/generic/libqevdevkeyboardplugin.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/generic/libqevdevkeyboardplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
        "MetaData": {
            "Keys": [
                "EvdevKeyboard"
            ]
        },
        "className": "QEvdevKeyboardPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("EvdevKeyboard")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/generic/libqevdevmouseplugin.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/generic/libqevdevmouseplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
        "MetaData": {
            "Keys": [
                "EvdevMouse"
            ]
        },
        "className": "QEvdevMousePlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("EvdevMouse")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/generic/libqevdevtabletplugin.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/generic/libqevdevtabletplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
        "MetaData": {
            "Keys": [
                "EvdevTablet"
            ]
        },
        "className": "QEvdevTabletPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("EvdevTablet")
    QFactoryLoader::QFactoryLoader() looking at "/usr/local/Qt-5.0.0/plugins/generic/libqevdevtouchplugin.so"
    Found metadata in lib /usr/local/Qt-5.0.0/plugins/generic/libqevdevtouchplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QGenericPluginFactoryInterface",
        "MetaData": {
            "Keys": [
                "EvdevTouch"
            ]
        },
        "className": "QEvdevTouchScreenPlugin",
        "debug": false,
        "version": 327680
    }


    Got keys from plugin meta data ("EvdevTouch")
    Fontconfig error: Cannot load default config file
    This plugin does not support propagateSizeHints()
    This plugin does not support setParent!
    This plugin does not support setParent!
    This plugin does not support setParent!
    This plugin does not support setParent!
    This plugin does not support setParent!
    This plugin does not support setParent!
    This plugin does not support setParent!
    This plugin does not support propagateSizeHints()
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface
    QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x3a1b0

    QOpenGLContext::swapBuffers() called with non-opengl surface

    Application is runing, but i have this troubles:

    1) My display resolution is 800*600, but application runing at bigest resolution. how fix this?

    2) I see squares instead of letters. How to customize fonts?

    3) OpenGL context was not created. How correct load openGL?

    In my system all but folder /usr/local/qt-5.0.0  made ​​according to this article: http://processors.wiki.ti.com/index.php/Building_Qt_with_OpenGL_ES_accelerated_by_SGX for Qt4.8.5.

    my enviroment:

    root@am3517-evm:/usr/local/Qt-5.0.0/examples/opengl/hellogl_es2# env
    TSLIB_TSDEVICE=/dev/input/event1
    MAIL=/var/mail/root
    LD_LIBRARY_PATH=/usr/lib/
    OLDPWD=/etc/init.d
    HOME=/home/root
    TSLIB_FBDEVICE=/dev/fb0
    PS1=\u@\h:\w\$
    TSLIB_CONSOLEDEVICE=none
    LOGNAME=root
    TERM=linux
    QT_DEBUG_PLUGINS=1
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
    TSLIB_CONFFILE=/etc/ts.conf
    SHELL=/bin/sh
    PWD=/usr/local/Qt-5.0.0/examples/opengl/hellogl_es2
    TZ=UTC
    QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
    TSLIB_CALIBFILE=/etc/pointercal
    EDITOR=/bin/vi



    Please help me!

  • hellogl_es2 is not a good example of the power of Qt5. Please try using QML examples, and examples like hellowindow.

  • Thanks for you reply!

    Ok, i found in google, that applications consisting of many widgets could not be run (only one widget may be displayed with eglfs).

    But i do not how fix font trouble (squares instead of letters ). While i start any Qt example, i see in terminal:

    QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
    QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed

    Fontconfig error: Cannot load default config file


  • Hi,

    looks like a fonts problem. Take a look here, may help:

    http://qt-project.org/forums/viewthread/996

    Regards,

    Santiago

  • Hi Evgeny,

    Did you solve your font problem ? I am facing the same issue but I am not getting "cannot load config file" error. Just black border empty squares instead of characters.

    Tried setting QT_QPA_FONTDIR and copying fonts to qt5install/lib/fonts directory.  Does not work. Fontconfig...yes in configure output for qt5 build.

    Also fonts in examples does not work.

    Any pointer would be greatly appreciated.

    Thanks.

    Ram