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.

QT/X11(xsgx) building - Graphics_SDK_4_04_00_01

We tried to build QT/X11 using prebuilt XSGX libraries that comes with Graphics_SDK_4_04_00_01.
But while configuring QT-4.6.3 with "-xrandr" "-xrender" "-xcursor" options, configure script throws error as
libXcursor.so, libXrandr.so, libXrender.so libraries  are not present.

Are these libraries part of freedesktop's kdrive ? If so, where from we can get proper version of X11/XSGX source and how we can build it
for our EVM3530/3730 board ? Also we want to configure QT/X11(XSGX) and build QT.  So we require the configure options and qmake.conf. 
Your help in this regard would be appreciated.

Our Board and sdk versions are -

  1)  Board - TI EVM3530/3730 Rev D (hynix) processor module on Mistral EVM main board (Rev G).
  2)  sdk - AM37xSDK_05_02_00_00 (psp kernel - 2.6.37)
  3)  Graphics_SDK_4_04_00_01
  4)  toolchain - codesourcery arm-2011.03-41
 
graphics sdk build option used
========================
make BUILD=release OMAPES=5.x FBDEV=yes SUPPORT_XORG=1


#./gfx_check.sh

WSEGL settings
[default]
#WindowSystem=libpvrPVR2D_DRIWSEGL.so
#WindowSystem=libpvrPVR2D_FLIPWSEGL.so
WindowSystem=libpvrPVR2D_X11WSEGL.so

------
ARM CPU information
Processor       : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 998.84
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc08
CPU revision    : 2

Hardware        : OMAP3 EVM
Revision        : 0020
Serial          : 0000000000000000
------
SGX driver information
Version 1.6.16.4117 (release) /opt/AM37xSDK_05_02_00_00/Graphics_SDK_4_04_00_01/GFX_Linux_KM
System Version String: SGX revision = 1.2.5
------
Framebuffer settings

mode "800x600-60"
    # D: 35.500 MHz, H: 36.979 kHz, V: 59.837 Hz
    geometry 800 600 800 600 32
    timings 28169 80 48 3 11 32 4
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : omapfb
    Address     : 0x8f600000
    Size        : 4194304
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 3200
    Accelerator : No
------
Rotation settings
0
------
Kernel Module information
Module                  Size  Used by    Tainted: G 
pvrsrvkm              169117  2
drm                   170350  3 pvrsrvkm
------
Boot settings
mem=256M console=ttyO0,115200n8 noinitrd ip=dhcp rw root=/dev/nfs, nfsroot=10.135.0.19:/home/avijit/elfs/target/mistral_am35x-37x/workdir/dev_rootfs, nolock mpurate=1000 vram=10
------
Linux Kernel version
Linux SmartTV 2.6.37 #26 Tue Aug 2 19:11:20 IST 2011 armv7l GNU/Linux

  • Standalone build of X11 is not recommended - should use OpenEmbedded/ Angstrom build mechanism, that include Qt/X11.

     

  • Could you please elaborate more on this ?

    Would be very helpful if you can  point to some documents  detailing configure and build steps. 

    Thanks Prabindh Sundareson.

  • The Xorg prebuilt libraries are only provided for reference. Given the same toolchain - you should only pick up the Xorg.conf details, and powervr.ini settings, and then use the graphics library setup in your own filesystem generated out of buildroot or OE.

    Please refer to the latest installation guide at,

     

    http://processors.wiki.ti.com/index.php/OMAP35x_Graphics_SDK_Getting_Started_Guide

     

     

     

  • Hi Ayjit,

    I just found your post. I realise I'm posting a while after your original post but did you succeed in solving your problem of building and running X? I am using Buildroot and have exactly the same problems as you as in this thread:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/171553.aspx

    It's a different processor but the fundamentals are the same. Would be great to hear if you succeeded. I'll post an update if I succeed.

    Ralph

  • Hi Ralph,

    I feel excited sharing my experiences here. Yes! I finally managed to build our filesystem with buildrootfs, Qt-4.6.3/Xsgx/GSDK-4.04.00.01.

    But I strongly agree what Prabindh(TI employee) recommended and therefore, it should be followed.

    I initially built Qt-4.6.3/X11 without xrandr, xrender and xcursor options as libXcursor.so, libXrandr.so and libXrender.so prebuilt libraries were not available. But we could not afford losing some X11 features in our application and therefore, QT/X11 was needed to be built with these libraries too.

    We found that omap35x_graphics_sdk_3.01.00.06 release has these prebuilt libraries. So, we took these libraries from omap35x_graphics_sdk_3.01.00.06 and finaly built Qt-4.6.3/X11(x11r6_sgx) with openGLES2 support. Our application mostly worked fine but found some performance issues in 2D QT-openGLES2 texturing for video frame rendering.   

    But this standalone build approach is not recommemded as you may encounter library version mismatch between releases, libc error from your own filesystem/toolchain and many many others needless to mention!!!!!!!

    Avijit

  • Hi Avijit,

    That's good to hear but it sounds like you were using the pre-built X that came with the graphics SDK rather than building it yourself - is that correct? I have had the pre-built X ("XSGX") that came with the graphics SDK working fine with my own Linux system, I am just trying to integrate acceleration into my own home-made X. You are certainly right about the module vesion mismatch - I have copied over a file called pvr_drv.so from the graphics SDK and it was built for X server version 1.9.0 whereas I have X 1.7.5 in my build system. :'-(

    Thanks,

    Ralph

  • Thanks Ralph and Prabindh.

    Yes Ralph, you are correct. I only used prebuilt Xsgx binaries and built QT using those. 

    Seems you are deep into Xorg source code. Good luck!!

    Avijit