Author Topic: Problems compiling C::B source code  (Read 143 times)

Offline Alfred96

  • Single posting newcomer
  • *
  • Posts: 1
Problems compiling C::B source code
« on: July 30, 2018, 03:21:51 pm »

Posts: 3
View Profile  Email  Personal Message (Offline)

Problems compiling C::B source code
on: October 19, 2011, 07:48:29 pm
Quote
Hello, I got the latest svn code, and installed all of the dev packages I should need to build codeblocks. I've run bootstrap, ./configure, and make. I'm getting an error

notebookstyles.cpp:19:25: fatal error: gtk/gtk.h: No such file or directory

I have in my usr/include gtk-2.0

Sorry if this is easy to fix (I'm new at developing in Linux), but how do I get C::B to compile. Thanks for any help.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6280
    • My Best Post
Re: Problems compiling C::B source code
« Reply #1 on: July 30, 2018, 04:17:38 pm »
You likely need the gtk devel package installed.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10967
    • Travis build status
Re: Problems compiling C::B source code
« Reply #2 on: July 30, 2018, 05:42:52 pm »
Does "pkg-config --cflags gtk+-2.0" return valid result?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]