Building Qt with OpenGL ES using ti Graphic



  • Hi there,
    am trying to configure qt-everywhere-opensource-src-4.8.2 with opengl ES 2 using Graphics_SDK_4_09_00_01 under Ubuntu 12.04
    i followed these steps that mentioned in Building Qt with OpenGL ES
    so its all goes well till i run

    ./configure -prefix <QT_SDK_INSTALL_DIR> -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-TIarmv7-sgx-g++ -depths 16,24,32 
    -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp 
    -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -opengl es2 -qt-gfx-transformed -qt-gfx-vnc -qt-gfx-linuxfb -qt-gfx-multiscreen 
    -qt-mouse-tslib -plugin-gfx-powervr -D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT 
     
    

    it gives me this error:

    The OpenGL ES 2.0 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
     /home/kamal/qt-everywhere-opensource-src-4.8.2/mkspecs/qws/linux-TIarmv7-sgx-g++.
    

    this is Qmake.conf

    #
    # qmake configuration for building with arm-linux-g++
    #
    
    include(../../common/gcc-base.conf)
    include(../../common/gcc-base-unix.conf)
    include(../../common/g++-unix.conf)
    include(../../common/qws.conf)
    
    
    #User specific Path - To Be edited by User
    QT_INSTALL_DIR          = /home/kamal/qt-everywhere-opensource-src-4.8.2
    SGX_SDK_ROOT	        =  /home/kamal/Graphics_SDK_4_09_00_01
    TSLIB_INCDIR            = 
    TSLIB_LIBDIR            = 
    
    
    # modifications to g++.conf
    #QMAKE_CFLAGS_RELEASE	= -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    #QMAKE_CXXFLAGS_RELEASE	= -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    QMAKE_CFLAGS	+= -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    QMAKE_CXXFLAGS	+= -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    
    QMAKE_CC                = arm-linux-gnueabihf-gcc
    QMAKE_CXX               = arm-linux-gnueabihf-g++
    QMAKE_LINK              = arm-linux-gnueabihf-g++
    QMAKE_LINK_SHLIB        = arm-linux-gnueabihf-g++
    
    # modifications to linux.conf
    QMAKE_AR                = arm-linux-gnueabihf-ar cqs
    QMAKE_OBJCOPY           = arm-linux-gnueabihf-objcopy
    QMAKE_STRIP             = arm-linux-gnueabihf-strip
    
    # Prabu modified for Qt4.8
    QMAKE_COPY = cp
    QMAKE_DEL_FILE = rm
    QMAKE_DEL_DIR = rm -r
    QMAKE_MOVE = mv
    QMAKE_CHK_DIR_EXISTS = test -d
    QMAKE_MKDIR = mkdir -p
    
    #Do not edit beyond this
    
    QMAKE_INCDIR_OPENGL_ES2 = /home/kamal/Graphics_SDK_4_09_00_01/include/OGLES
    QMAKE_LIBDIR_OPENGL_ES2 = /home/kamal/Graphics_SDK_4_09_00_01/gfx_dbg_es8.x
    QMAKE_LIBS_OPENGL_ES2   = -lEGL -lGLESv2 -lGLES_CM -lIMGegl -lsrv_um -lusc
    
    QMAKE_INCDIR_OPENGL     += $$QMAKE_INCDIR_OPENGL_ES2
    QMAKE_LIBDIR_OPENGL     = $$QMAKE_LIBDIR_OPENGL_ES2
    QMAKE_LIBDIR_OPENGL_QT  = $$QMAKE_LIBDIR_OPENGL_ES2
    QMAKE_LIBS_OPENGL_ES1   = -lEGL -lGLES_CM -lIMGegl -lsrv_um -lusc
    
    QMAKE_INCDIR_OPENVG     = $$QMAKE_INCDIR_OPENGL_ES2
    QMAKE_LIBDIR_OPENVG     = $$QMAKE_LIBDIR_OPENGL_ES2
    QMAKE_LIBS_OPENVG       = -lEGL -lGLESv2 -lGLES_CM -lIMGegl -lsrv_um -lOpenVG -lOpenVGU
    
    QMAKE_INCDIR_EGL        = $$QMAKE_INCDIR_OPENGL_ES2
    QMAKE_INCDIR_EGL        += $$QT_INSTALL_DIR/src/3rdparty/powervr/wsegl2
    QMAKE_INCDIR_POWERVR    = $$QT_INSTALL_DIR/src/3rdparty/powervr/wsegl2
    QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2
    QMAKE_LIBS_EGL          = -lEGL -lIMGegl -lsrv_um -lGLESv2 -lGLES_CM -lusc
    
    QMAKE_INCDIR += $$TSLIB_INCDIR 
    QMAKE_INCDIR += $$GLIB_INCDIR 
    QMAKE_INCDIR += $$GLIB_CONFIGINCLUDEDIR
    QMAKE_INCDIR += $$GST_INCLUDEDIR
    QMAKE_INCDIR += $$LIBXML_INCLUDEDIR
    
    QMAKE_INCDIR += $$QMAKE_INCDIR_OPENGL_ES2
    QMAKE_LIBDIR += $$QMAKE_LIBDIR_OPENGL_ES2 
    QMAKE_LIBDIR += $$TSLIB_LIBDIR
    #QMAKE_LIBS += $$QMAKE_LIBS_OPENGL_ES2 -lts -lglib -lgthread-2.0 -lgstreamer-0.10
    QMAKE_LIBS += $$QMAKE_LIBS_OPENGL_ES2
    
    load(qt_config)
    

    so what is wrong here i can't figure it out !
    thanks in advance



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