2014-09-09 3 views
0

Windows에서 igraph 0.7.1을 MinGW을 사용하여 컴파일하려고합니다. 이에 대한 세 가지 단계가 있습니다.MinGW에서 igraph 컴파일 오류가 발생했습니다

configure 
make 
make install 

구성는 잘 작동한다. 그러나 에서 다음과 같은 오류가 발생합니다..

make all-recursive 
make[1]: Entering directory `/home/874469/igraph-0.7.1' 
Making all in src 
make[2]: Entering directory `/home/874469/igraph-0.7.1/src' 
make all-am 
make[3]: Entering directory `/home/874469/igraph-0.7.1/src' 
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DSkip_f2c_Undefs -I. -I../include -I../include -Wall -g -O2 -MT f2 
c/libf2c_la-dtime_.lo -MD -MP -MF f2c/.deps/libf2c_la-dtime_.Tpo -c -o f2c/libf2c_la-dtime_.lo `test -f 'f2c/dtime_.c' || echo './'`f2c/dtime_.c 
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DSkip_f2c_Undefs -I. -I../include -I../include -Wall -g -O2 -MT f2c/libf2c_la-dtime_.lo -MD -MP 
-MF f2c/.deps/libf2c_la-dtime_.Tpo -c f2c/dtime_.c -DDLL_EXPORT -DPIC -o f2c/.libs/libf2c_la-dtime_.o 
f2c/dtime_.c:16:23: fatal error: sys/times.h: No such file or directory 
#include "sys/times.h" 
        ^
compilation terminated. 
make[3]: *** [f2c/libf2c_la-dtime_.lo] Error 1 
make[3]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/874469/igraph-0.7.1' 
make: *** [all] Error 2 

여기에 무슨 문제가 있습니까? gcc와 g ++ 버전 4.8.1을 사용하고 있습니다.

나는 Tamas의 제안을 따랐을 때 주어진 오류들.

f2c/uninit.c: In function 'ieee0': 
f2c/uninit.c:182:2: warning: implicit declaration of function '_control87' [-Wimplicit-function-declaration] 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
^
f2c/uninit.c:171:21: error: '_EM_DENORMAL' undeclared (first use in this function) 
#define EM_DENORMAL _EM_DENORMAL 
        ^
f2c/uninit.c:182:13: note: in expansion of macro 'EM_DENORMAL' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
      ^
f2c/uninit.c:171:21: note: each undeclared identifier is reported only once for each function it appears in 
#define EM_DENORMAL _EM_DENORMAL 
        ^
f2c/uninit.c:182:13: note: in expansion of macro 'EM_DENORMAL' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
      ^
f2c/uninit.c:174:22: error: '_EM_UNDERFLOW' undeclared (first use in this function) 
#define EM_UNDERFLOW _EM_UNDERFLOW 
        ^
f2c/uninit.c:182:27: note: in expansion of macro 'EM_UNDERFLOW' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
         ^
f2c/uninit.c:177:20: error: '_EM_INEXACT' undeclared (first use in this function) 
#define EM_INEXACT _EM_INEXACT 
        ^
f2c/uninit.c:182:42: note: in expansion of macro 'EM_INEXACT' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
             ^
f2c/uninit.c:180:16: error: '_MCW_EM' undeclared (first use in this function) 
#define MCW_EM _MCW_EM 
       ^
f2c/uninit.c:182:54: note: in expansion of macro 'MCW_EM' 
    _control87(EM_DENORMAL | EM_UNDERFLOW | EM_INEXACT, MCW_EM); 
                ^
make[3]: *** [f2c/libf2c_la-uninit.lo] Error 1 
make[3]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/874469/igraph-0.7.1/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/874469/igraph-0.7.1' 
make: *** [all] Error 2 
+0

다른 사람들도 MinGW에서 igraph를 컴파일하려고 할 때이 문제를 발견 한 것 같습니다. 이 답변을 참조하십시오 : http://stackoverflow.com/a/12766354/156771 –

답변

2

sys/times.h 헤더는 Windows에서 사용할 수 없습니다. 이 헤더는 src/f2c/dtime_.csrc/f2c/etime_.c에서 참조되는 것으로 보이지만, USE_CLOCK이 정의되지 않은 경우에만 표시됩니다. 다음과 같이 igraph 재 컴파일보십시오 :

CFLAGS=-DUSE_CLOCK ./configure 
make 
make install 

업데이트을 :는 MinGW는 f2c, igraph의 구성 요소에 의해 사용되는 몇 가지 다른 일을 지원하지 않는 것 같이 당신은 또한 다른 수정이 필요합니다. 더 많은 것을 조정할 수있는 스택 오버플로에 대해서는 this response을 참조하십시오.

+0

이제 make에서 많은 오류가 발생합니다. –

+0

나는 그 오류를 보지 않고 당신을 도울 수 없습니다. –

+0

출력의 작은 하위 집합을 지정했습니다. 더 많은 오류가 있습니다. –

관련 문제