User forums > Help
How to compile GTKmm program under Debian?
x153:
Hiho!
I have almost finished C++ basics and I'm heading now to learn some GUI things. I choose to learn some GTK or gtkmm in C++ case. I have installed libgtkmm-3.0-dev package, but sadly C::B is repporting error "<gtk/gtk.h> no such file or directory". What should I do to solve this problem?
Thanks a lot for your help!
oBFusCATed:
Read the FAQ at wiki.codeblocks.org
x153:
That's too general for me :(. I don't know where should look for .h files (my libgtkmm is here: /usr/lib/x86_64-linux-gnu and I pasted that to settings->compiler->search directories) or what else can I do :/.
Could you explain me what to do step-by-step or give some hints which files should I look for and where exacly should I put them (as long as gtkmm is C++ library I think that I should stay with my gnu compiler and add paths to linker only, right?)
If that could help - my searching program can't find gtk.h file.
Jenna:
--- Quote from: x153 on February 04, 2013, 12:52:09 pm ---If that could help - my searching program can't find gtk.h file.
--- End quote ---
If you don't have gtk.h on your system, it can not be found (obviously).
Install the package which includes the gtk.h you need (either gtk2 or gtk3).
It's up to you to find out which package is the correct one.
This website/forum is not dedicated to find out such stuff.
We can help to find the correct place in C::B to put the search path in.
For libraries you should always use pkg-config to set the needed variables or you will fail sooner or later, if a package is updated and some stuff changes.
Searching the forum for pkg-config should (hopefully) guide you to an explananation on how to use it correctly (at least in general, not for each and any special lib/toolkit of course).
x153:
It looks strange for me - I have installed gtkmm-3.0-dev, which should be (as gtkmm tutorial says) enough, but I can't find any gtk.h file.
And I'm a little bit confused - is it easier to use binaries or source than repo~ files?
And, more important, I should worry about IDE when I will be able to find gtk.h file?
Navigation
[0] Message Index
[#] Next page
Go to full version