please help on building Jansson in windows environment

557 views
Skip to first unread message

Jici Gao

unread,
Jul 21, 2014, 6:22:15 PM7/21/14
to jansso...@googlegroups.com
Hi

I am trying to compile jansson (latest 2.7 via git clone) under windows environment, here is what I have tried:

1) I am using MinGW compiler on windows
2) also using cmake : cmake -G “MinGW Makefiles” -DCMAKE_C_COMPILER=gcc ../jansson
3) everything goes well, however it does not generate libjansson.dll which I am expecting, but only libjansson.a 

Anything I missed?

thanks in advance!

J

Petri Lehtinen

unread,
Jul 22, 2014, 2:42:53 AM7/22/14
to jansso...@googlegroups.com
You need -DJANSSON_BUILD_SHARED_LIBS=1, see:

https://jansson.readthedocs.org/en/2.6/gettingstarted.html#shared-library

Petri

Jici Gao

unread,
Jul 23, 2014, 12:58:50 PM7/23/14
to jansso...@googlegroups.com
thanks! it works now.
Reply all
Reply to author
Forward
0 new messages