Just add the "pkg-config" line to the other linker (and probably compiler)-options, just as you do it on the command-line, but surround it with backticks ("`"), e.g.
`pkg-config glib-2.0 --libs`
Obviously situation normal - it is my fault I dare to ask here,
Obviously it is your fault, because you have the problem ;)
So now lets give some useful comment:
NOTE: i am not a advanced user of pkg-config...
pkg-config has two important command line options:
and
--cflags will return all needed compiler flags like include paths and defines.
you have to add this command in the compiler options
Project->Build options
On the left side select your target, or your project the project name if you want to apply the option globally
then go to: compiler settings->Other compiler options. There you add the appropriate pkg-config command:
`pkg-config opencv --cflags`
Now we need to apply the --libs flag. --libs will return the library paths and the libraries needed. For this go to the "linker settings" tab and under "other linker options" add
`pkg-config opencv --libs`
Now confirm this dialog with OK. You may have to restart codeblocks, because c::b cashes all backtick results for speed up reasons and only loads them on start up...
If you still have problems check if pkg-config opencv --cflags and pkg-config opencv --libs gives the correct results on your command line program.
If it still don't work you want future help from this forum read this and follow the steps described, especially the build log thing, because we are not able to help you with this few information you provided until now
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
OK, I have added it to linker and did not see any progress messages indicating it was used.
In theory it should not be used in compiler - it is a liker job to get the libraries.
But I'll give it a shot.
this does not add any usefull information. The build log on the other side tells us nearly all we need..
All this is no magic and can easily be found with google...
I hope this helps
greetings