problem executing opengles1.1 prog using libglutes on omap3

Hi,
    I am working on omap3 board and want to run opengles1.1 code
(which is running fine on ubuntu x86) using opengl graphics utility
toolkit , I have ported the glutes to armv7 platform after cross
compiling using OE but when i run bitbake file for sample_glutes.c it
gives error in do_compile() function which reads like-

/lib/libglutes.so: undefined reference to `glDrawTexxOES'

All the other shared libraries are provided by imagination
technologies powervr SGX which is compatible with opengles 1.1 code.

I also compiled main.c using -c option in do_compile method in
bitbake and .o is generated but gives syntax error on execution on
omap3 board some what like "syntax error expected '('.

can anybody tell / guide whether problem is with libGLES_CM.so
(provided by imagination tech.) and how it can be resolved.

- Thanks
Himanshu

Op 26 aug 2009 om 10:32 heeft himanshu <himanshu.sharma.30@gmail.com>
het volgende geschreven:\

Hi,
   I am working on omap3 board and want to run opengles1.1 code
(which is running fine on ubuntu x86) using opengl graphics utility
toolkit , I have ported the glutes to armv7 platform after cross
compiling using OE but when i run bitbake file for sample_glutes.c it
gives error in do_compile() function which reads like-

/lib/libglutes.so: undefined reference to `glDrawTexxOES'

You don't want ARM stuff to link to x86 host binaries.

All the other shared libraries are provided by imagination
technologies powervr SGX which is compatible with opengles 1.1 code.

I also compiled main.c using -c option in do_compile method in
bitbake and .o is generated but gives syntax error on execution on
omap3 board some what like "syntax error expected '('.

that means it's an x86 binary, check your makefile to see if it
honours $CC and doesn't kill external CFLAGS

regards,

Koen

Hi Koen,

This is the extract from Makefile used for generating libglutes.so
which was generated by cross compiler tool chain for Arm v7a cortex-a8
after completion of configuring step using ARM autotools in my
bitbake file:

CC = arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
mfpu=neon -mfloat-abi=softfp
CCDEPMODE = depmode=gcc3
CFLAGS = -isystem/home/satish/evm/oedabba/build/tmp/staging/armv7a-
angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-
registers -fomit-frame-pointer -O2
CPP = arm-angstrom-linux-gnueabi-gcc -E
CPPFLAGS = -isystem/home/satish/evm/oedabba/build/tmp/staging/armv7a-
angstrom-linux-gnueabi/usr/include
CYGPATH_W = echo

pkgdatadir = $(datadir)/glutes
pkglibdir = $(libdir)/glutes
pkgincludedir = $(includedir)/glutes
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = arm-angstrom-linux-gnueabi

about my sample glutes code-

for my sample program which uses above cross compiled shared library
there is only 1 file main.c which i compiled in do_compile() in bb
file and then do_install() gave me a package consisting of ARM
executable "main" but when i run main on my omap3 board it gives
syntax error ("syntax error expected '('.) the cross tool chain has
all the ARM specific files, libs(present on omap3 also), headers
required by my code. I am just using x86 machine for running cross
tool chain for making required package.

-HS

I