FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
218 views 0 comments
by anonymous

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))

"

1 Answer

0 votes
by anonymous

Hello,

  

Thank you for reaching out!

Firstly, I'd recommend checking out the OpenWRT forum post made here, which sounds very similar to the issue you're facing.

If that does not help, let us know and we can continue looking into what the issue could be.

  

Best regards,
DaumantasG