curl win32 compilation [2]

Bart van den Eijnden bartvde at XS4ALL.NL
Wed Dec 29 11:31:04 EST 2004


Sorry for replying to my own threads :)

I just compiled with curl 7.10.7 and then there is no problem. I also did
not need the libcurl_imp.lib, and everything just got compiled into the
libmap.dll (I do not need a libcurl.dll).

But maybe someone (Daniel?) can still comment on why it does not work well
with the latest curl?

Best regards,
Bart

> Hi list,
>
> I had some problems with this compile (mapserv occassionally crashing
> because of an unhandled exception, internal server error) when requesting
> for more than one layer in the WMS client.
>
> So I tried a different approach compiling the curl-7.12.3 from source,
> through the following commands:
>
> C:\projects\curl-7.12.3\lib>nmake /f makefile.vc6 CFG=release
> C:\projects\curl-7.12.3\lib>nmake /f makefile.vc6 CFG=release-dll
>
> and changing nmake.opt of mapserv to also use libcurl_imp.lib:
>
> CURL_LIB = $(CURL_DIR)/lib/libcurl.lib $(CURL_DIR)/lib/libcurl_imp.lib
>
> But I still get the occassional crashing behaviour.
>
> Is Mapserver not "compatible" with this version of libcurl, or am I doing
> something wrong?
>
> Best regards,
> Bart
>
>> Hi list,
>>
>> I have just finished compiling curl on win32 in order to enable
>> Mapserver
>> as a WMS client, and I thought my notes might be helpful to people as
>> this
>> is not part of the general Win32 compilation HOWTO.
>>
>> What I did is use the MSVC version of curl available for download from
>> the
>> curl site, I did not try to compile curl myself. Here are my
>> instructions:
>>
>> Added WMS client support:
>> -------------------------
>> Downloaded Curl from http://curl.haxx.se/download.html
>>
>> Win32 - MSVC version, but it misses curlver.h, so also downloaded:
>>
>> curl-7.12.2.zip.
>>
>> And copied curlver.h to C:\projects\curl-7.12.2\include\curl\curlver.h
>>
>> Moved libcurl.lib to C:\projects\curl-7.12.2\lib
>>
>> Error encountered:
>>
>>    Creating library mapserver_i.lib and object mapserver_i.exp
>> maphttp.obj : error LNK2001: unresolved external symbol __imp__select at 20
>> libmap.dll : fatal error LNK1120: 1 unresolved externals
>> NMAKE : fatal error U1077: 'link' : return code '0x460'
>> Stop.
>>
>> This was because I did not uncomment and configure the path to the
>> following:
>>
>> WINSOCK_LIB = "d:\program files\Microsoft Visual
>> Studio\VC98\Lib\WSOCK32.LIB"
>>
>> Copied libcurl.dll to the mapserv.exe directory, but now it is missing
>> zlibwapi.dll.
>>
>> After a search I found this dll at:
>>
>> http://www.winimage.com/zLibDll/
>>
>> and more specific:
>> http://www.winimage.com/zLibDll/zlib122dll.zip
>>
>> Best regards,
>> Bart
>>
>



More information about the mapserver-users mailing list