Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2012-01-12 19:43:45


Andrew Helwer, le Fri 13 Jan 2012 01:35:27 +0100, a écrit :
> It fails with the following:
>
> *** Warning: linker path does not have real file for library -lgdi32.

Ah, that's a dark bug in libtool.

> gcc -I/cygdrive/c/hwloc-asdf/include -I/cygdrive/c/hwloc-asdf/include -I/cygdriv
> e/c/hwloc-asdf/include dolib.c -o dolib
> ./dolib "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/lib
> " X86 .libs/libhwloc.def libhwloc- .libs/libhwloc.lib
> The system cannot find the path specified.
> "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/lib" /machi
> ne:X86 /def:.libs/libhwloc.def /name:libhwloc- /out:.libs/libhwloc.lib failed
> Makefile:758: recipe for target `.libs/libhwloc.lib' failed

Well, AIUI, you don't actually need the shared version, so you can as
well pass --disable-shared to ./configure to just get rid of this bug.

That said, isn't the just-uploaded-to-hwloc-website win64 build enough
for you? It contains the libhwloc.a static build in lib/

Samuel