Xlib 컴파일 질문
글쓴이: son50 / 작성시간: 월, 2008/01/07 - 5:04오후
쓰는 프로그램이 Xlib을 사용합니다.
그래서 configure 화일에서 디렉토리를 찾는데 이상하게 못찾는군요.
우분투 리눅스 시스템에서는 잘 되던 것인데
현재는 윈도우의 vmware 상에서 우분투를 돌리고 있습니다.
분명 Xlib.h 화일이 /usr/include/X11 디렉토리에 있고
서치 패스에 들어있는데도 불구하고 못찾는군요.
강제로 지정해도 똑같구요.
뭐가 문제일까요?
Forums:
config.log 를 다시
config.log 를 다시 찬찬히 살펴보시라는 말 밖엔...
정말로 이상하다 싶으면 CFLAGS 에 -v 옵션 추가해서 보세요.
OTL
강제로 주어도...
강제로 디렉토리를 주어도 안되는군요.
config 옵션으로 --with-X11-include=/usr/include 혹은 /usr/include/X11
이렇게 주어도 못찾는데 혹시 Xlib.h 말고도 필요한 헤더 화일이 있을까요?
네
보통 configure 할 때 Xlib.h 외에 필요한 파일들이 더 있습니다. 윗 분 말씀처럼 config.log를 찬찬히 보시기 바랍니다.
제 config.log 입니다.
아래는 저의 config.log 화일의 일부입니다.
별다른 정보가 없어서 (제가 못찾아서) 에러 부분을 찾기가 쉽지 않네요.
한번 올려 봅니다. 첨부에 전체 화일을 올리는데 잘 안올라가네요.
--------
configure:6954: checking for grep that handles long lines and -e
configure:7028: result: /bin/grep
configure:7033: checking for egrep
configure:7111: result: /bin/grep -E
configure:7116: checking for ANSI C header files
configure:7146: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7152: $? = 0
configure:7251: gcc -o conftest -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7254: $? = 0
configure:7260: ./conftest
configure:7263: $? = 0
configure:7280: result: yes
configure:7304: checking for sys/types.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for sys/stat.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for stdlib.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for string.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for memory.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for strings.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for inttypes.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for stdint.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7304: checking for unistd.h
configure:7325: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7331: $? = 0
configure:7347: result: yes
configure:7359: checking for size_t
configure:7389: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7395: $? = 0
configure:7410: result: yes
configure:7422: checking whether struct tm is in sys/time.h or time.h
configure:7452: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
configure:7458: $? = 0
configure:7473: result: time.h
configure:7492: checking whether c++ compiler supports exception handling
configure:7513: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7516: $? = 1
configure:7534: result: no
configure:7539: WARNING: Compiler does not support exception handling!
configure:7544: checking whether c++ compiler supports typename
configure:7566: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7569: $? = 1
configure:7587: result: no
configure:7592: WARNING: Compiler does not support typename!
configure:7597: checking whether c++ compiler can explicitly instantiate templates
configure:7617: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7620: $? = 1
configure:7638: result: no
configure:7643: WARNING: Compiler does not support explicit instantiation of templates!
configure:7648: checking whether c++ compiler supports RTTI
configure:7670: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7673: $? = 1
configure:7691: result: no
configure:7703: checking whether c++ compiler supports namespaces
configure:7723: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7726: $? = 1
configure:7744: result: no
configure:7882: checking whether c++ compiler can overload const type conversions
configure:7906: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7909: $? = 1
configure:7955: result: no
configure:7967: checking whether c++ compiler knows mutable
configure:7987: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:7990: $? = 1
configure:8008: result: no
configure:8020: checking whether template friends need brackets
configure:8042: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:8045: $? = 1
configure:8063: result: no
configure:8075: checking whether nontype template operators are allowed
configure:8099: g++ -c -Wall -Wno-unused -g -DDEBUG
val conftest.cpp >&5
g++: val: No such file or directory
configure:8091: error: declaration of `operator<<' as non-function
configure:8091: error: expected `;' before '<' token
configure:8102: $? = 1
configure:8120: result: no
configure:8210: checking for xlf
configure:8243: result: no
configure:8210: checking for g77
configure:8228: found /usr/bin/g77
configure:8240: result: /usr/bin/g77
configure:8616: checking for F90 libraries
configure:8624: result: --
configure:8872: checking whether make sets $(MAKE)
configure:8893: result: yes
configure:8915: checking for a BSD-compatible install
configure:8971: result: /usr/bin/install -c
configure:8982: checking whether ln -s works
configure:8986: result: yes
configure:9036: checking for ranlib
configure:9052: found /usr/bin/ranlib
configure:9063: result: ranlib
configure:9091: checking what the library suffix is
configure:9098: result: .a
configure:9102: checking how to install libraries
configure:9116: result: with ${INSTALL} -m 644
configure:9121: WARNING: x11.m4 is obsolete. Please use AC_PATH_X or AC_PATH_XTRA.
configure:9140: checking for X11/Xlib.h
configure:9173: result: no
configure:9190: error: X11 includes not found in /usr/X11R6/include:/usr/X11/include:/usr/include:/usr/local/include:/loc/include:/usr/openwin/include:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games. Use --with-X11-include to set the location of X11/Xlib.h.
파일의 확장자를
파일의 확장자를 txt로 바꿔서 올려 보시겠어요? 확장자별로 업로드할 수 있는 파일 형식을 제한해 두었거든요...
그래도 안됩니다...
txt로 바꿨는데도 업로드 하면 그냥 계속 업로드 중이라고만 나오네요...
find / -name
find / -name Xlib.h
그다음 그 경로를 CFLAGS에 박아넣고 해보십시오. X11/Xlib.h 식으로 쓰므로 경로의 마지막 X11은 빼주셔야하고요.
(예를 들어 /usr/local/include/X11/Xlib.h ==> CFLAGS=-I/usr/local/include로 지정,)
./configure에서 돌리는 테스트 프로그램이 segmentation fault 등으로 인해 죽어서 안되는 경우도 간혹가다 있긴 있습니다.
이경우는 알아서 고치는 것 외에는.
Written By the Black Knight of Destruction
Written By the Black Knight of Destruction
잘 안되는군요...
일단 그냥 리눅스 상태에서는 됩니다.
그냥이라 함은 리눅스만 깔린 컴퓨터에서는 된단 거죠.
그런데 이상하게 vmware palyer 에 올라온 리눅스 이미지들에서는
안되는군요. 두개를 해봤는데 똑같은 문제가 생기네요.
리눅스 온리 시스템에서는 똑같은 디렉토리에 있어도 잘 되는데
윈도우 상의 vmware 에서 띄운 리눅스에서는 문제가 계속 일어나는게
vmware 등과의 충돌이나 이런 문제는 아닐런지요?
차이점
기존 리눅스 머신에서 할 경우와 vmware 에서 한 경우가 차이나는 부분만 좀 올려봅니다.
다른 곳에서는 거의 같고 이 부분에서 리눅스쪽에서는 "No such file or directory"
에러가 뜨지 않는데 vamware에서는 발생하고 있습니다.
이게 영향을 주는 건지...
> configure:7422: checking whether struct tm is in sys/time.h or time.h
> configure:7452: gcc -c -Wall -Wno-unused -g -DDEBUG conftest.c >&5
> configure:7458: $? = 0
> configure:7473: result: time.h
> configure:7492: checking whether c++ compiler supports exception handling
> configure:7513: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7516: $? = 1
> configure:7534: result: no
> configure:7539: WARNING: Compiler does not support exception handling!
> configure:7544: checking whether c++ compiler supports typename
> configure:7566: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7569: $? = 1
> configure:7587: result: no
> configure:7592: WARNING: Compiler does not support typename!
> configure:7597: checking whether c++ compiler can explicitly instantiate templates
> configure:7617: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7620: $? = 1
> configure:7638: result: no
> configure:7643: WARNING: Compiler does not support explicit instantiation of templates!
> configure:7648: checking whether c++ compiler supports RTTI
> configure:7670: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7673: $? = 1
> configure:7691: result: no
> configure:7703: checking whether c++ compiler supports namespaces
> configure:7723: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7726: $? = 1
> configure:7744: result: no
> configure:7882: checking whether c++ compiler can overload const type conversions
> configure:7906: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7909: $? = 1
> configure:7955: result: no
> configure:7967: checking whether c++ compiler knows mutable
> configure:7987: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:7990: $? = 1
> configure:8008: result: no
> configure:8020: checking whether template friends need brackets
> configure:8042: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:8045: $? = 1
> configure:8063: result: no
> configure:8075: checking whether nontype template operators are allowed
> configure:8099: g++ -c -Wall -Wno-unused -g -DDEBUG
> val conftest.cpp >&5
> g++: val: No such file or directory
> configure:8091: error: declaration of `operator<<' as non-function
> configure:8091: error: expected `;' before '<' token
> configure:8102: $? = 1
> configure:8120: result: no
> configure:8210: checking for xlf
> configure:8243: result: no
> configure:8210: checking for g77
> configure:8228: found /usr/bin/g77
> configure:8240: result: /usr/bin/g77
> configure:8616: checking for F90 libraries
> configure:8624: result: --
> configure:8872: checking whether make sets $(MAKE)
> configure:8893: result: yes
> configure:8915: checking for a BSD-compatible install
> configure:8971: result: /usr/bin/install -c
> configure:8982: checking whether ln -s works
> configure:8986: result: yes
> configure:9036: checking for ranlib
> configure:9052: found /usr/bin/ranlib
> configure:9063: result: ranlib
> configure:9091: checking what the library suffix is
> configure:9098: result: .a
> configure:9102: checking how to install libraries
> configure:9116: result: with ${INSTALL} -m 644
> configure:9121: WARNING: x11.m4 is obsolete. Please use AC_PATH_X or AC_PATH_XTRA.
> configure:9140: checking for X11/Xlib.h
> configure:9173: result: no
> configure:9190: error: X11 includes not found in /usr/X11R6/include:/usr/X11/include:/usr/include:/usr/local/include:/loc/include:/usr/openwin/include:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games. Use --with-X11-include to set the location of X11/Xlib.h.
저 메시지는... g++가
저 메시지는... g++가 없거나 val(이게 머지;;)이 없는거 아닌가요 ?
패키지가 덜 설치된듯한 느낌이 드는데요.
댓글 달기