[Çözüldü] Gtk# kurarken(derlerken) "glib.h" hatası alıyorum

Başlatan Zerpherus, 29 Ağustos 2014 - 00:06:40

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Zerpherus

configure dosyasını çalıştırdım, sorunsuz çalıştı;ardından make yaptım ve şu çıktıyı aldım:


Making install in sources
make[1]:`/home/alperen/gtk-sharp-2.12.10/sources' dizinine giriliyor
make[2]:`/home/alperen/gtk-sharp-2.12.10/sources' dizinine giriliyor
make[2]: `install-exec-am' için hiçbir şey yapılmadı.
make[2]: `install-data-am' için hiçbir şey yapılmadı.
make[2]: `/home/alperen/gtk-sharp-2.12.10/sources' dizininden çıkılıyor
make[1]: `/home/alperen/gtk-sharp-2.12.10/sources' dizininden çıkılıyor
Making install in generator
make[1]:`/home/alperen/gtk-sharp-2.12.10/generator' dizinine giriliyor
make[2]:`/home/alperen/gtk-sharp-2.12.10/generator' dizinine giriliyor
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'gapi2-codegen' '/usr/local/bin/gapi2-codegen'
test -z "/usr/local/lib/gtk-sharp-2.0" || /bin/mkdir -p "/usr/local/lib/gtk-sharp-2.0"
/usr/bin/install -c -m 644 'gapi_codegen.exe' '/usr/local/lib/gtk-sharp-2.0/gapi_codegen.exe'
make[2]: `/home/alperen/gtk-sharp-2.12.10/generator' dizininden çıkılıyor
make[1]: `/home/alperen/gtk-sharp-2.12.10/generator' dizininden çıkılıyor
Making install in parser
make[1]:`/home/alperen/gtk-sharp-2.12.10/parser' dizinine giriliyor
make[2]:`/home/alperen/gtk-sharp-2.12.10/parser' dizinine giriliyor
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'gapi2-fixup' '/usr/local/bin/gapi2-fixup'
/usr/bin/install -c 'gapi2-parser' '/usr/local/bin/gapi2-parser'
test -z "/usr/local/lib/gtk-sharp-2.0" || /bin/mkdir -p "/usr/local/lib/gtk-sharp-2.0"
/usr/bin/install -c -m 644 'gapi-fixup.exe' '/usr/local/lib/gtk-sharp-2.0/gapi-fixup.exe'
/usr/bin/install -c -m 644 'gapi-parser.exe' '/usr/local/lib/gtk-sharp-2.0/gapi-parser.exe'
test -z "/usr/local/lib/gtk-sharp-2.0" || /bin/mkdir -p "/usr/local/lib/gtk-sharp-2.0"
/usr/bin/install -c 'gapi_pp.pl' '/usr/local/lib/gtk-sharp-2.0/gapi_pp.pl'
/usr/bin/install -c 'gapi2xml.pl' '/usr/local/lib/gtk-sharp-2.0/gapi2xml.pl'
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'gapi-2.0.pc' '/usr/local/lib/pkgconfig/gapi-2.0.pc'
make[2]: `/home/alperen/gtk-sharp-2.12.10/parser' dizininden çıkılıyor
make[1]: `/home/alperen/gtk-sharp-2.12.10/parser' dizininden çıkılıyor
Making install in glib
make[1]:`/home/alperen/gtk-sharp-2.12.10/glib' dizinine giriliyor
Making install in glue
make[2]:`/home/alperen/gtk-sharp-2.12.10/glib/glue' dizinine giriliyor
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGTK_SHARP_2_10 -DGTK_SHARP_2_12 -I../..    -g -O2 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT list.lo -MD -MP -MF .deps/list.Tpo -c -o list.lo list.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGTK_SHARP_2_10 -DGTK_SHARP_2_12 -I../.. -g -O2 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c  -fPIC -DPIC -o .libs/list.o
In file included from list.c:23:0:
/usr/include/glib-2.0/glib/glist.h:29:2: error: #error "Only <glib.h> can be included directly."
#error "Only <glib.h> can be included directly."
  ^
In file included from /usr/include/glib-2.0/glib/glist.h:32:0,
                 from list.c:23:
/usr/include/glib-2.0/glib/gmem.h:29:2: error: #error "Only <glib.h> can be included directly."
#error "Only <glib.h> can be included directly."
  ^
In file included from /usr/include/glib-2.0/glib/gmem.h:32:0,
                 from /usr/include/glib-2.0/glib/glist.h:32,
                 from list.c:23:
/usr/include/glib-2.0/glib/gtypes.h:29:2: error: #error "Only <glib.h> can be included directly."
#error "Only <glib.h> can be included directly."
  ^
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/gmem.h:32,
                 from /usr/include/glib-2.0/glib/glist.h:32,
                 from list.c:23:
/usr/include/glib-2.0/glib/gmacros.h:33:2: error: #error "Only <glib.h> can be included directly."
#error "Only <glib.h> can be included directly."
  ^
In file included from /usr/include/glib-2.0/glib/gtypes.h:34:0,
                 from /usr/include/glib-2.0/glib/gmem.h:32,
                 from /usr/include/glib-2.0/glib/glist.h:32,
                 from list.c:23:
/usr/include/glib-2.0/glib/gversionmacros.h:29:2: error: #error "Only <glib.h> can be included directly."
#error "Only <glib.h> can be included directly."
  ^
In file included from /usr/include/glib-2.0/glib/glist.h:33:0,
                 from list.c:23:
/usr/include/glib-2.0/glib/gnode.h:29:2: error: #error "Only <glib.h> can be included directly."
#error "Only <glib.h> can be included directly."
  ^
make[2]: *** [list.lo] Hata 1
make[2]: `/home/alperen/gtk-sharp-2.12.10/glib/glue' dizininden çıkılıyor
make[1]: *** [install-recursive] Hata 1
make[1]: `/home/alperen/gtk-sharp-2.12.10/glib' dizininden çıkılıyor
make: *** [install-recursive] Hata 1


Only <glib.h> can be included directly

Ardından "make install" yapabiliyorum tabi de,kurulmuyor haliyle

if

Ne derliyorsanız artık, kaynak dosyasındaki glist.h, gmem.h, gtypes.h, gmacros.h, gversionmacros.h ve gnode.h yerine #include <glib.h> eklemeniz gerekmiş[1]. Ya da şöyle[2] bir şey.

[1] https://stackoverflow.com/questions/20119450/how-to-fix-error-only-glib-h-can-be-included-directly
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515722

Zerpherus

Alıntı yapılan: if - 29 Ağustos 2014 - 22:56:05
Ne derliyorsanız artık, kaynak dosyasındaki glist.h, gmem.h, gtypes.h, gmacros.h, gversionmacros.h ve gnode.h yerine #include <glib.h> eklemeniz gerekmiş[1]. Ya da şöyle[2] bir şey.

[1] https://stackoverflow.com/questions/20119450/how-to-fix-error-only-glib-h-can-be-included-directly
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515722

Onu denedim,olmadı neyse ki APT deposundan bulabildim,yani sorun bir bakıma çözüldü.

if