How to build jansson using premake?

161 views Asked by At

I am trying to build jansson C library using premake.

The designers of the library require us to:

  • ./configure
  • make
  • make install

the above steps generates jansson_config.h that is needed for the build.

What I want to do is:

  • ./configure
  • premake4 gmake
  • make

What happens when I do that is that the build fails saying that jansson_config.h is missing.

How would I be able to achieve what I want?

1

There are 1 answers

0
Petri Lehtinen On BEST ANSWER

Building with other build systems than those directly supported by Jansson is documented here: https://jansson.readthedocs.org/en/2.7/gettingstarted.html#other-systems

Basically, you just take src/jansson_config.h.in, copy it to src/jansson_config.h and edit it, replacing all @var@ placeholders to match your target system.