Jump to content
  • Advertisement
Sign in to follow this  
DominicHughes

gtk+ not compiling? / C:\gtk+\include\glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory

This topic is 2381 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello on compiling with g++ the most basic pile of crap gtk+ 2.0 application results in this pile of crap error :

using windows 7 32bit and mingw32



In file included from C:\gtk+\include\glib-2.0/glib/galloca.h:34:0,
from C:\gtk+\include\glib-2.0/glib.h:32,
from C:\gtk+\include\glib-2.0/gobject/gbinding.h:30,
from C:\gtk+\include\glib-2.0/glib-object.h:25,
from C:\gtk+\include\glib-2.0/gio/gioenums.h:30,
from C:\gtk+\include\glib-2.0/gio/giotypes.h:30,
from C:\gtk+\include\glib-2.0/gio/gio.h:28,
from C:\gtk+\include\gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from C:\gtk+\include\gtk-2.0/gdk/gdk.h:32,
from C:\gtk+\include\gtk-2.0/gtk/gtk.h:32,
from main.cpp:1:
C:\gtk+\include\glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such
file or directory


I do not know why this happens apart from I might be missing a header path or lib path somewhere? could someone calarify.

anyways here is my makefile :


all: app

app: main.cpp
mingw32-g++ main.cpp -o app -lmingw32 -lwinmm -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lGLU32 -lboost_system-mgw46-s-1_49 -lboost_filesystem-mgw46-mt-sd-1_49 -lopengl32 -I"C:\\boost_1_49_0" -I"C:\gtk+\include\glib-2.0" -I"C:\gtk+\include\gio-win32-2.0" -I"C:\gtk+\include\gtk-2.0" -I"C:\\SDL-1.2.14\\include" -I"C:\\MinGW\include\\GL" -L"C:\SDL-1.2.14\lib" -L"C:\\boost_1_49_0\\stage\\lib" -L"C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib"


I downloaded the gtk+ all in one bundle on there website if you were wondering.

Thanks in Advance. Edited by DarkHorseKnight

Share this post


Link to post
Share on other sites
Advertisement
Stating the obvious, but have you tried just searching for the file in explorer?

If Windows is anything like Linux, then it won't be in any of the directories you're adding to the include file search path and will probably be somewhere like C:\gtk+\lib\glib-2.0\include\. On Linux that file lives at /usr/lib/glib-2.0/include/.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!