[Mesa-dev] compiling mesa-8.0.4 with opengles2 only

Ramesh Reddy Emmadi Ramesh_Emmadi at infosys.com
Thu Jan 31 06:03:31 PST 2013


Hi,

Got the error1 while compiling mesa-8.0.4 with the following configuration options and  commented the "_mesa_BindBufferBase" function in  src/mesa/main/bufferobj.c file. After this change able to compile the code successfully, but while make install got one more error(error2). Can you please let us know, is there any thing wrong in the configuration and also any changes required for code to compile with --enable-gles2 only (without opengl and opengles1). if opengles2 only work without opengl and openles2, we want to know whether  mesa-demos opengles2 folder will compile without any issues? or any code changes required to compile the es2 demos? for X11.


./autogen.sh --prefix=/opt/xorg2 --with-gallium-drivers=r600 --enable-gles2 --enable-debug --with-dri-drivers --with-egl-platforms=x11,drm --disable-opengl --enable-gallium-egl --enable-dri --enable-shared-glapi

Error 1:

imklib: Making Linux shared library:  r600_dri.so.tmp
g++ -I/opt/xorg/include -g -O2 -Wall -Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp -g  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -fvisibility=hidden -o r600_dri.so.test ../../../../src/mesa/drivers/dri/common/dri_test.o r600_dri.so.tmp  ../../../../src/mesa/libmesa.a  -L/opt/xorg/lib -ldrm   -lexpat -lm -lpthread -ldl  -L/opt/xorg/lib;
r600_dri.so.tmp: undefined reference to `_mesa_BindBufferBase'
collect2: ld returned 1 exit status
make[3]: *** [r600_dri.so] Error 1
make[3]: Leaving directory `/home/amd/Downloads/mesa-mesa-8.0.4/src/gallium/targets/dri-r600'
make[2]: *** [default] Error 1
make[2]: Leaving directory `/home/amd/Downloads/mesa-mesa-8.0.4/src/gallium/targets'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/amd/Downloads/mesa-mesa-8.0.4/src'
make: *** [default] Error 1
root at amd-desktop:/home/amd/Downloads/mesa-mesa-8.0.4#

Error 2:

/usr/bin/install -c -d /opt/xorg2/include/GL
/usr/bin/install -c -m 644 ../../include/GL/*.h \
                /opt/xorg2/include/GL
/usr/bin/install -c -d /opt/xorg2/lib
/usr/bin/install -c -d /opt/xorg2/lib/pkgconfig
/bin/bash ../../bin/minstall ../../lib/libGL.*so* \
                /opt/xorg2/lib
Unknown type of argument:  ../../lib/libGL.*so*
make[3]: *** [install-libgl] Error 1
make[3]: Leaving directory `/home/amd/Downloads/mesa-mesa-8.0.4/src/mesa'
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/amd/Downloads/mesa-mesa-8.0.4/src/mesa'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/amd/Downloads/mesa-mesa-8.0.4/src'
make: *** [install] Error 1


Thanks in advance.

Thanks and Regards,
Ramesh


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


More information about the mesa-dev mailing list