EASYCWMP compilation on a PC

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.