EASYCWMP Porting and configuration notes

Source: Internet
Author: User

EASYCWMP is a protocol similar to SNMP.

1. First look at the software you need to rely on:

curl-7.29.0

easycwmp-1.2.3

json-c-0.11

Libmicroxml-2012-06-11

Libubox-2013-10-19

lua-5.1.4

ubus-2013-08-08

uci-2013-06-11.1

2. Start with this migration

curl-7.29.0

#!/bin/sh. /configure--target=mips-linux             --host=mips-linux             --prefix= $PWD/. /Install

json-c-0.11

#!/bin/Bashprj_path=`pwd' Cross=/opt/toolchain-mips-gcc433/usr/bin/mips-linux- Makedistcleanautoreconf-Iexport CC=${cross}GCCExport CPP=${cross}CPPExport as=${cross}asexport LD=${cross}LDExport AR=${cross}arExport Ranlib=${cross}ranlibexport STRIP=${cross}stripexport Ac_cv_func_malloc_0_nonnull=Yesexport Ac_cv_func_realloc_0_nonnull=Yesexport Ac_cv_have_decl_isinf=Yesexport Ac_cv_have_decl_isnan=Yes#export ldflags+= -LM./configure--disable-dependency-tracking--with-gnu-LD--target=mips-linux--host=mips-linux--prefix=${prj_path}/. /Install

Libmicroxml-2012-06-11

#!/bin/sh. /configure--target=mips-linux             --host=mips-linux             --prefix= $PWD/. /Install

Libubox-2013-10-19

SET (Cmake_system_name Linux) include_directories (${cmake_current_source_dir}/.. /Install/include) link_directories (${cmake_current_source_dir}/. /Install//opt/toolchain/bin/mips-linux-gcc/opt/toolchain/bin/mips-linux-g+ +)
#!/bin/sh-dbuild_lua=off-dcmake_install_prefix= $PWD/.. /Install

uci-2013-06-11.1

SET (Cmake_system_name Linux) include_directories (${cmake_current_source_dir}/. /install/include) link_directories (${cmake_current_source_dir}/. /install/Lib) #SET (Cmake_find_root_path_mode_program never) #SET (Cmake_find_root_path_mode_include only) #SET ( Cmake_find_root_path_mode_library only) Set (CMAKE_C_COMPILER/OPT/TOOLCHAIN/BIN/MIPS-LINUX-GCC) set (CMAKE_CXX_ compiler/opt/toolchain/bin/mips-linux-g++)  
#!/bin/shcmake cmakelists.txt-dbuild_lua=off-dcmake_install_prefix= $PWD/.. /install

ubus-2013-08-08

SET (Cmake_system_name Linux) include_directories (${cmake_current_source_dir}/.. /Install/include) link_directories (${cmake_current_source_dir}/. /Install//opt/toolchain/bin/mips-linux-gcc/opt/toolchain/bin/mips-linux-g+ +)
#!/bin/sh-dbuild_lua=off-dcmake_install_prefix= $PWD/.. /Install

easycwmp-1.2.3

#!/bin/SH./configure--target=mips-Linux--host=mips-Linux--prefix= $PWD/.. /InstallLibcurl_cflags="-i$pwd/. /install/include"Libcurl_libs="-l$pwd/. /install/lib-lcurl"Microxml_cflags="-i$pwd/. /install/include"Microxml_libs="-l$pwd/. /install/lib-lmicroxml-lpthread"CFLAGS="-i$pwd/. /install/include"Ldflags="-l$pwd/. /install/lib"LIBS="-ljson-c"

The configuration file only needs to modify the server's address and port

Last program run

    UBUSD &    -b-f &

EASYCWMP Porting and configuration notes

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.