Sign in to follow this  

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 2040 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

[CODE]

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
[/CODE]

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 :

[CODE]
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"
[/CODE]

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
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

This topic is 2040 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this