View Issue Details

IDProjectCategoryView StatusLast Update
0000009easycwmpHelppublic2014-09-24 10:01
ReporterCwmpUser Assigned Tomohamed.kallel  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformOpenWRTOSLinux Ubuntu OS Version14.04 TLS
Summary0000009: Unable to install easycwmp
DescriptionI tried to build easycwmp for a OpenWRT linux as a package. Every dependency is installed, but when I run 'make package/easycwmp/compile', it said json-c/json.h: no such file or directory. I do have json-c in my openwrt. Also I tried to build it on my partner's openwrt linux, the same issue.
TagsNo tags attached.

Activities

CwmpUser

2014-09-16 17:09

reporter  

easycwmp.png (205,383 bytes)   
easycwmp.png (205,383 bytes)   

CwmpUser

2014-09-16 17:10

reporter  

2.png (121,240 bytes)   
2.png (121,240 bytes)   

Anis

2014-09-16 18:12

developer   ~0000038

Last edited: 2014-09-16 18:47

Hello,

you have to compile libjson-c with openwrt way.
In fact you have to go under the package folder and then check out the libjson-c package :
svn co svn://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09/package/libjson-c libjson-c

After that, select libjson-c in the "make menuconfig",and then build the package libjson-c by executing
make package/libjson-c/compile V=s


finally, please check if the libjson-c is compiled on openwrt:

* Check if the libjson-c.so file exist under this path :
"openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/lib

* Check also the folder json-c under this path :
"openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/include

CwmpUser

2014-09-16 20:08

reporter   ~0000039

Thanks! I followed your instruction and found that there is no libjson-c in menuconfig but libjson(script).

Also after I run the make command, there is libjson.so in "openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/lib and json folder in "openwrt-path"/staging_dir/target-{arch}_{uClibc}/usr/include. Besides, in build_dir, there are a folder named json-c-0.9.

CwmpUser

2014-09-16 21:30

reporter   ~0000040

Also, in my second pic, it shows make[2] -C package/libs/libjson-c compile , which means it do build the json-c ?

Anis

2014-09-17 16:45

developer   ~0000041

Last edited: 2014-09-17 17:35

libjson(script) is under "Utilities --->" !

you have to go under "Libraries --->" section after execute "make menuconfig", and then you find libjson-c.

check if libjson-c is selected.

CwmpUser

2014-09-18 01:20

reporter   ~0000042

Got it. I update the Makefile(json version: 0.11), I saw those libjson-c file in those directory but I didn't see the libjson-c in menuconfig. The old version of json is 0.9, which work fine, but generate libjson.so instead of libjson-c.so. So the problem becomes why I cannot see libjson-c in menuconfig. Thanks in advance! This means a lot to me!

Anis

2014-09-18 17:38

developer   ~0000044

Last edited: 2014-09-18 18:33

You should have the libjson-c folder under the package folder("openwrt-path"/package).
In the note 0000038, I explain how to add libjson-c to package.

Please note that libjson-c is standalone lib.

Issue History

Date Modified Username Field Change
2014-09-16 17:09 CwmpUser New Issue
2014-09-16 17:09 CwmpUser File Added: easycwmp.png
2014-09-16 17:10 CwmpUser File Added: 2.png
2014-09-16 18:12 Anis Note Added: 0000038
2014-09-16 18:13 Anis Note Edited: 0000038
2014-09-16 18:46 Anis Note Edited: 0000038
2014-09-16 18:47 Anis Note Edited: 0000038
2014-09-16 20:08 CwmpUser Note Added: 0000039
2014-09-16 21:30 CwmpUser Note Added: 0000040
2014-09-17 16:45 Anis Note Added: 0000041
2014-09-17 17:06 Anis Note Edited: 0000041
2014-09-17 17:35 Anis Note Edited: 0000041
2014-09-18 01:20 CwmpUser Note Added: 0000042
2014-09-18 17:38 Anis Note Added: 0000044
2014-09-18 18:33 mohamed.kallel Note Edited: 0000044
2014-09-23 10:52 mohamed.kallel Priority normal => low
2014-09-23 10:52 mohamed.kallel Severity crash => minor
2014-09-24 10:01 mohamed.kallel Status new => resolved
2014-09-24 10:01 mohamed.kallel Resolution open => fixed
2014-09-24 10:01 mohamed.kallel Assigned To => mohamed.kallel