From: Alexandre P. N. <al...@om...> - 2006-02-02 12:29:15
|
Tony Huang escreveu: > Hi, > > I have a problem that I hope someone could provide me advice with. > I have a standard x86 gcc toolchain and I want to compile mysql > libraries so they can be used to compile a program for the gumstix. I > have tried working around this in two different ways. > > First, I did a normal ./configure --target=arm-linux. This compiles > mysql fine but when I tried compiling my program using the toolchain, > it said the library was incompatible. Even though I pointer the linker > to where my library was. > > I tried compiling mysql source using the toolchain for gumstix and it > gave me a `checking "return type of sprintf"... configure: error: > cannot run test program while cross compiling` error. > > Can anyone point out what I am doing wrong ? > > Thanks > > I suppose you aren't doing anything wrong, but the configure script for mysql doesn't have safe fallbacks for cross-compilation (cross compilation is the process of using the toolchain on an arch to build the thing to other arch). There is a gumstix cluster online (there will be at least three, I'll build one of them but I'm late) but I don't think it's ready yet, otherwise you could compile it natively. Sorry if my answer is not exactly help, I can try to look at it when I have a few moments... Alexandre |