User forums > Help

include file <gtk/gtk.h> not found un ubuntu 14.04 while compiling Code::Blocks

(1/2) > >>

eckard_klotz:
Hello everybody.

Currently I try to update my Code::Blocks installation on my Ubuntu 14.04 with the current svn content. Thus I transferred my fresh synchronized svn trunk folder to my Ubuntu computer and loaded the C::B workspace "CodeBlocks-unix.workspace" in the existing C::B release 13.12 to build the binaries of the whole workspace like I know it under Windows.

Now I get an error that tells me that the header gtk/gtk.h will not be found while building the target src of the project Code::Blocks wx2.8.x - Unix. Clicking on the error-message shows me that the associated include expects a  header known by the compiler since it is set in <> and not in "". I already checked if a gtk installation is available like told in the wiki and I found under "user/lib" the file "libgtk-x11-2.0.so.0" and "libgtk-x11-2.0.so.0.2400.23". But in the folder "user/include" there is no sub-folder gtk therefore in the folder "user/include/wx-28.1/wx" I can see one sub-folder gtk but without a file gtk.h.

Do I have to install an extra gtk package? Or do I have to adjust an additional search path for the compiler?

Best regards,
                      Eckard.

oBFusCATed:
Yes, you need the dev or devel packaged.

If you're not going to develop cb, it is better to make yourself binary packaged using some debian command.

stahta01:
Do you have the GTK dev files installed? (Guess of a Windows Programmer).
Note: You likely will also need the wxGTK dev files installed as told in the Wiki link below.

http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks#Ubuntu

Edit: I echo the suggestion from oBFusCATed if you are not going to develop changes to CB I suggest trying to install a binary installation instead of building it yourself. Note: if you plan to use wxGTK version of wxWidgets in your programming I would still suggest building CB yourself; but, if NOT I see no reason not to try the faster Binary Build of a CB release or Nightly.

Tim S.

eckard_klotz:
Hello oBFusCATed and stahta01.

Thanks for your reply.

The reason why I was asking how to build was more for interest. May be you remember that we discussed some weeks ago my proposal to extend the symbol-browser with something like virtual folders and since I'm already able to build C::B on windows I thought it would be a good idea to learn how to do it on Ubuntu also.

Furthermore for my Moritz project I'm currently developing a GUI wizard that's using on Windows the same wxWidgets DLL you use. Thus I assume I will have the same problem there once I want to compile it for linux.

How ever, thanks for the link to the wiki. More or less I'm was able to manage the preparing work like installing the tools and libwxgtk. i hope I was also able to add the debian-project of jens to my apt-source-list (I was not able to add it directly to the list since some access-right problems).

But now my question is what to insert as file-name for "Name_Of_Daily_Build" in: sudo dpkg -i <Name_Of_Daily_Build.deb>

Can you give me an example or tip where to find it ?

Thanks,
             Eckard.

eckard_klotz:
Hello Developers.

After finding the page"http://forums.codeblocks.org/index.php/topic,18421.msg125990.html#msg125990"
I was able to solve my gtk problem just by using the "sudo apt-get install xyz" command while xyz was the gtk library mentioned by the configure command. But I'm only able to run ./configure without parameters with success what means after it I was able to run make and sudo make install.

Now I have on my Ubuntu a Code::Blocks with the revision number 10050 but some plugins are not available for example the spell checking but it was available in the official release. Furthermore I'm not able to adjust the compiler-flags (right-click is also not working).

I assume that some other libraries are still not installed. If I run ./configure with the parameter set given by dmoore I get the error
--- Quote ---Package requirements (hunspell) were not met:

No package 'hunspell' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix

Alternatively, you may set the environment variables HUNSPELL_CFLAGS and HUNSPELL_LIBS to avoid the need to call pkg-config.
see the pkg-config man-page for more details.
 
--- End quote ---


I tried the command "sudo apt-get install hunspell" in the hope to get a standard installation but than I get the information that hunspell is already installed in the newest version. So what version do I have to install or how do I have to set the environment-variables mentioned above ?

Thanks,
             Eckard.

Navigation

[0] Message Index

[#] Next page

Go to full version