Hi,
i can crosscompile (and later run) succesfull with:

make -C src/glsl CC=$HOST_CC CFLAGS=""
   mv src/glsl/apps/compile ./host_compile

make clean
make GLSL_CL="\$(TOP)/host_compile"
make -C progs/xdemos

so i think its possible to find a solution for building without scons vi 
Makefile's.
i can try this, if i have time.

my config is:

HOST_CC=$HOST_CC \
OPT_FLAGS="$CFLAGS -D_GNU_SOURCE" \
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 \
             --with-driver=dri \
             --with-dri-drivers=$MESA_DRIVERS \
             --with-dri-driverdir="$XORG_PATH_DRI" \
             --with-xorg-driver-dir="$XORG_PATH_DRIVERS" \
             --with-x \
             --without-demos \
             --disable-gallium \


greetings

Stephan


Am 12.01.2010 20:03, schrieb michal:
> José Fonseca wrote on 2010-01-12 19:51:
>> On Mon, 2010-01-11 at 15:28 -0800, Stephan Raue wrote:
>>> Hi all,
>>>
>>> Am 10.12.2009 17:36, schrieb José Fonseca:
>>>> On Thu, 2009-12-10 at 08:31 -0800, Jose Fonseca wrote:
>>>>> Module: Mesa
>>>>> Branch: glsl-pp-rework-2
>>>>> Commit: 491f384c3958067e6c4c994041f5d8d413b806bc
>>>>> URL:    
>>>>> http://cgit.freedesktop.org/mesa/mesa/commit/?id=491f384c3958067e6c4c994041f5d8d413b806bc
>>>>>  
>>>>>
>>>>>
>>>>> Author: José Fonseca<jfons...@vmware.com>
>>>>> Date:   Thu Dec 10 16:29:04 2009 +0000
>>>>>
>>>>> scons: Get GLSL code building correctly when cross compiling.
>>>>>
>>>>> This is quite messy. GLSL code has to be built twice: one for the
>>>>> host OS, another for the target OS.
>>> is there also an solution for building without scons?
>>>
>>> i am get the follow when i am crosscompile for x86_64 target with 
>>> i386 host:
>>>
>>> gmake[3]: Entering directory 
>>> `/home/stephan/projects/openelec/build.OpenELEC-intel_x64.x86_64.devel/Mesa-master-20100108/src/mesa/shader/slang/library'
>>>  
>>>
>>> ../../../../../src/glsl/apps/compile fragment 
>>> slang_common_builtin.gc slang_common_builtin_gc.h
>>> ../../../../../src/glsl/apps/compile: 
>>> ../../../../../src/glsl/apps/compile: cannot execute binary file
>>> gmake[3]: *** [slang_common_builtin_gc.h] Error 126
>>> gmake[3]: Leaving directory 
>>> `/home/stephan/projects/openelec/build.OpenELEC-intel_x64.x86_64.devel/Mesa-master-20100108/src/mesa/shader/slang/library'
>>>  
>>>
>>> gmake[2]: *** [glsl_builtin] Error 1
>>> gmake[2]: Leaving directory 
>>> `/home/stephan/projects/openelec/build.OpenELEC-intel_x64.x86_64.devel/Mesa-master-20100108/src/mesa'
>>>  
>>>
>>> make[1]: *** [subdirs] Error 1
>>> make[1]: Leaving directory 
>>> `/home/stephan/projects/openelec/build.OpenELEC-intel_x64.x86_64.devel/Mesa-master-20100108/src'
>>>  
>>>
>>> make: *** [default] Error 1
>>
>> Nope, and I don't think it will be easy, since Mesa's makefile system
>> doesn't support building stuff on a separate dir.
>>
> Yes, and that's a good reason to go back to how it was before -- 
> regenerating the files and checking them in by a developer that made a 
> change to input files.
>
> I will do the necessary changes.
>


-- 
               ### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
              http://www.openelec.tv


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to