[sysrepo-announce] sysrepo cross compile
Michal Vaško
mvasko at cesnet.cz
Mon Oct 14 05:54:20 UTC 2019
Hi Liu,
firstly, you have written into the wrong mailing list, use sysrepo-devel for development-related queries.
Now, you need not worry about libredblack because libavl was obviously found and you only need one of them. As for protobuf-c, try using "-DPROTOBUF-C_LIBRARY=/liu/protobuf-c_arm/lib/libprotobuf-c.so" instead of your "-DProtobuf-c=...".
Regards,
Michal
On Monday, October 14, 2019 05:37 CEST, "rui_liu at sunwave.com.cn" <rui_liu at sunwave.com.cn> wrote:
> Hi,
> I need to cross compile sysrepo to embedded device which bases on ARM.
> How to configure the cmake parameter to make the corresponding .so files take effect? Like yang, protobuf-c, and redblack?
>
> I used cmake command as below:
> cmake -DCMAKE_INSTALL_PREFIX=/liu/sysrepo_arm/sysrepo_second -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_C_COMPILER=arm-arago-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=arm-arago-linux-gnueabi-g++ -DLIBYANG_INCLUDE_DIRS=/liu/libyang_arm/include -DLIBYANG_LIBRARIES="/liu/libyang_arm/lib/libyang.so"
> -DCALL_SYSREPOCTL_BIN=/liu/sysrepo_arm/sysrepo_first/bin/sysrepoctl -DCALL_SYSREPOCFG_BIN=/liu/sysrepo_arm/sysrepo_first/bin/sysrepocfg
> -DREDBLACK_INCLUDE_DIR=/liu/libredblack_arm/include -DREDBLACK_LIBRARY="/liu/libredblack_arm/lib/libredblack.so" -DPROTOBUF-C_INCLUDE_DIR=/liu/protobuf-c_arm/include -DProtobuf-c="/liu/protobuf-c_arm/lib/libprotobuf-c.so"
>
> But the yang protobuf-c and redblack are all not found in the right dir:
> Preparing systemwide build of sysrepo v. 0.7.8
> -- sysrepo repository location: /etc/sysrepo
> -- Could NOT find ev (missing: EV_LIBRARY)
> -- Found yang: /usr/local/lib/libyang.so
> -- Could NOT find protobuf-c (missing: PROTOBUF-C_LIBRARY)
> -- Found avl: /usr/lib/libavl.so
> -- Could NOT find redblack (missing: REDBLACK_LIBRARY)
> -- libavl will be used for binary tree manipulations.
> -- Looking for stdatomic.h
>
> Can you help to solve this issue? Thanks.
>
> Best regards,
> Liu Rui.
>
>
>
>
>
More information about the sysrepo-announce
mailing list