here a quick and dirty sample how to successfull crosscompile:
HOST_CC="$HOST_CC" \
HOST_OPT_FLAGS="$HOST_CFLAGS" \
X11_INCLUDES= \
DRI_DRIVER_INSTALL_DIR="$XORG_PATH_DRI" \
DRI_DRIVER_SEARCH_DIR="$XORG_PATH_DRI" \
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-shared \
--disable-debug \
--disable-selinux \
--enable-xcb \
--disable-glx-tls \
--enable-driglx-direct \
--disable-egl \
--enable-glu \
--disable-gl-osmesa \
--disable-glut \
--disable-glw \
--disable-motif \
$MESA_CONFIG \
--with-gallium-drivers="$GALLIUM_DRIVERS nouveau" \
--with-driver="dri" \
--with-dri-drivers="$MESA_DRIVERS" \
--with-xorg-driver-dir="$XORG_PATH_DRIVERS" \
make CC="$HOST_CC" \
CXX="$HOST_CXX" \
CFLAGS="$HOST_CFLAGS" \
CXXFLAGS="$HOST_CXXFLAGS" \
LDFLAGS="$HOST_LDFLAGS" \
-C src/glsl builtin_compiler
cp src/glsl/builtin_compiler $ROOT/$TOOLCHAIN/bin
make -C src/glsl clean
sed -e "s#\.\/builtin_compiler#$ROOT/$TOOLCHAIN/bin/builtin_compiler#g"
-i src/glsl/Makefile
make
Am 26.06.2011 12:02, schrieb Stephan Raue:
i have figured out it should work if src/glsl/builtin_compiler,
src/glsl/glcpp/glcpp and src/glsl/glsl_compiler will be buiƶld with
$HOST_CC, $HOST_CXX, $HOST_CFLAGS, $HOST_CXXFLAGS and $HOST_LDFLAGS.
because some or all three tools are linked with libglsl.a we must
build libglsl.a twice (one for host one for target) and build this
three tools for host.
Stephan
Am 26.06.2011 10:49, schrieb Jose Fonseca:
I got it working with scons FWIW, but given that scons doesn't build
everything yet, that doesn't really help.
Is compiled code code generation really justifiable? Couldn't we just
include the sources to builtin_function.cpp, and compile them in runtime?
Jose
------------------------------------------------------------------------
Hi list,
Mesa-7.11 still fails on generating builtin_function.cpp with
crosscompiling. see also
here:http://lists.freedesktop.org/archives/mesa-dev/2011-May/007527.html
is there a solution or is crosscompiling tested with actual 7.11
sources? i think this should be fixed before releasing Mesa.
thanks
Stephan
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev