-
Hello, cool library! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Hi, Once you have called them using the "source" command, you just have to call the : make command. |
Beta Was this translation helpful? Give feedback.
-
In general, I made this makefile, and fixed a couple of errors that are googled during the compilation process, and got my build) include $(TOPDIR)/rules.mk
PKG_NAME:=ocppclient
PKG_VERSION:=06.10.2022
PKG_RELEASE=1
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=drus <[email protected]>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk #If usingcmake, You must add this line
define Package/ocppclient
SECTION:=net
CATEGORY:=ocppclient
DEPENDS:=+kmod-tun +libpthread +librt +libubox +libuci +libstdcpp +libsqlite3 #Add the required dependency library, if you don’t add it, it will compile and report an error
TITLE:=OCPPClient
endef
define Package/ocppclient/extra_provides
echo "/home/d1/IRZ/openwrt-sdk/staging_dir/target-mipsel_24kc_musl/usr/lib/libcrypto.so.1.1"; \
echo "/home/d1/IRZ/openwrt-sdk/staging_dir/target-mipsel_24kc_musl/usr/lib/libssl.so.1.1";
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./SOURCES/* $(PKG_BUILD_DIR)/
endef
define Package/occpclient/description
ocppclient from cmake
endef
define Package/ocppclient/install
$(INSTALL_DIR) $(1)/usr/share/ocppclient
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/bin/native/libopen-ocpp.so $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/bin $(1)/usr/share/ocppclient
$(CP) $(PKG_BUILD_DIR)/schemas $(1)/usr/share/ocppclient
endef
$(eval $(call BuildPackage,ocppclient)) Thank you! You can close the topic) |
Beta Was this translation helpful? Give feedback.
-
Just set the "cross_compiler path" in two CMakeLists.txt, which is located in the [top Directory] and in the [src Directory] . in the src Directory's CMakeLists.txt
|
Beta Was this translation helpful? Give feedback.
In general, I made this makefile, and fixed a couple of errors that are googled during the compilation process, and got my build)