EasyCwmp - easycwmp
View Issue Details
0000009easycwmp[All Projects] Helppublic2014-09-16 17:092014-09-24 10:01
CwmpUser 
mohamed.kallel 
lowminoralways
resolvedfixed 
OpenWRTLinux Ubuntu 14.04 TLS
0000009: Unable to install easycwmp
I 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.
No tags attached.
png easycwmp.png (205,383) 2014-09-16 17:09
http://support.easycwmp.org/file_download.php?file_id=13&type=bug
png

png 2.png (121,240) 2014-09-16 17:10
http://support.easycwmp.org/file_download.php?file_id=14&type=bug
png
Issue History
2014-09-16 17:09CwmpUserNew Issue
2014-09-16 17:09CwmpUserFile Added: easycwmp.png
2014-09-16 17:10CwmpUserFile Added: 2.png
2014-09-16 18:12AnisNote Added: 0000038
2014-09-16 18:13AnisNote Edited: 0000038bug_revision_view_page.php?bugnote_id=38#r43
2014-09-16 18:46AnisNote Edited: 0000038bug_revision_view_page.php?bugnote_id=38#r44
2014-09-16 18:47AnisNote Edited: 0000038bug_revision_view_page.php?bugnote_id=38#r45
2014-09-16 20:08CwmpUserNote Added: 0000039
2014-09-16 21:30CwmpUserNote Added: 0000040
2014-09-17 16:45AnisNote Added: 0000041
2014-09-17 17:06AnisNote Edited: 0000041bug_revision_view_page.php?bugnote_id=41#r47
2014-09-17 17:35AnisNote Edited: 0000041bug_revision_view_page.php?bugnote_id=41#r48
2014-09-18 01:20CwmpUserNote Added: 0000042
2014-09-18 17:36administratorNote Added: 0000043
2014-09-18 17:37administratorNote Deleted: 0000043
2014-09-18 17:38AnisNote Added: 0000044
2014-09-18 18:33mohamed.kallelNote Edited: 0000044bug_revision_view_page.php?bugnote_id=44#r50
2014-09-23 10:52mohamed.kallelPrioritynormal => low
2014-09-23 10:52mohamed.kallelSeveritycrash => minor
2014-09-24 10:01mohamed.kallelStatusnew => resolved
2014-09-24 10:01mohamed.kallelResolutionopen => fixed
2014-09-24 10:01mohamed.kallelAssigned To => mohamed.kallel

Notes
(0000038)
Anis   
2014-09-16 18:12   
(edited on: 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

(0000039)
CwmpUser   
2014-09-16 20:08   
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.
(0000040)
CwmpUser   
2014-09-16 21:30   
Also, in my second pic, it shows make[2] -C package/libs/libjson-c compile , which means it do build the json-c ?
(0000041)
Anis   
2014-09-17 16:45   
(edited on: 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.

(0000042)
CwmpUser   
2014-09-18 01:20   
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!
(0000044)
Anis   
2014-09-18 17:38   
(edited on: 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.