EASYCWMP belongs to the third party program, I encountered a few problems in the compilation, I have been troubled myself for a long time, but also blame their own analysis of the heart, today finally solved, to do a summary
I. Specific installation procedures Please read the Readme installation documentation
Two. The first question
Checking for microxml ... configure:error:Package requirements (microxml) were not met:
No package ' microxml ' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Installed software in a non-standard prefix.
Alternatively, may set the environment variables Microxml_cflags
and microxml_libs to avoid the need-to-call pkg-config.
See the Pkg-config Mans page for more details.
Microxml is installed before the easycwmp of the Readme, no problem, can be ruled out.
The role of Pkg-config is to check whether the various libraries and files installed by the program are installed, the path of each library to the end of the. PC and find the microxml.pc file in the same directory as the Microxml, which defines
1 prefix=/usr
2 EXEC_PREFIX=/USR
3 Libdir=${exec_prefix}/lib
4 Includedir=${prefix}/include
5
6 Name:microxml
7 Description:micro XML Library
8 version:1.0
9 Libs:-l${exec_prefix}/lib-lmicroxml-lpthread
Ten Cflags:-i${prefix}/include-d_thread_safe-d_reentrant
Just use./configure--enable-debug--enable-devel--enable-acs=multi--enable-jsonc=1 compile-time system not found
So the path is given on the command line
./configure microxml_cflags= "-i/usr/include/-d_thread_safe-d_reentrant" microxml_libs= "-l/usr/lib-lmicroxml- Lpthread "--enable-debug--enable-devel--enable-acs=multi--enable-jsonc=1
Package requirements (Microxml) were is not met problem solved.
Three./home/weishusheng/cwmp_client/easycwmp1.0.1/bin/. /src/json.c:168:undefined reference to ' Is_error '
The definition of is_error is then found in json-c/bits.h: there is such a definition of # define IS_ERROR (PTR) (ptr = = NULL)
So in JSON.C Riga # define IS_ERROR (PTR) (ptr = = NULL) go in
Problem solving.
Original address: http://www.cnblogs.com/wss-linux/p/4191346.html
EASYCWMP compilation on a PC