[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Curl example fails to build

From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Curl example fails to build
Date: Thu, 31 May 2012 08:13:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120428 Firefox/12.0 SeaMonkey/2.9.1

René Berber wrote:
At the end of making curl:

'i686-pc-mingw32-gcc' -W -Wall -Werror -ansi -pedantic './src/curl-test.c' -o '/opt/mxe/usr/i686-pc-mingw32/bin/test-curl.exe' `'i686-pc-mingw32-pkg-config' libcurl --cflags --libs`
i686-pc-mingw32-gcc: @CPPFLAG_CURL_STATICLIB@: No such file or directory
make[1]: *** [build-only-curl] Error 1

The output of pkg-config causes the problem:

$ i686-pc-mingw32-pkg-config libcurl --cflags --libs
@CPPFLAG_CURL_STATICLIB@ -I/opt/mxe/usr/i686-pc-mingw32/include -L/opt/mxe/usr/i686-pc-mingw32/lib -lcurl -lcares -lidn -lintl -liconv -lwldap32 -lssh2 -lssl -lcrypto -lgdi32 -lcrypt32 -lz -lws2_32

Which of course is an error in usr/i686-pc-mingw32/lib/pkgconfig/libcurl.pc, the last line :

Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@

which comes from src/curl-1-fixes.patch, line 106:

+Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@

The variable never gets substituted.

Hi René,

I just rebuilt curl at commit 217a662b70b29e309aafea499c0c2790781104dc and it works fine here. In libcurl.pc, I see "Cflags: -I${includedir} -DCURL_STATICLIB" as expected.

Would you mind digging a little deeper into what's going wrong?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]