cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl Embedded Linux

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 Jun 2007 09:36:56 +0200 (CEST)

On Thu, 21 Jun 2007, Chris Brown wrote:

> I then successfully referenced this library in the makefile for my own test
> application based on simple.c. The problem I have is that I am attempting to
> repeat this process on my MIPS embedded MontaVista Linux system which uses
> mips_fp_le-gcc. When I run ./configure I get the following output:

Well, I trust you used some options to configure as well?

> sed: invalid command

The curl build requires 'sed' to exist, so you should get that installed.

> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for sed... /bin/sed
> checking for ar... no

Really 'ar' ? I would think that you'd want a 'mips_fp_le-ar' or similar?

> checking build system type... mkdir: Cannot create directory
> `/tmp/cg678-5572': No such file or directory

This sounds like your build system is crazy or too limited for a normal build.
Check the config.log file for details but it has to be able to create
temporary files (and directories) for configure to work.

> Can anyone offer any suggestions or point me in the right direction? My
> ultimate intention is to use https posts so I will also need to ensure that
> SSL is working. Please excuse my naivity- as I mentioned above I'm new to
> Linux and its a steep learning curve at the moment.

Well, I happen to work with an ARM linux at the moment. I use a gcc setup
named arm-softfloat-linux-gnu-gcc. To cross-compile curl for my system, I just
have to do this:

  $ ./configure --host=arm-softfloat-linux-gnu
  $ make
  $ make DESTDIR=/rootdir/for/my/target install

This should be pretty much the same for whatever linux target you have, but it
assumes that you have a certain level of tools installed on the build host.

Hm, I reread your mail. Are you saying you *build* on the embedded target? I
find that a very odd idea since embedded targets are usually way way waaaaay
slower and have less memory etc than even your average several years old PC. I
suggest you go the cross-compile route.

Of course, building *on* the target is just like how you build on any Linux,
you just need to make sure you have all the tools and the correct build
environment setup and present.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-06-21