curl-library
Re: Problems builing curl library using cmake through VS 2008 x64 project file
Date: Thu, 24 Jun 2010 21:29:15 +0200
Also,
I've tried to build using nmake, and it seemed that compilated was
successfull. However(!), it failed to link, because:
/usr/bin/ld: /nologo: No such file: No such file or directory
Well, I'm stuck here not really knowing what to do next.
Andrey
On Thu, Jun 24, 2010 at 8:32 PM, Andriy Y <registeronsite_at_gmail.com> wrote:
> Hi,
>
> i'm pretty confused by this code (culrbuild.h). First, it wants
> CURL_TYPEOF_CURL_OFF_T to be undefined:
>
> #ifdef CURL_TYPEOF_CURL_OFF_T
> # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in
> curlbuild.h"
> Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
> #endif
>
> then, it uses CURL_TYPEOF_CURL_OFF_T to create a typedef:
>
> /* Data type definition of curl_off_t. */
> typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
>
> While, of course, CURL_TYPEOF_CURL_OFF_T isn't defined, as checked
> previously in this file.
> How can it be ?
>
> Andrey
>
>
>
> On Thu, Jun 24, 2010 at 8:16 AM, Tetetest <tetetest_at_rambler.ru> wrote:
>
>> Hello Andriy,
>>
>> Wednesday, June 23, 2010, 5:58:24 PM, you wrote:
>>
>> AY> I'm trying to build libcurl project using Visual Studio 2008 for x64
>> AY> platform (while I'm working on x86).
>> AY> I've created the project and solution files by running cmake command:
>> AY> D:\Programming\Libs\curl-7.21.0> cmake "Visual Studio 8 2005 Win64" .
>>
>> AY> However, when trying to build generated solution, I receive tons of
>> erros
>> AY> messages:
>> 1>>D:\Programming\Libs\curl-7.21.0\include\curl/curlbuild.h(160) : error
>> AY> C2061: syntax error : identifier 'curl_off_t'
>> 1>>D:\Programming\Libs\curl-7.21.0\include\curl/curlrules.h(94) : fatal
>> error
>> AY> C1189: #error : "CURL_TYPEOF_CURL_OFF_T definition is missing!"
>>
>> AY> I searched for this identifier to find next line CMakeLists.txt:
>> AY> if(NOT CURL_TYPEOF_CURL_OFF_T)
>> AY> set(CURL_TYPEOF_CURL_OFF_T ${ssize_t})
>>
>> AY> As far as I understand, CMake should have supplied somehow those
>> defines to
>> AY> be included in compilation, however this hasn't happened.
>> AY> Could you please explain what am I doing wrong and what should be done
>> to
>> AY> build curl library ?
>>
>> Andrey, are you building the library from git sources or from an
>> unpacked .tgz distribution? There are subtle differences between them
>> that can affect cmake build.
>>
>> Next, you are building in-source, which is not too good.
>>
>> I would suggest you to fetch the latest sources from git
>> repository, and try to build libcurl out of source:
>>
>> > mkdir win64_build
>> > cd win64_build
>> > cmake ../curl-7.21.0 -G "Visual Studio 8 2005 Win64"
>> > nmake
>>
>>
>> --
>> Best regards,
>> Tetetest mailto:tetetest_at_rambler.ru
>>
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
>
>
> --
> Best regards,
> Andrey Yanov
>
-- Best regards, Andrey Yanov
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-24