Author Topic: glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory  (Read 4990 times)

Nasheayahu

  • Guest
Hi,

I'm new to using the IDE and having trouble during build to find this include header and I assume adding them to the search path would solved the problem.

I did a fine and added these paths to the projects Build Option / Seach Directories:
Code
[nasheayahu@Qudahsh-ManjLap ~]$ find /usr -name glibmm.h -type f -print
/usr/include/glibmm-2.4/glibmm.h
[nasheayahu@Qudahsh-ManjLap ~]$ find /usr -name glibmmconfig.h -type f -print
/usr/lib/glibmm-2.4/include/glibmmconfig.h
[nasheayahu@Qudahsh-ManjLap ~]$ find /usr -name gtkmm.h -type f -print
find: ‘/usr/lib/firmware/b43’: Permission denied
/usr/include/gtkmm-2.4/gtkmm.h
/usr/include/gtkmm-3.0/gtkmm.h

Program:


Build Output:


Build Option / Search Directories:


What do I need to do to correct this error?

Thanks!...
« Last Edit: November 07, 2016, 11:08:36 pm by Nasheayahu »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory
« Reply #1 on: November 08, 2016, 03:08:59 am »
Post a build log in code tags.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Please read this CB FAQ http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

NOTE: Changing the project settings is the better why than changing the Global Compiler settings.
EDIT: From the image posted I think you did it correctly in the CB Project settings.
EDIT2: Your problem looks like it might be a Linux programming question instead of a CB Question; but, I am far from being an Linux expert. Please read the rules and decide yourself if it is a valid question for this site.
http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.


« Last Edit: November 08, 2016, 03:13:50 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory
« Reply #2 on: November 08, 2016, 06:10:00 am »
On linux it's almost always better to use pkg-config, than to add the includes manually.

You can add the appropriate lines for compiler (and linker) to the other-options tabs (in backticks).

And is there a special cause, you added it for the debug-target?
Wouldn't it be better to use it for the whole project, so you do not need to add it twice (which is harder to maintain and probably error-prone) ?