User forums > Using Code::Blocks

Need help with code::blocks and gtk

<< < (3/3)

ollydbg:
c - How to install gtk development dependencies on Ubuntu? - Stack Overflow - https://stackoverflow.com/questions/15390181/how-to-install-gtk-development-dependencies-on-ubuntu This link may help you.

Jenna:
If you use a wizard-created project, please check the compiler and linker settings:
"Build options -> [your project] -> Compiler settings -> Other compiler settings" and
"Build options -> [your project] -> Linker settings -> Other linker options".
Both will refer to gtk+2.0 pkg-config files, but Debian based  distros (most others nowadays also) use gtk3 as default.
So you have to fix these entries to point to the correct gtk-devel files.
It should be enough to change the "2" to a "3".
You can check it on a console.
You might need to close and reopen C::B to make this be recognized.

Jenna:

--- Quote from: nikel on July 11, 2017, 05:59:49 pm ---Thanks for the quick reply. No I don't think so. I just tried


--- Code: ---sudo apt-get install gtk-devel
--- End code ---

but I got error:


--- Quote ---E: Unable to locate package gtk-devel
--- End quote ---

--- End quote ---
And the package is called "libgtk-3-dev" or "libgtk2.0-dev" if you want gtk2.

Navigation

[0] Message Index

[*] Previous page

Go to full version