<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    here a quick and dirty sample how to successfull crosscompile:<br>
    <br>
    HOST_CC="$HOST_CC" \<br>
    HOST_OPT_FLAGS="$HOST_CFLAGS" \<br>
    X11_INCLUDES= \<br>
    DRI_DRIVER_INSTALL_DIR="$XORG_PATH_DRI" \<br>
    DRI_DRIVER_SEARCH_DIR="$XORG_PATH_DRI" \<br>
    ./configure --host=$TARGET_NAME \<br>
                --build=$HOST_NAME \<br>
                --prefix=/usr \<br>
                --sysconfdir=/etc \<br>
                --localstatedir=/var \<br>
                --disable-static \<br>
                --enable-shared \<br>
                --disable-debug \<br>
                --disable-selinux \<br>
                --enable-xcb \<br>
                --disable-glx-tls \<br>
                --enable-driglx-direct \<br>
                --disable-egl \<br>
                --enable-glu \<br>
                --disable-gl-osmesa \<br>
                --disable-glut \<br>
                --disable-glw \<br>
                --disable-motif \<br>
                 $MESA_CONFIG \<br>
                --with-gallium-drivers="$GALLIUM_DRIVERS nouveau" \<br>
                --with-driver="dri" \<br>
                --with-dri-drivers="$MESA_DRIVERS" \<br>
                --with-xorg-driver-dir="$XORG_PATH_DRIVERS" \<br>
    <br>
    make CC="$HOST_CC" \<br>
         CXX="$HOST_CXX" \<br>
         CFLAGS="$HOST_CFLAGS" \<br>
         CXXFLAGS="$HOST_CXXFLAGS" \<br>
         LDFLAGS="$HOST_LDFLAGS" \<br>
         -C src/glsl builtin_compiler<br>
    <br>
    cp src/glsl/builtin_compiler $ROOT/$TOOLCHAIN/bin<br>
    make -C src/glsl clean<br>
    <br>
    sed -e
    "s#\.\/builtin_compiler#$ROOT/$TOOLCHAIN/bin/builtin_compiler#g" -i
    src/glsl/Makefile<br>
    <br>
    make<br>
    <br>
    <br>
    Am 26.06.2011 12:02, schrieb Stephan Raue:
    <blockquote cite="mid:4E0703AF.8090102@openelec.tv" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      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.<br>
      <br>
      Stephan<br>
      <br>
      Am 26.06.2011 10:49, schrieb Jose Fonseca:
      <blockquote
cite="mid:52158255.12438.1309078182504.JavaMail.root@zimbra-prod-mbox-2.vmware.com"
        type="cite">
        <style type="text/css">p { margin: 0; }</style>
        <div style="font-family: Times New Roman; font-size: 12pt;
          color: rgb(0, 0, 0);">I got it working with scons FWIW, but
          given that scons doesn't build everything yet, that doesn't
          really help.
          <div><br>
          </div>
          <div>Is compiled code code generation really justifiable?
            Couldn't we just include the sources to
            builtin_function.cpp, and compile them in runtime?</div>
          <div>
            <div><br>
            </div>
            <div>Jose<br>
              <br>
              <hr id="zwchr">
              <blockquote style="border-left: 2px solid rgb(16, 16,
                255); margin-left: 5px; padding-left: 5px; color: rgb(0,
                0, 0); font-weight: normal; font-style: normal;
                text-decoration: none; font-family:
                Helvetica,Arial,sans-serif; font-size: 12pt;"> Hi list,<br>
                <br>
                Mesa-7.11 still fails on generating builtin_function.cpp
                with crosscompiling. see also here:<a
                  moz-do-not-send="true"
href="http://lists.freedesktop.org/archives/mesa-dev/2011-May/007527.html"
                  target="_blank">
http://lists.freedesktop.org/archives/mesa-dev/2011-May/007527.html</a><br>
                <br>
                is there a solution or is crosscompiling tested with
                actual 7.11 sources? i think this should be fixed before
                releasing Mesa.<br>
                <br>
                thanks<br>
                <br>
                Stephan<br>
                <br>
                _______________________________________________<br>
                mesa-dev mailing list<br>
                <a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
                <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
              </blockquote>
              <br>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mesa-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>