LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-23-2005, 02:27 AM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
libcurl cross-compilation pls help


Hi
This topic is on libCURL
I've got a message when compiling
'CURL' undeclared (first use this function)
and the similar

This is a cross-compilation project. The target is ARMBE-LINUX
I'm using Makefile.am and cofigure.in.
I have defined all pathes
#include <curl/curl.h>
etc

function like curl_global_init was not recognized by the cross-compiler too
What happened? I am ready to give further info.
Thank you so much
Jack
 
Old 12-23-2005, 09:58 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Please cut/paste exact error message (at least the first couple of lines; preceded by the command that failed).
 
Old 12-24-2005, 01:24 AM   #3
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Hello Paul,
I have given up my last attempt. I am now trying to compile my source against libcurlpp. But the same errors were found.


Webcam.cpp:97: error: expected ';' before "myCleanup"
Webcam.cpp:101: error: 'cURLpp' has not been declared
... same for others

Code Snippet
#include <curlpp/cURLpp.hpp>
etc...
try
{
cURLpp::Cleanup myCleanup;

cURLpp::Options::Url myUrl(std::string("Blah.com"));

etc...
}
Thanks
Jack
 
Old 12-24-2005, 01:40 AM   #4
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Do libcurl and libcurlpp have to be remade+reconfigured before used in a cross-compiled environment?
 
Old 12-24-2005, 01:59 AM   #5
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Also where should I put the libCurlpp libraries to?
Thanks
Jack
 
Old 12-24-2005, 11:59 AM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
You haven't given enough information for me to be sure ...

... but it SOUNDS like you're trying to compile C++ source code with a C compiler.

Please make sure the compiler you're using is in fact a C++ compiler (i.e. that it can compile C++ source).
 
Old 12-27-2005, 07:23 PM   #7
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Basically correct. My application is based on G++ and libcurlpp is a C++ library. Thanks
Jack
 
Old 12-27-2005, 09:02 PM   #8
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
You haven't given enough information for me to be certain ... but everything you're describing *sounds* like you're trying to compile C++ code with a pure-C compiler.

Are you able to compile a C++ (not C) "hello world"?

And yes, you most definitely need to build libCurlpp in your cross-compiled environment before you can hope to use it with your cross-compiled executable.

I'd try the cross-compiled C++ "hello world" first (it'll take << 5 minutes), and make sure I can build libCurl second. Please post back after trying these two steps.
 
Old 12-28-2005, 11:55 PM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
lucky6969b - hello?

Have you fixed the problem yet?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-Compilation Question lucky6969b Linux - Software 0 12-01-2005 07:31 PM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 12:18 AM
Kernel cross compilation and install disks gargamel Slackware 0 12-18-2003 03:05 PM
cross compilation Kocil Slackware 6 12-18-2003 01:53 PM
Cross-compilation radhapriya Linux - Software 0 08-11-2003 07:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration