curl-users
Re: can i use Lib curl for DaVinci processors of TI?
Date: Fri, 18 Jan 2008 13:47:42 +0530
Hi Dan,
Thanks for your prompt reply.
Yes I have tried with configure --host=arm_v5t_le-linux --without-random
--disable-shared.
Here is the log which I have got while running this command
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking whether to enable maintainer-specific portions of Makefiles... no
checking for sed... /opt/montavista/common/bin/sed
checking for arm_v5t_le-linux-ar... arm_v5t_le-ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm_v5t_le-linux-strip... no
checking for strip... strip
checking curl version... 7.17.1
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `arm_v5t_le-linux':
machine `arm_v5t_le' not recognized
configure: error: /bin/sh ./config.sub arm_v5t_le-linux failed
We have tried these changes before but due to this error we have changes the
script as I mentioned previously.
And yes arm_v5t_le-objdump -x curl has all the functions that I am calling
from my application so no issues with the curl binary.
We are running our actual application on this target board for which I am
further developing a small application with Curl support.
And for this we are using arm_v5t_le-gcc compiler.
Now I am running curl command on TI's target with curl configures using the
script I sent before.
When I use curl -o command to download a file from a FTP server I can
download the specified file.
But when I use curl -T command to upload a file on FTP server I can't. The
same command was working when I tried with the curl configured for Linux and
gcc compiler.
It gives me this error: "curl: (55) select/poll returned error"
Do you have any idea where I am making a mistake or missing something?
Had anybody before faced such issue?
Thanks,
Zuber Saiyed
From: Dan Fandrich <dan_at_coneharvesters.com
<mailto:dan_at_coneharvesters.com?Subject=Re:%20can%20i%20use%20Lib%20curl%2
0for%20DaVinci%20processors%20of%20TI?> >
Date: Thu, 17 Jan 2008 11:04:04 -0800
On Thu, Jan 17, 2008 at 11:23:02PM +0530, zuber saiyed_at_einfochips.com
wrote:
> I am able to transfer the file when I work with Red hat Linux but now
>
> I wanted to run this application on TI's DaVinci processor (It's a dual
core
> processor ARM+DSP).
>
> And for this ARM core I am using Monta Vista Linux 4.0.
>
>
>
> I want to know whether I can use the LibCurl 7.17.1 for this processor or
not?
Lots of people run libcurl on ARM processors, so there shouldn't be a
problem.
> I have tried to cross compile this library as per the INSTALL document.
>
> The script which I have used to cross compile is:
>
>
>
> export PATH=$PATH:/opt/montavista/pro/devkit/arm/v5t_le/bin
>
> export
CPPFLAGS="-I/opt/montavista/pro/devkit/arm/v5t_le/target/usr/include"
>
> export AR=arm_v5t_le-ar
>
> export AS=arm_v5t_le-as
>
> export LD=arm_v5t_le-ld
>
> export RANLIB=arm_v5t_le-ranlib
>
> export CC=arm_v5t_le-gcc
>
> export NM=arm_v5t_le-nm
>
>
>
> ./configure --target=arm-redhat-linux --host=arm-redhat-linux --build=
> arm_v5t_le --without-random --disable-shared
>
>
>
> Is there any mistake in this script or am I missing something because when
I
> run my application on this Processor I am getting ?cannot execute binary
file?
> error?
There probably is a mistake in one of the configure arguments. Have you
tried the simple version:
./configure --host=arm_v5t_le-linux --without-random
--disable-shared
after setting your PATH, of course? Does the output of "arm_v5t_le-objdump
-x
curl" match what you expect for the architecture? Can you run a Hello World
program on your target using the arm_v5t_le-gcc compiler?
>>> Dan
-- eInfochips Business Disclaimer: This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose,distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated.Nothing contained in this message shall be construed as an offer or acceptance of any offer by eInfochips Limited and/or eInfochips Inc(“eInfochips”) unless sent with that express intent and with due authority of eInfochips.EInfochips has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.Received on 2008-01-18