2013/5/30 Matheus Viana <[email protected]>

> Hi List.
>
> I'm trying to compile the igraph library using MinGW64, but it's not
> working, though the 32 bits version compiles well in MinGW.
>
> In the source folder of igraph-0.6.5, the command
>
> ./configure --prefix=c:/mingw64 CC="x86_64-w64-mingw32-gcc"
>

This is wrong. See below.


>
> works fine, and this is the final result:
>

> GraphML format support -- no
> GMP library support -- no
> ... yes
> Debug -- no
> Profiling -- no
>
> After this, during the "make", I got the following error:
>
> .libs/libigraph_la-matrix.o: file not recognized: File format not
> recognized
> collect2.exe: error: ld returned 1 exit status
> make[3]: *** [libigraph.la] Error 1
> make[3]: Leaving directory '/src/igraph-0.6.5/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory '/src/igraph-0.6.5/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/src/igraph-0.6.5'
> make: *** [all] Error 2
>
> Do you guys have any idea of how to go around this problem?
>

Yes: the MinGW-w64 Wiki
<http://sourceforge.net/apps/trac/mingw-w64/wiki/MSYS#Mingw-w64w32specifics>shows
how to compile using the Unix Autotools.

The correct invocation is:
./configure --host=x86_64-w64-mingw32

Note that igraph is currently uncapable of building outside of the source
tree, which I find very annoying and is in general bad practice. You may
want to bring this to the developers' attention.

I ran into a compile error though:

f2c/dtime_.c:16:23: fatal error: sys/times.h: No such file or directory
 #include "sys/times.h"
                       ^

which is caused by this code:
#ifndef USE_CLOCK
#define _INCLUDE_POSIX_SOURCE    /* for HP-UX */
#define _INCLUDE_XOPEN_SOURCE    /* for HP-UX */
#include "sys/types.h"
#include "sys/times.h"
#ifdef __cplusplus
extern "C" {
#endif
#endif

which needs fixing in the configury part or a Windows implementation. I
guess the first because it works on MinGW. A quick glance over the
configure script showed me nothing that could apply here.

Ruben


> Thanks,
>
> *Matheus Viana*
> *Postdoctoral Research Employee*
> *Developmental and Cell Biology*
> *University of California Irvine*
> *
> **
> *
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to