cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Perl windows libcurl

From: Tim Tessier <ttessier_at_swhistlesoft.com>
Date: Mon, 27 Jul 2009 15:47:50 -0400

ftp://mirror.cpsc.ucalgary.ca/cygwin.com/release/curl/

Modified Line 300 and 301 of Makefile to contain the following:

EXTRALIBS = C:\strawberry\c\lib\libmsvcrt.a C:\strawberry\c\lib\libmoldname.a C:\strawberry\c\lib\libkernel32.a C:\strawberry\c\lib\libuser32.a C:\strawberry\c\lib\libgdi32.a C:\strawberry\c\lib\libwinspool.a C:\strawberry\c\lib\libcomdlg32.a C:\strawberry\c\lib\libadvapi32.a C:\strawberry\c\lib\libshell32.a C:\strawberry\c\lib\libole32.a C:\strawberry\c\lib\liboleaut32.a C:\strawberry\c\lib\libnetapi32.a C:\strawberry\c\lib\libuuid.a C:\strawberry\c\lib\libws2_32.a C:\strawberry\c\lib\libmpr.a C:\strawberry\c\lib\libwinmm.a C:\strawberry\c\lib\libversion.a C:\strawberry\c\lib\libodbc32.a C:\strawberry\c\lib\libodbccp32.a C:\strawberry\curl\lib\libcurl.a C:\strawberry\curl\lib\libcurl.dll.a
LDLOADLIBS = C:\strawberry\c\lib\libmsvcrt.a C:\strawberry\c\lib\libmoldname.a C:\strawberry\c\lib\libkernel32.a C:\strawberry\c\lib\libuser32.a C:\strawberry\c\lib\libgdi32.a C:\strawberry\c\lib\libwinspool.a C:\strawberry\c\lib\libcomdlg32.a C:\strawberry\c\lib\libadvapi32.a C:\strawberry\c\lib\libshell32.a C:\strawberry\c\lib\libole32.a C:\strawberry\c\lib\liboleaut32.a C:\strawberry\c\lib\libnetapi32.a C:\strawberry\c\lib\libuuid.a C:\strawberry\c\lib\libws2_32.a C:\strawberry\c\lib\libmpr.a C:\strawberry\c\lib\libwinmm.a C:\strawberry\c\lib\libversion.a C:\strawberry\c\lib\libodbc32.a C:\strawberry\c\lib\libodbccp32.a C:\strawberry\curl\lib\libcurl.a C:\strawberry\curl\lib\libcurl.dll.a

Successful build. but dynamic linker problems:

Can't load 'C:/strawberry/perl/site/lib/auto/WWW/Curl/Curl.dll' for module WWW::
Curl: load_file:The specified module could not be found at C:/strawberry/perl/li
b/DynaLoader.pm line 203.
 at C:/strawberry/perl/lib/Carp.pm line 12
BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/WWW/Curl.pm lin
e 12.
Compilation failed in require at test.pl line 1.
BEGIN failed--compilation aborted at test.pl line 1.

From: Tim Tessier
Sent: Monday, July 27, 2009 12:30 PM
To: curl-users_at_cool.haxx.se
Subject: Perl windows libcurl

Hello,

I am attempting to compile curl into perl with strawberry perl. This is not an automated process at the moment and in the README.win32 contains the following:

Installation on Windows need to be done manually, by editing Makefile.PL.

1. Specify your curl include directory on the line "my @include = qw()".
2. Specify the following parameters on the line below, where <DIR> is your curl directory like this:

my ($cflags,$ldflags,$lflags) = ('-I"<DIR>\\include"', '-L"<DIR>\\lib"','-lcurl -lcurldll');

<DIR> can be for example: "E:\\Perldev\\downloader\\curl-7.18.2-devel-mingw32" (without quotes);
3. Save Makefile.PL.
4. Execute "perl Makefile.PL";
5. Execute "nmake" ( you may need nmake from Mircosoft, which can be downloaded from http://support.microsoft.com/default.aspx?scid=kb;en-us;Q132084 );
6. Execute "nmake install".

I have adjusted to:

my @includes = qw('c:\\strawberry\\curl\\include');
my ($cflags,$lflags, $ldflags) = ('-Ic:\\strawberry\\curl\\include','-Lc:\\strawberry\\curl\\lib','-lcurllib');

When I run dmake using:

libcurl-7.19.3-win32-ssl-msvc

I receive the following:

Note (probably harmless): No library found for -lcurllib

I am guessing from the line in the README.win32

<DIR> can be for example: "E:\\Perldev\\downloader\\curl-7.18.2-devel-mingw32" (without quotes);

that this is because I have the wrong package and that I might need ming32 versions even though
I am using the microsoft compilers?

Thanks,
Tim

--------------------------------------------------------------------------------

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-07-27