>> Delete No. 1199 article
No. Cygwin/xfree 에서 gtk+ 를 컴파일 하다!

등록 2001-04-28 22:07:00     조회 4
이름 이인호    

		Compiling Gtk+, Glib on Cygwin/xfree86 and compile applications using gtk+ and glib
Inho (chajath at hanmail.net)
  get the latest sources of glib, gtk+ and gnotepad+
 unzip into /usr/src under your cygwin directory.
 run cygwin and compile them as if you were using Linux.
 If you have difficulties during compiling glib, try this trick :
 glib-1.2.10gstrfuncs.c
 in line 704
 substitute
 #ifdef HAVE_STRSIGNAL
  extern char *strsignal (int sig);
  return strsignal (signum);//
#elsif NO_SYS_SIGLIST
 with
 //#ifdef HAVE_STRSIGNAL
//  extern char *strsignal (int sig);
//  return strsignal (signum);
#ifdef NO_SYS_SIGLIST
 If you see "Can't access libX11.dll" or something like that during configuring gnotepad+, try this :
 in Command box.
 cd c:cygwin
 set PATH=%PATH%;c:cygwinusrx11r6in
cygwin
 If you have a message like "more than two main() functions..." try this trick :
 in gnotepad+/src/Makefile
 substitute
GTK_LIBS = -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lXext -lX11 -lm
with
GTK_LIBS = -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lXext -lX11 #-lm
 finally, if you see a message saying "values.h is missing", then try :
touch /usr/include/values.h
chmod 644 /usr/include/values.h
 ---
 run xwindow and run "gnp" and see gnotepad+ running!
soon we will see gnome-panel running :-)
 <img src="http://lightning.prohosting.com/~l2i1h5/gtkonxfree1.jpg">
 --
-- inho(chajath at hanmail.net). copy this document freely but quote me please :-)!
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved