After installing the RUT955 SDK following the official installation I try to compile a c++ hello world program.
When doing this I get the following error message:
"Package ballLevelis missing dependencies for the following libraries: libc.so.6"
How do I fix this?
Associated makefile:
"
include $(TOPDIR)/rules.mk
PKG_NAME:=ballLevel
PKG_VERSION:=1.0.2
PKG_RELEASE:=1
PKG_MAINTAINER:="EMAIL"
PKG_LICENSE:=MIT
PKG_SOURCE_PROTO:=none
PKG_SOURCE_URL:=
PKG_SOURCE_VERSION:=
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/ballLevel
SECTION:=utils
CATEGORY:=GolfMore
TITLE:=BallLevel
DEPENDS:=+libstdcpp
endef
define Package/ballLevel/description
Ball-Level is a C++ application that displays the level of a ball on a flat surface.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
$(CP) ./Makefile $(PKG_BUILD_DIR)/
endef
define Build/Configure
endef
define Build/Compile
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -static-libstdc++ -o $(PKG_BUILD_DIR)/ballLevel $(PKG_BUILD_DIR)/main.cpp
endef
define Package/ballLevel/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ballLevel $(1)/usr/bin/
endef
$(eval $(call BuildPackage,ballLevel))
"