Re: gcc cross-compiler for linux

2008-11-27 Thread Tijl Coosemans
On Wednesday 26 November 2008 18:48:39 Xavier Otazu wrote: > On Tue, 25 Nov 2008 23:31:10 +0100 Tijl Coosemans <[EMAIL PROTECTED]> wrote: >> From that error message I'd say you probably need to populate >> /usr/local/i386-linux/include with glibc and linux kernel headers. > > How can I populate it

Re: gcc cross-compiler for linux

2008-11-27 Thread Lowell Gilbert
Xavier Otazu <[EMAIL PROTECTED]> writes: > Thanks a lot for this link. Now I see that I need to use the > cross-gcc compiler. I've never done it; I just looked it up. I'm sure there's more information in the archives of the mailing lists, and you can always try to consult the port maintainer.

Re: gcc cross-compiler for linux

2008-11-26 Thread Xavier Otazu
On Tue, 25 Nov 2008 23:31:10 +0100 Tijl Coosemans <[EMAIL PROTECTED]> wrote: > From that error message I'd say you probably need to populate > /usr/local/i386-linux/include with glibc and linux kernel headers. How can I populate it with them? Manually installing them in this directory? May be th

Re: gcc cross-compiler for linux

2008-11-25 Thread Tijl Coosemans
On Monday 24 November 2008 18:19:23 Xavier Otazu wrote: > When building, I get the following error message: > > /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/xgcc > -B/usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/ > -B/usr/local/i386-linux/

Re: gcc cross-compiler for linux

2008-11-25 Thread Xavier Otazu
Lowell, Thanks a lot for this link. Now I see that I need to use the cross-gcc compiler. I am using Matlab inside the linux emulator, and I nedd to create some "mex" files from matlab. In order to create these mes files, matlab needs access to a gcc compiler that produces linux elf files. I thin

Re: gcc cross-compiler for linux

2008-11-25 Thread Lowell Gilbert
Xavier Otazu <[EMAIL PROTECTED]> writes: > I would like to compile a C++ code to be executed within the linux > emulator. http://wiki.freebsd.org/linux-xdev -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/

gcc cross-compiler for linux

2008-11-24 Thread Xavier Otazu
Hello, I would like to compile a C++ code to be executed within the linux emulator. I tried to install the cross-gcc port, but when building I always receive the same compilation error related to gthreads. I use the following options when compiling the cross-gcc port: make TGTARCH=i386 TGTABI