Code::Blocks Forums

User forums => Help => Topic started by: Nasheayahu on November 07, 2016, 11:01:58 pm

Title: glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory
Post by: Nasheayahu on November 07, 2016, 11:01:58 pm
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:
(https://s5.postimg.org/sbeun70dj/Screenshot_from_2016_11_07_14_41_11.png)

Build Output:
(https://s5.postimg.org/bmdera3s7/Screenshot_from_2016_11_07_15_04_52.png)

Build Option / Search Directories:
(https://s5.postimg.org/kg4b8dqqv/Screenshot_from_2016_11_07_14_41_41.png)

What do I need to do to correct this error?

Thanks!...
Title: Re: glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory
Post by: stahta01 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 (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 (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 (http://forums.codeblocks.org/index.php/topic,9996.0.html)

Tim S.


Title: Re: glibmm.h|83|fatal error: glibmmconfig.h: No such file or directory
Post by: Jenna 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) ?