GTK를 사용해 보려고 하는데요..

pro0331의 이미지

VMware, FC4에서 그냥 yum install gtk-devel 로 설치를 해버렸습니다.

그리고 나서 tutorial 문서에 있는 helloworld 프로그램으로 시험해 보려는데.. 컴파일이 안되더군요.

아예 gtk/gtk.h를 찾을수 없다면서요.. -_-;;

그래서 뒤져봤더니 gtk-2.0 폴더 밑에 설치가 됐더라구요. (사실 요게 이유가 맞는지도 잘 모르겠네요.. 워낙 초보라 -_-)

혹시나 싶어서 /usr/include/gtk-2.0/gtk 폴더를 /usr/include/gtk로 바꿔봤는데.. 역시 그정도로는 해결이 안되더라구요. 에러메시지가 끝도없이 계속 나오길래 안타까운 마음에 컨트롤C를 눌러버렸습니다 ㅠ_ㅠ

이런 상황에서는 어떻게 해야 하는건가요?? 혹시 제가 뭔가 빠뜨린 부분이라도 있는건지..?

puaxx의 이미지

gtk-2.0만의 디벨독이 있을지도...찾아보세요 --;

pro0331의 이미지

찾아보니 gtk랑 gtk-2.0이랑 다른거였군요 ㅠㅠ

좀 더 검색을 해봐야겠네요.. 감사합니다

아니면 gtk 1.x 버전을 깔아서 쓸 수 있는 방법이 있을까요?

pro0331의 이미지

컴파일하기 위해 이렇게 하라.

gcc -Wall -g helloworld.c -o hello_world `gtk-config --cflags` \
`gtk-config --libs`

Gtk2.0에서는 gtk-config대신 pkg-config로 변경되었으므로, 컴파일하기 위해 이렇게 하라.

gcc -Wall -g helloworld.c -o hello_world `pkg-config --cflags --libs gtk+-2.0`

------------------------------------------------------------

라고 tutorial에 친절하게 적혀 있었군요

이걸 왜 못봤을까.. 민망해 죽겠습니다 -_-

제 자신한테 이뭐병을 백만개쯤 날려주고 싶은 심정이네요

이거땜에 오후 내내 삽질했었는데.. 이런거였다니요;;

어쨌든 puaxx님 힌트를 주셔서 정말 감사드리구요 -_-

혹시라도 이런 쓸데없는 질문에 뭐가 문제일까 고민하셨던 분들께 죄송하다는 말씀을.. ㅠㅠ

댓글 달기

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 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • 사용할 수 있는 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>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • You can use Textile markup to format text.
  • 사용할 수 있는 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>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 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>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.