[Mesa-users] [mesa-users] Configuring mesa-11.2.2 llvmpipe with non-standard paths
Chuck Atkins
chuck.atkins at kitware.com
Wed Jun 29 15:50:13 UTC 2016
What's the output of your configure look like? Using almost the same
configuration on CentOS 6.7 with GCC 5.2 from the SCL, except all system
dev-packages instead my own versions (sans llvm of course) I get the
following output:
[chuck at wopr mesa-11.2.2]$ ./configure
--with-llvm-prefix=${HOME}/Code/LLVM/llvm-3.8.0.inst --with-gnu-ld
--enable-gallium-llvm=yes --enable-sysfs --enable-xlib-glx --enable-glx
--enable-texture-float --disable-dri --disable-dri3 --disable-egl
--disable-llvm-shared-libs --with-gallium-drivers=swrast
...
config.status: executing libtool commands
prefix: /usr/local
exec_prefix: ${prefix}
libdir: ${exec_prefix}/lib
includedir: ${prefix}/include
OpenGL: yes (ES1: yes ES2: yes)
OSMesa: no
GLX: Xlib-based
EGL: no
llvm: yes
llvm-config:
/home/chuck/Code/LLVM/llvm-3.8.0.inst/bin/llvm-config
llvm-version: 3.8.0
Gallium drivers: swrast
Gallium st: mesa
Shader cache: yes
With SHA1 from: libcrypto
Shared libs: yes
Static libs: no
Shared-glapi: yes
CFLAGS: -g -O2 -Wall -std=c99
-Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp
CXXFLAGS: -g -O2 -Wall -fno-strict-aliasing
-fno-builtin-memcmp
Macros: -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM
-DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_SHA1 -DHAVE_SYSFS -DUSE_XSHM
-DMESA_EGL_NO_X11_HEADERS -DHAVE_LLVM=0x0308 -DMESA_LLVM_VERSION_PATCH=0
LLVM_CFLAGS: -I/home/chuck/Code/LLVM/llvm-3.8.0.inst/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
LLVM_CXXFLAGS: -I/home/chuck/Code/LLVM/llvm-3.8.0.inst/include
-W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers
-Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor
-Wno-comment -std=c++11 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
LLVM_CPPFLAGS: -I/home/chuck/Code/LLVM/llvm-3.8.0.inst/include
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
LLVM_LDFLAGS: -L/home/chuck/Code/LLVM/llvm-3.8.0.inst/lib
PYTHON2: python2
Run 'make' to build Mesa
[chuck at wopr mesa-11.2.2]$
Your resulting configure output should be similar.
- Chuck
On Wed, Jun 29, 2016 at 8:01 AM, Edson Contreras Cárdenas <edrecon at gmail.com
> wrote:
> Hello everyone,
>
> Sorry for bothering you all, but I cannot get the gallium llvmpipe driver
> working, and I need some help.
>
> My environment is:
> RHEL6.6
> gcc-5.2 (system)
> libudev < 151 (system, I cannot upgrade kernel)
>
> llvm-3.8 (from source)
> libva-1.7.1 (from source)
> libxshmfence-latest (from source)
> libxcb-latest (from source)
> libdrm-latest (from source)
>
> I have all my libs installed in a non-standard path:
>
> MYLIBS_PREFIX=/remote/sharedLibs
>
> And my configure script looks like:
>
> ../mesa-11.2.2/configure \
>
> PKG_CONFIG_PATH=${MYLIBS_PREFIX}/libxcb/lib/pkgconfig:${MYLIBS_PREFIX}/libdrm/lib/pkgconfig:${MYLIBS_PREFIX}/libxshmfence/lib/pkgconfig:${MYLIBS_PREFIX}/libva/lib/pkgconfig
> \
> —prefix=${MYLIBS_PREFIX}/mesa-11.2-llvmpipe \
> —with-llvm-prefix=${MYLIBS_PREFIX}/llvm-3.8 \
> —with-gnu-ld \
> —enable-gallium-llvm=yes \
> —enable-sysfs \
> —enable-xlib-glx \
> —enable-glx \
> —enable-texture-float \
> —disable-dri \
> —disable-dri3 \
> —disable-egl \
> —disable-llvm-shared-libs \
> —with-gallium-drivers=swrast
>
> The thing is that I have a valid libGL.so after building, but doesn't have
> support for OpenGL 3.2. In addition to that, if I run "glxinfo | grep
> OpenGL" it does not mention Gallium llvmpipe driver anywhere (however it
> does mention mesa 11.2) and glxgears runs smoothly.
>
> Finally, if I try 'scons', it fails due to lack of udev >= 151.
>
> Could you please help me to provide to scons the flag --enable-sysfs, or,
> help me to configure 'configure flags' in order to have llvmpipe driver
> running?
> Thank you very much in advance.
>
> Regards,
> Edson
>
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20160629/0df1762b/attachment.html>
More information about the mesa-users
mailing list