voipmonitor / sniffer

VoIPmonitor sniffer sources
228 stars 107 forks source link

Cannot compile sniffer due to missing json.h #1

Closed rgagnon24 closed 10 years ago

rgagnon24 commented 10 years ago

On CentOS 6.5, there is no json/json.h available in any package, and README does not indicate where to find it, or which-if any third party package to install to satisfy dependency.

make

g++ -c tools.cpp -g3 -Wall -march=native -mtune=native -O2 -DQUEUE_NONBLOCK2 -I/usr/local/include -I/usr/include/mysql/ -Wall -I jitterbuffer/ -L/usr/local/lib/mysql -L/usr/lib/mysql -L/usr/local/lib/ -L/usr/lib64/mysql -fPIC -g3 -O2 tools.cpp:28:23: error: json/json.h: No such file or directory

rgagnon24 commented 10 years ago

Through some investigating, it appears that json-c is the missing package.

Two things:

voipmonitor commented 10 years ago

Hi,

the develop git branch already checks for json and libssh new libraries and suggests how to install it.

Martin

2014-05-28 0:53 GMT+02:00 Rob Gagnon notifications@github.com:

Through some investigating, it appears that json-c is the missing package.

Two things:

  • The configure script should check for the presence of the library as it does others
  • Anyone looking for a solution to this before this is fixed in code, can manually install the "json-c-devel" RPM from EPEL.

— Reply to this email directly or view it on GitHubhttps://github.com/voipmonitor/sniffer/issues/1#issuecomment-44345741 .

Best regards Martin Vit

rgagnon24 commented 10 years ago

OK. Good to know. Thanks

mr-bo-jangles commented 9 years ago

This doesn't help at all. json-c is packaged on archlinux as upstream suggests in json-c/json.h directory instead of json/json.h

voipmonitor commented 9 years ago

any suggestion how to fix this?

2014-10-14 14:26 GMT+02:00 mr-bo-jangles notifications@github.com:

This doesn't help at all. json-c is packaged on archlinux as upstream suggests in json-c/json.h directory instead of json/json.h

— Reply to this email directly or view it on GitHub https://github.com/voipmonitor/sniffer/issues/1#issuecomment-59034308.

Best regards Martin Vit

mr-bo-jangles commented 9 years ago

Well, it looks like you need configure to check for either case and then update the includes in the source to match

voipmonitor commented 9 years ago

Do not know how to do it yet :)