[uClinux-dev] HTTPS library in uCLinux

Erwin Authried eauth at softsys.co.at
Tue Nov 6 01:51:22 EST 2007


Hi,
curl's configure works very well for cross compiling, there's no need to
change anything in the makefiles. You have to make sure that PATH, CC,
CFLAGS and LDFLAGS are set up correctly before you run configure. There
are a lot of configure options, but the most important one is:

--host=arm-elf

I have used curl without ssl, eventually you can try to configure and
build without ssl first.

Regards,
Erwin

Am Montag, den 05.11.2007, 19:54 -0800 schrieb Tiberiu Motoc:
> Hi Erwin,
> 
> Thanks for your answer. I did compile openssl and everything went
> well. However, I'm having major problems compiling libcurl.
> 
> First of all, I'm using the arm toolchain (arm-elf-gcc, arm-elf...). I
> found a version of libcurl on the Internet, apparently customized for
> cross compilation at
> http://dslinux.gits.kiev.ua/branches/vendor/uclinux/lib/libcurl/. This
> is version 7.14.0 of libcurl and I think the only change it has from
> the baseline is a makefile in which many of the libcurl options are
> disabled ( e.g. no ipv6, no multi-threaded, etc.). I removed this file
> because I wanted to have control over the options.
> 
> I configured libcurl with the following command:
> ./configure --disable-ares --disable-cookies --disable-crypto-auth
> --disable-ipv6 --disable-verbose --without-libidn --without-zlib
> --disable-ldap --disable-thread --disable-shared
> --with-ssl=/home/motoct/dev/uClinux-dist/lib/libssl/compiled/
> --prefix=/home/motoct/dev/uClinux-dist/lib/libcurl/compiled
> --host=arm-elf-gcc 
> 
> The config script spit out the following error:
> checking host system type... Invalid configuration `arm-elf-gcc':
> system `gcc' not recognized
> configure: error: /bin/bash ./config.sub arm-elf-gcc failed 
> 
> I then re-configured libcurl, but I replaced "--host=arm-elf-gcc" with
> "--host=arm". Unfortunately now I had to parse all the Makefiles
> (about 15 of them) and replace the line "CC=gcc" to "CC=arm-elf-gcc".
> I started make, but then it failed with the following error message: 
> arm-elf-gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib
> -I/home/motoct/dev/cmpe295/uClinux-dist/lib/libssl/compiled//include/openssl -I/home/motoct/dev/cmpe295/uClinux-dist/lib/libssl/compiled//include -g -O2 -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.c -o file.o
> arm-elf-gcc: cannot specify -o with -c or -S and multiple compilations
> 
> Is there some document/post/easy way of configuring libcurl for the
> arm tool chain, or do I just have to work through all the errors? 
> 
> Thanks,
> Tiberiu




More information about the uClinux-dev mailing list