Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: diehard2 on October 19, 2011, 07:48:29 pm

Title: Problems compiling C::B source code
Post by: diehard2 on October 19, 2011, 07:48:29 pm
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.
Title: Re: Problems compiling C::B source code
Post by: Jenna on October 19, 2011, 08:11:21 pm
Your system might miss the
Code
pkg-config
package.
If that's the case you should get an error if you run ./configure.
I will correct it this eveneing.

If you have pkg-config installed, something different went wrong.
Title: Re: Problems compiling C::B source code
Post by: diehard2 on October 19, 2011, 08:38:40 pm
Hi, I have the latest version of pkg-config. I'm running ubuntu 11.1. I attached the output of configure. Thanks for the help.

Title: Re: Problems compiling C::B source code
Post by: MortenMacFly on October 19, 2011, 08:43:54 pm
Jens, in this log I see this entry:
checking for wxWidgets version >= 2.8.0... yes (version 2.8.11)
I believe this is not good. IMHO C::B needs at least wxWidgets 2.8.9 (IIRC) to compile / work, it might even be 2.8.10. You might check this out, too.
Title: Re: Problems compiling C::B source code
Post by: Jenna on October 19, 2011, 08:59:24 pm
Jens, in this log I see this entry:
checking for wxWidgets version >= 2.8.0... yes (version 2.8.11)
I believe this is not good. IMHO C::B needs at least wxWidgets 2.8.9 (IIRC) to compile / work, it might even be 2.8.10. You might check this out, too.
I will do, and I know the cause for the error.
A fix comes soon.
Title: Re: Problems compiling C::B source code
Post by: Jenna on October 20, 2011, 12:32:18 am
Should be fixed in svn r7504.

wxWidgets now has to be at least 2.8.8.

The other issue should be fixed also.
the use of gtk-notebook can be disabled,  if ./configure is run with --enable-gtk-notebook=no or --disable-getk-notebook (see ./configure --help).

Don't forget to run ./bootstrap and ./configure again.
Maybe a make clean is also needed, at least src/src/main.o and src/src/notebookstyles.o (if they exist) should be removed.
Title: Re: Problems compiling C::B source code
Post by: diehard2 on October 20, 2011, 11:39:11 pm
Thanks, its fixed