컴파일시 zllib.h을 찾을수 없다네요...

suns1997의 이미지

sasah:/home/sasah/xine-lib-1.1.1/misc# gcc xine-fontconv.c -o xine-fontconv `freetype-config --cflags --libs` -lz
xine-fontconv.c:43:18: error: zlib.h: 그런 파일이나 디렉토리가 없음
xine-fontconv.c:112: error: syntax error before '*' token
xine-fontconv.c: In function 'gzwrite_i16':
xine-fontconv.c:113: error: 'fp' undeclared (first use in this function)
xine-fontconv.c:113: error: (Each undeclared identifier is reported only once
xine-fontconv.c:113: error: for each function it appears in.)
xine-fontconv.c:113: error: 'number' undeclared (first use in this function)
xine-fontconv.c: In function 'render_font':
xine-fontconv.c:344: error: 'gzFile' undeclared (first use in this function)
xine-fontconv.c:344: error: 'fp' undeclared (first use in this function)

정확히는 프로그래밍 질문은 아니지만 일단 컴파일시 문제니 ^^;
zlib.h 파일은 /usr/include/linux/zlib.h 에 있는데

제가 알아본 바는 -lz이 옵션 부분에서 zlib.h을 컴파일시 링크하는
거 같은데 당체 ~어떻게 해야할지 막막하네요..컴파일 링크를
구글링을 하고 있지만~~부탁드립니다.~영화함 보려고 하다가
벌써 몇시간째인지 ....

ironboy의 이미지

-I /usr/include/linux/ 옵션을 넣어주세요.

이 옵션의 의미는, 헤더파일을 /usr/include/linux/ 이 위치에서도
찾아라.... 정도 입니다. ^^;;

대문자 i 입니다. L이 아닙니다..

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.