Hello Abalieno,

On Wed, 18 Dec 2013 14:34:25 +0100, Abalieno wrote:

> I was trying to compile this thing, following a guide:
> http://forums.te4.org/viewtopic.php?p=156652#p156652
>
> But cmake, beside not being able to find even SDL, gives me an error:
> -- checking for module 'jansson'
> -- package 'jansson' not found

[snip/]

> I imagine that whatever thing cmake is trying to use in order to find
> jansson isn't properly working.
>
> I have copied jansson.a to the mingw /lib dir, and
> msys/local/lib/pkgconfig has a jansson.pc file in there
>
> So, what else?

1) Run `pkg-config --debug | grep Scanning' to find the directories
that are searched for .pc files. Make sure that jansson.pc exists
in one of the search directories, or you can set the
PKG_CONFIG_PATH environment variable to include the directory
where you put it. By default, pkg-config searches ../lib/pkgconfig
relative to pkg-config.exe, so unless pkg-config is in msys/local/bin,
it is not likely to find jansson.pc where you put it.

2) Run `pkg-config --cflags jansson' and `pkg-config --libs jansson'
to find out where jansson's header files and  libraries are supposed
to be (according to jansson.pc), and make sure that the files exist.

Regards,
John Brown.