EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000009easycwmp[All Projects] Helppublic2014-09-16 17:092014-09-24 10:01
ReporterCwmpUser 
Assigned Tomohamed.kallel 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
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.
Attached Filespng file icon easycwmp.png [^] (205,383 bytes) 2014-09-16 17:09


png file icon 2.png [^] (121,240 bytes) 2014-09-16 17:10

- Relationships

-  Notes
(0000038)
Anis (developer)
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 (reporter)
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 (reporter)
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 (developer)
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 (reporter)
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 (developer)
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.


- 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 View Revisions
2014-09-16 18:46 Anis Note Edited: 0000038 View Revisions
2014-09-16 18:47 Anis Note Edited: 0000038 View Revisions
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 View Revisions
2014-09-17 17:35 Anis Note Edited: 0000041 View Revisions
2014-09-18 01:20 CwmpUser Note Added: 0000042
2014-09-18 17:36 administrator Note Added: 0000043
2014-09-18 17:37 administrator Note Deleted: 0000043
2014-09-18 17:38 Anis Note Added: 0000044
2014-09-18 18:33 mohamed.kallel Note Edited: 0000044 View Revisions
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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker