cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl.res : format not recognized

From: HiLow <hi.low_at_laposte.net>
Date: Tue, 18 Nov 2014 19:19:54 +0100

In article <546B49B3.90809_at_gknw.net>, you say...
>
> Hi Eric,
> On 18.11.2014 13:53, Guenter wrote:
> > On 18.11.2014 09:21, HiLow wrote:
> >> Oh ! It would be nice. For my project built against TDM MinGW64, I pass
> >> this to the resource compiler when 32-bit target :
> >>
> >> -F pe-i386
> > https://github.com/bagder/curl/commit/46ae340f249465b94c42e9836b9d94d74c965361
> >
> >
> > you can either directly checkout from git, or wait for the next snapshot
> > tomorrow early morning, and test it; or just add this simple change
> > manually to your local Makefile.m32 ...
> a follow-up to add -m32 to CFLAGS:
> https://github.com/bagder/curl/commit/4bc47bec574ba843150bf897299eaf892cdbeff1
>

Hi Gün,

Since I'm a little bit in emergency (sure you understand), I solved my
problem for my project in the meantime, building the 32-bit libcurl in a
VirtulaBox machine containing my old dev station under Win7 x86 & TDM-
GCC32 (so no possible confusion). So, I have now libcurl x86 and libcurl
x86_64 which both successully link against my project. So, solved !

Well, however, seeing your two last post, I applied the change (both about
-m32 and windres when ARCH!=w64), then issued this simple cmdline :

mingw32-make mingw32 -j8 ARCH=w32

And it falls in error like this :

T:\curl>mingw32-make mingw32 -j8 ARCH=w32 CPP="gcc -E -D_M_X86" CFLAGS="-
m32 -Os" CXXFLAGS="-m32 -Os" LDFLAGS="-m32"
mingw32-make -C lib -f Makefile.m32
mingw32-make[1]: Entering directory `T:/curl/lib'
windres --include-dir=../include -DDEBUGBUILD=0 -O COFF -F pe-i386 -i
file.c -o file.o
windres: no resources
mingw32-make[1]: *** [file.o] Error 1
mingw32-make[1]: Leaving directory `T:/curl/lib'
mingw32-make: *** [mingw32] Error 2

Eric
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-18