2013-02-12 3 views
0

유닉스 쉘을 사용하여 a library을 컴파일하려고합니다. Windows에서 Cygwin을 실행하고 있습니다. 라이브러리 상태에 대한 설치 지침 :Cygwin 'make'명령어

  1. cd' to the directory containing the package's source code and type ./configure를은 '시스템에 패키지를 구성 할 수 있습니다. 만약 당신이 라면 csh' on an old version of System V, you might need to type sh ./configure '대신 csh' from trying to execute configure'자체를 사용하십시오.

    `configure '를 실행하는 데 다소 시간이 걸립니다. 실행 중일 때 검사 할 기능을 나타내는 메시지를 인쇄합니다.

  2. 'make'를 입력하여 패키지를 컴파일하십시오.

< 은 ... MORE 지침은, 내가 '에드 폴더로 내 Cygwin에서 디렉토리에 CD를 라이브러리 소스가 들어있는 폴더를 배치했습니다> ... 그래서

따르 ./configure을 실행하십시오. 이 모든 것이 정상적으로 작동하지만 'make'명령을 실행하면 다음과 같은 결과가 산출됩니다.

$ make 
make all-recursive 
make[1]: Entering directory `/liblo-0.26' 
Making all in src 
make[2]: Entering directory `/liblo-0.26/src' 
Making all in . 
make[3]: Entering directory `/liblo-0.26/src' 
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. - 
Wall -I.. -g -O2 -MT liblo_la-address.lo -MD -MP -MF .deps/liblo_la-address.Tpo 
-c -o liblo_la-address.lo `test -f 'address.c' || echo './'`address.c 
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I.. -g -O2 -MT liblo_la-a 
ddress.lo -MD -MP -MF .deps/liblo_la-address.Tpo -c address.c -DDLL_EXPORT -DPI 
C -o .libs/liblo_la-address.o 
In file included from lo_types_internal.h:33, 
       from address.c:37: 
../lo/lo_osc_types.h:32:20: stdint.h: No such file or directory 
In file included from address.c:37: 
lo_types_internal.h:89: field `addr' has incomplete type 
lo_types_internal.h:98: confused by earlier errors, bailing out 
make[3]: *** [liblo_la-address.lo] Error 1 
make[3]: Leaving directory `/liblo-0.26/src' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/liblo-0.26/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/liblo-0.26' 
make: *** [all] Error 2 

무엇이 잘못 되었나요? 더 많은 정보를 제공해 주셔서 감사합니다. 그러나 유닉스 쉘을 처음 접하십니까? (아마도 알 수 있듯이)

+0

이것은 셸 문제가 아닙니다. 시스템에 표준 C 인클루드 파일'stdint.h '가 없습니다. – Barmar

답변

1

오류는 헤더 파일 stdint.h을 찾을 수 없다는 것입니다.

stdint.h은 C99 (C 표준의 1999 년 발행 버전)에서 표준화 된 새로운 헤더입니다. UNIX에없는 헤더 일 수 있습니다. 그러나 cygwin은 최근에 있어야하고 그것을 가지고 있습니다.

cygwin 설치에 C 라이브러리 헤더 파일이 설치되어 있습니까?

+0

그의 유닉스는 유닉스가 아니고, 윈도우 (그는 Cygwin을 사용하고있다)이다. – Barmar

+0

내 질문을 수정했습니다. 이것을 지적 해 주셔서 감사합니다. 헤더 파일이 설치되어 있는지 어떻게 알 수 있습니까? – CaptainProg

+0

'find/usr/include/-name 'stdint.h''는 당신을 검색 할 것입니다 ... (실제 유닉스'find'라고 부릅니다. 윈도우가 아닙니다.) –