gtk 2.x 지우고 1.x 설치하려고 하는데요 ...
글쓴이: apple2tree / 작성시간: 토, 2007/09/29 - 12:46오전
안녕하세요 ...
리눅스는 접해본지 한 달 정도 밖에 되지 않아서 모르는 것이 너무 많습니다.
특히 혼자서 공부하는 관계로 ...
현재 gtk 1.x 로 되어 있는 소스를 컴파일 하려고 gkt 1.x 를 설치하려고 합니다.
2.x 를 그냥 둔 상태에서 설치해도 무방할까요 ?
만약에 기존 2.x 를 지워야 할 경우 ..
지우는 방법을 잘 몰라서요 ^^;
고수님들 부탁드립니다.
모두 모두 수고하세요.
Forums:
대부분의 리눅스
대부분의 리눅스 배포판에는 gtk+ 1.2와 2.x가 동시에 설치되어 있습니다.
그냥 사용하시면 됩니다.
----
Do not feed troll!
----
데스크탑 프로그래머를 꿈꾸는 임베디드 삽질러
답변 감사합니다. 한가지만 더 ...
안녕하세요.
답변 너무너무 감사합니다.
한가지만 더 여쭈어 보아도 될까요 ^^?
현재 페도라 코어 7 에서 설치 및 프로그램을 짜려고 하고 있습니다.
1.2가 설치가 되어 있는지 확인해 보아야 할 것 같은데요.
현재 GTK 버젼을 확인하려면 어떻게 해야 하나요?
그리고 ..
현재 컴파일 하려고 하는 소스가 1.2 인데요.
make 하니까 ...
에러가 하나 발생합니다.
(에러 문구는 아래 참조와 같이 ...)
그래서 지금 1.2 소스를 2.x 형식으로 바꾸려고 ...
어느 부분을 고쳐야 하는지
소스 프린트 해서 찾아보고 있습니다.
그리고 컴파일 할 때
make 하고
make install 하고
실행하면 되는거 맞나요 ^^?;
=====> 참조. make 시 에러 내용
[root@localhost gqcam-0.9.1]# ls
CHANGES Makefile TODO filters.c frontend.h greyscale.c jpeg.h save.c timer.h
COPYING README color.c filters.h gqcam.c greyscale.h preferences.c save.h yuv_to_rgb.c
INSTALL README.threads color.h frontend.c gqcam.h jpeg.c preferences.h timer.c yuv_to_rgb.h
[root@localhost gqcam-0.9.1]# make
gcc `gtk-config --cflags` -DVERSION=\"0.9.1\" -c gqcam.c
/bin/sh: gtk-config: command not found
gqcam.c:31:21: error: gtk/gtk.h: 그런 파일이나 디렉토리가 없음
In file included from gqcam.c:37:
gqcam.h:28: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:48: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:58: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:71: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:82: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:104: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:117: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:141: error: expected specifier-qualifier-list before ‘GtkWidget’
gqcam.h:176: error: expected specifier-qualifier-list before ‘guint’
gqcam.h:238: error: expected ‘)’ before ‘*’ token
In file included from gqcam.c:38:
frontend.h:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘configure_event’
frontend.h:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘expose_event’
frontend.h:5: error: expected ‘)’ before ‘*’ token
frontend.h:7: error: expected ‘)’ before ‘*’ token
frontend.h:8: error: expected ‘)’ before ‘*’ token
frontend.h:9: error: expected ‘)’ before ‘*’ token
frontend.h:10: error: expected ‘)’ before ‘*’ token
frontend.h:11: error: expected ‘)’ before ‘*’ token
frontend.h:12: error: expected ‘)’ before ‘*’ token
frontend.h:13: error: expected ‘)’ before ‘*’ token
frontend.h:14: error: expected ‘)’ before ‘*’ token
frontend.h:15: error: expected ‘)’ before ‘*’ token
frontend.h:16: error: expected ‘)’ before ‘*’ token
frontend.h:20: error: expected ‘)’ before ‘*’ token
frontend.h:21: error: expected ‘)’ before ‘*’ token
In file included from gqcam.c:39:
save.h:14: error: expected ‘)’ before ‘*’ token
save.h:15: error: expected ‘)’ before ‘*’ token
gqcam.c: In function ‘init_cam’:
gqcam.c:49: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:50: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:52: error: ‘struct Camera’ has no member named ‘pixmap’
gqcam.c:60: error: ‘struct Camera’ has no member named ‘devname’
gqcam.c:64: error: ‘struct Camera’ has no member named ‘currentsavepage’
gqcam.c:67: error: ‘struct Camera’ has no member named ‘timer_struct’
gqcam.c:68: error: ‘struct Camera’ has no member named ‘timer_struct’
gqcam.c:70: error: ‘struct Camera’ has no member named ‘save_struct’
gqcam.c:71: error: ‘struct Camera’ has no member named ‘pref_mutex’
gqcam.c:72: error: ‘struct Camera’ has no member named ‘freeze_mutex’
gqcam.c:73: error: ‘struct Camera’ has no member named ‘iscam_mutex’
gqcam.c: In function ‘set_cam_info’:
gqcam.c:84: error: ‘struct Camera’ has no member named ‘vid_pic’
gqcam.c:87: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c: In function ‘get_cam_info’:
gqcam.c:97: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:98: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:99: error: ‘struct Camera’ has no member named ‘vid_pic’
gqcam.c:107: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:108: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:110: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:112: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:112: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:112: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:112: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:113: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:113: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:113: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:113: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:117: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:117: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:117: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:117: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:118: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:118: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:118: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:118: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c: In function ‘open_cam’:
gqcam.c:186: error: ‘struct Camera’ has no member named ‘devname’
gqcam.c:189: error: ‘struct Camera’ has no member named ‘devname’
gqcam.c:193: error: ‘struct Camera’ has no member named ‘iscam_mutex’
gqcam.c: In function ‘close_cam’:
gqcam.c:199: error: ‘struct Camera’ has no member named ‘iscam_mutex’
gqcam.c: In function ‘display’:
gqcam.c:209: error: ‘GdkDrawable’ undeclared (first use in this function)
gqcam.c:209: error: (Each undeclared identifier is reported only once
gqcam.c:209: error: for each function it appears in.)
gqcam.c:209: error: ‘drawable’ undeclared (first use in this function)
gqcam.c:211: error: ‘GdkRectangle’ undeclared (first use in this function)
gqcam.c:211: error: expected ‘;’ before ‘update_rec’
gqcam.c:218: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:219: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:219: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:220: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:224: error: ‘update_rec’ undeclared (first use in this function)
gqcam.c:226: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:227: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:229: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:229: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:230: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:230: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:232: error: ‘struct Camera’ has no member named ‘drawing_area’
gqcam.c:242: error: ‘struct Camera’ has no member named ‘pixmap’
gqcam.c:242: error: ‘struct Camera’ has no member named ‘drawing_area’
gqcam.c:242: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:242: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:242: error: ‘GDK_RGB_DITHER_NORMAL’ undeclared (first use in this function)
gqcam.c:242: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:242: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:244: error: ‘struct Camera’ has no member named ‘pixmap’
gqcam.c:244: error: ‘struct Camera’ has no member named ‘drawing_area’
gqcam.c:244: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:244: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:244: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:244: error: ‘struct Camera’ has no member named ‘vid_win’
gqcam.c:248: error: ‘struct Camera’ has no member named ‘statusbar’
gqcam.c:250: error: ‘struct Camera’ has no member named ‘fps_avg’
gqcam.c:250: error: ‘struct Camera’ has no member named ‘fps_current’
gqcam.c:251: error: ‘struct Camera’ has no member named ‘statusbar’
gqcam.c:252: error: ‘struct Camera’ has no member named ‘drawing_area’
gqcam.c: In function ‘grab_image’:
gqcam.c:265: error: ‘GdkRectangle’ undeclared (first use in this function)
gqcam.c:265: error: expected ‘;’ before ‘update_rec’
gqcam.c:266: error: ‘GdkEventExpose’ undeclared (first use in this function)
gqcam.c:266: error: ‘event’ undeclared (first use in this function)
gqcam.c:272: error: ‘update_rec’ undeclared (first use in this function)
gqcam.c:274: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:275: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:280: error: ‘struct Camera’ has no member named ‘freeze_mutex’
gqcam.c:280: error: ‘struct Camera’ has no member named ‘iscam_mutex’
gqcam.c:282: error: ‘struct Camera’ has no member named ‘pref_mutex’
gqcam.c:289: error: ‘struct Camera’ has no member named ‘pref_mutex’
gqcam.c:301: error: ‘struct Camera’ has no member named ‘vid_pic’
gqcam.c:316: error: ‘struct Camera’ has no member named ‘img_size’
gqcam.c:316: error: ‘struct Camera’ has no member named ‘rawbuffer’
gqcam.c:316: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:316: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:317: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:318: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:319: error: ‘struct Camera’ has no member named ‘rawbuffer’
gqcam.c:319: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:322: error: ‘struct Camera’ has no member named ‘img_size’
gqcam.c:322: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:322: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:322: error: ‘struct Camera’ has no member named ‘vid_caps’
gqcam.c:325: error: ‘struct Camera’ has no member named ‘img_size’
gqcam.c:325: error: ‘struct Camera’ has no member named ‘rawbuffer’
gqcam.c:325: error: ‘struct Camera’ has no member named ‘rawbuffer’
gqcam.c:326: error: ‘struct Camera’ has no member named ‘img_size’
gqcam.c:326: error: ‘struct Camera’ has no member named ‘rawbuffer’
gqcam.c:326: error: ‘struct Camera’ has no member named ‘img_size’
gqcam.c:326: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:334: error: ‘struct Camera’ has no member named ‘img_size’
gqcam.c:337: error: ‘struct Camera’ has no member named ‘freeze_mutex’
gqcam.c:338: error: ‘struct Camera’ has no member named ‘iscam_mutex’
gqcam.c:345: error: ‘struct Camera’ has no member named ‘timer_struct’
gqcam.c:360: error: ‘struct Camera’ has no member named ‘timer_struct’
gqcam.c:362: error: ‘struct Camera’ has no member named ‘timer_struct’
gqcam.c: At top level:
gqcam.c:369: error: expected ‘)’ before ‘*’ token
gqcam.c: In function ‘increment_second_counter’:
gqcam.c:400: error: ‘struct Camera’ has no member named ‘fps_avg’
gqcam.c:401: error: ‘struct Camera’ has no member named ‘fps_current’
gqcam.c: In function ‘main’:
gqcam.c:411: error: ‘guint’ undeclared (first use in this function)
gqcam.c:411: error: expected ‘;’ before ‘timeoutid’
gqcam.c:469: error: ‘struct Camera’ has no member named ‘devname’
gqcam.c:526: error: ‘struct Camera’ has no member named ‘fps_avg’
gqcam.c:527: error: ‘struct Camera’ has no member named ‘fps_current’
gqcam.c:548: error: ‘struct Camera’ has no member named ‘timeoutid’
gqcam.c:548: error: ‘GtkFunction’ undeclared (first use in this function)
gqcam.c:548: error: expected ‘)’ before ‘next_frame’
gqcam.c:550: error: ‘timeoutid’ undeclared (first use in this function)
gqcam.c:550: error: expected ‘)’ before ‘increment_second_counter’
gqcam.c:561: error: ‘struct Camera’ has no member named ‘freeze_mutex’
gqcam.c:568: error: ‘struct Camera’ has no member named ‘freeze_mutex’
gqcam.c: In function ‘dump_pict’:
gqcam.c:597: error: ‘struct Camera’ has no member named ‘savefile’
gqcam.c:598: error: ‘struct Camera’ has no member named ‘savefileclean’
gqcam.c:614: error: ‘struct Camera’ has no member named ‘vid_pic’
gqcam.c:615: error: ‘struct Camera’ has no member named ‘vid_pic’
gqcam.c:616: error: ‘struct Camera’ has no member named ‘vid_pic’
gqcam.c:621: error: ‘struct Camera’ has no member named ‘pic’
gqcam.c:621: error: ‘struct Camera’ has no member named ‘picbuff’
gqcam.c:626: error: ‘struct Camera’ has no member named ‘save_struct’
gqcam.c:627: error: ‘struct Camera’ has no member named ‘save_struct’
gqcam.c:628: error: ‘struct Camera’ has no member named ‘save_struct’
gqcam.c:632: error: ‘struct Camera’ has no member named ‘save_struct’
gqcam.c:633: error: ‘struct Camera’ has no member named ‘save_struct’
gqcam.c:637: error: ‘struct Camera’ has no member named ‘save_struct’
make: *** [gqcam.o] 오류 1
[root@localhost gqcam-0.9.1]#
본 프로그램 소스를 수정해서
프로그램을 만들어야 하는데요 ...
고수님 도와주세요 ...
댓글 달기