Hello,
first of all thank for your attention. I've got a small doubt on how
to use the gnueabi toolchain
for XCompiling the SDL library.
I dunno if this is a bit out of topic related to this group, but being
the toolchain used on Beagle
I hope yes.
first of all I've downloaded and installed the arm-none-linux-gnueabi,
for instance under /home/embest/arm.
After this, I've set the right PATH using the export, in order to have
the arm-none-linux-gnueabi-XXX tools works throughout the system.
Now I've tried to cross compile the libpng library using this
toolchain, which depends on zlib, so first I've tried to XCompile this
last one.
Within the zlib folder, I've configured this one using --prefix=/home/
embest/arm ( having set the CC and AR vars too, of course ). After
make & make install the library has successfully installed within the /
home/embest/arm/lib folder, having the zlib.a archive.
Now I've tried to configure the libpng, with the following line:
./configure --host=arm-none-linux-gnueabi --build=i686-pc-linux-gnu --
prefix=/home/embest/arm LDFLAGS=-L/home/embest/arm/lib CFLAGS=-I/home/
embest/arm/include
after make and make install the library has been successfully built
and installed near the previous zlib.
My point is this, so far:
I know my toolchain is not in the default place, i.e. /usr/local, but
I'm worried about to call the configure withtoo many parameters.
Without the LDFLAGS and CFLAGS the configure complains of course,
'cause it doesn't find the zlib in the right place. At the same time,
without the include dir indication the arm-none-linux-gnueabi-gcc
complains.
Is there another way to do this operation? I mean, is there a way to
give the configure a UNIQUE dir, i.e. the prefix one in my case,
without the boring stuff to specify every time the lib and include
dirs?
I need a sort of mechanism to gather the lib and include from within
the toolchain, and installs the new one in the same place ( probably
is what I've seen to be called "toolchain tree" )
Would it be better to install the toolchain under /usr/local/arm, for
instance? I've tried but in this way I had to do the same boring
trick, giving the configure the LDFLAGS=-L/usr/local/arm/lib folder.
Where am I wrong, please?
Many thanks for your help in advance
Ricky