[Mesa-dev] Help required in configuring mesa 3d in non X environment.

Sanjoy Saha - ERS, HCL Tech sanjoy.saha at hcl.com
Thu Jan 26 20:54:14 PST 2012


Michel,
    As per the below instructions i tried to compile mesa as follows. But i get a compilation error in make process. Can you please help me out here ?

./configure --enable-gallium-egl --with-egl-platforms=drm --enable-shared-glapi --with-gallium-drivers=r600 --enable-gles1

        prefix:          /usr/local
        exec_prefix:     ${prefix}
        libdir:          ${exec_prefix}/lib
        includedir:      ${prefix}/include

        OpenGL:          yes (ES1: yes ES2: no)
        OpenVG:          no

        Driver:          dri
        OSMesa:          no
        DRI drivers:     mach64 r128 r200 r300 r600 radeon tdfx swrast
        DRI driver dir:  ${libdir}/dri
        Use XCB:         no
        Shared dricore:  no

        GLU:             yes
        GLw:             yes (Motif: no)
        glut:            yes

        EGL:             yes
        EGL platforms:   drm
        EGL drivers:     builtin:egl_glx egl_gallium
        EGL Gallium STs: $(GL_LIB)

        llvm:            no

        Gallium:         yes
        Gallium dirs:    auxiliary drivers state_trackers
        Target dirs:      egl-static gbm dri-r600
        Winsys dirs:     sw sw/xlib sw/dri i915/sw r600/drm
        Driver dirs:     softpipe failover galahad trace rbug noop identity i915 i965 r300 svga r600
        Trackers dirs:   gbm egl dri

        Shared libs:     yes
        Static libs:     no

        CFLAGS:          -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fPIC
        CXXFLAGS:        -g -O2 -Wall -fno-strict-aliasing -fPIC
        Macros:          -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DUSE_PPC_ASM -DUSE_VMX_ASM

        PYTHON2:         python

        Run 'make' to build Mesa


root at MPC8641HPCN:~/working/mesa-7.11# make
make[1]: Entering directory `/root/working/mesa-7.11/src'
Making sources for autoconf
make[2]: Entering directory `/root/working/mesa-7.11/src/mapi/shared-glapi'
make[3]: Entering directory `/root/working/mesa-7.11/src/mapi/glapi/gen-es'
make[3]: Nothing to be done for `shared-glapi'.
make[3]: Leaving directory `/root/working/mesa-7.11/src/mapi/glapi/gen-es'
gcc -c -I../../../include -I../../../src/mapi -DMAPI_MODE_GLAPI -DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\" -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing  -fPIC  -DUSE_PPC_ASM -DUSE_VMX_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -fvisibility=hidden ../../../src/mapi/mapi/entry.c -o entry.o
../../../src/mapi/mapi/entry.c: In function 'entry_get_public':
../../../src/mapi/mapi/entry.c:82: error: 'public_entries' undeclared (first use in this function)
../../../src/mapi/mapi/entry.c:82: error: (Each undeclared identifier is reported only once
../../../src/mapi/mapi/entry.c:82: error: for each function it appears in.)
make[2]: *** [entry.o] Error 1
make[2]: Leaving directory `/root/working/mesa-7.11/src/mapi/shared-glapi'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/root/working/mesa-7.11/src'
make: *** [default] Error 1

Thank You
Sanjoy Saha

________________________________________
From: Michel Dänzer [michel at daenzer.net]
Sent: Wednesday, December 28, 2011 4:09 PM
To: Sanjoy Saha - ERS, HCL Tech
Cc: mesa-dev at lists.freedesktop.org
Subject: Re: [Mesa-dev] Help required in configuring mesa 3d in non X environment.

On Sam, 2011-12-24 at 22:52 +0530, Sanjoy Saha - ERS, HCL Tech wrote:
> As per my project requirement (Safety critical DO-178B), i have a box
> HPCN8641D (ppc) fitted with PCI-E radeon gpu e4690. I have already
> back ported kernel DRM module from 2.6.35.3 to 2.6.23 (Pre-installed
> in machine). I wanted to run mesa 3D application in it. While trying
> to compile mesa 3d with config linux-fbdev (kernel 3d acceleration
> enabled), it bails out giving X server libraries/header dependency.
>
> Is it possible to compile mesa without X server libraries/header ?

I'm not sure offhand about compiling without any X headers / libraries
installed, but it's definitely possible to run hardware accelerated
OpenGL (or ES1/2) without X via EGL. The following options for the Mesa
7.11 configure script should help achieve this: --enable-gallium-egl
--with-egl-platforms=drm --enable-shared-glapi
--with-gallium-drivers=r600 (--enable-gles1/2)

Try running any *_screen EGL demo, e.g.

EGL_LOG_LEVEL=debug eglgears_screen

If there's a problem, the EGL_LOG_LEVEL=debug environment variable
should give some useful debugging output.


--
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------


More information about the mesa-dev mailing list