On May 16, 2008, at 3:27 AM, BRACHET Maxime wrote:
Hi,

I try to compile GT4 for nokia n810 using scratchbox.
But when I run run ./configure it ask me for a flavor ??
"checking build system type... arm-unknown-linux-gnu
Unable to guess flavor. Please use --with-flavor= to specify one"
Can someone could explain me what I must use or which flavor exists.

Thanks,
Maxime

This is a new target for Globus, so the build is likely going to be pretty tricky.

This email is based on some notes I have for a different cross-compile system I used a few years back, so there might be gaps and errors. Depending on your system, it might be necessary to modify globus_common to implement bits of the c runtime which are missing from your target environment.

If you are feeling extremely brave, continue on:

Determine the cross compiler toolchain name (usually a string that's prepended to the GNU compiler tools like arm-gcc3.3-glibc2.3) and make sure the compiler and binutils are available in your path.

To build an installer with a custom toolchain, use a command line this:

env CC=${TOOLCHAIN}-gcc LD=${TOOLCHAIN}-ld CPP=${TOOLCHAIN}-cpp CXX=$ {TOOLCHAIN}-c++ ./configure --with-flavor=gcc32 --with- buildopts="CONFIGOPTS_GPTMACRO=--build=`./config.guess`\ --target=$ {TOOLCHAIN}\ --host=${TOOLCHAIN}" --prefix=${TOOLCHAIN} env CC=${TOOLCHAIN}-gcc LD=${TOOLCHAIN}-ld CPP=${TOOLCHAIN}-cpp CXX=$ {TOOLCHAIN}-c++ make

I think there might be some cases where the configure scripts will fail because they can't detect things like sizeof(off_t). If that occurs, you'll need to create a config.cache file containing the expected results of those tests. Save that file someplace, (make a copy because it might get modified by the configure scripts) and add -- cache-file=PATH-TO-CACHE to the CONFIGOPTS_GPTMACRO part of the above installer configure line.

Of course, even if you manage to get GT built, it might be difficult get it to fit and work in a limited environment. I'd recommend first building globus_common and the globus_common_test package and trying to get those to run successfully on your device before trying to build larger bits of the toolkit.

Good Luck.

Joe

Reply via email to