Hello everybody,
I'm using a Lede SDK, however when I try to compile a simple helloworld.cpp program (for an IMX6), I get the following error:
ccache: error: Could not find compiler "g++-uc" in PATH
The g++ compiler is installed, I can run the program locally but I cannot cross-compile it.
In the past I've successfully compiled regular C code.
Is it possible to add a compiler to the SDK?
This is how my Makefile looks like:
include $(TOPDIR)/rules.mk
PKG_NAME:=hellocpp
PKG_VERSION:=1.1
PKG_RELEASE:=1SOURCE_DIR:=/home/armand/stage/hellocpp
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mkdefine Package/hellocpp
SECTION:=examples
CATEGORY:=ExamplesCPP
TITLE:=hellocpp
DEPENDS:=+libc +libstdcpp
#DEPENDS:=+libc
endefdefine Package/hellocpp/description
hello cpp test 3
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
cp $(SOURCE_DIR)/* $(PKG_BUILD_DIR)
$(Build/Patch)
endefdefine Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
LIBS="-nodefaultlibs -lgcc -lc -luClibc++"
LDFLAGS="$(EXTRA_LDFLAGS)"
CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS) -nostdinc++"
$(TARGET_CONFIGURE_OPTS)
CROSS="$(TARGET_CROSS)"
ARCH="$(ARCH)"
$(1);
endefdefine Package/hellocpp/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hellocpp $(1)/usr/bin/
endef$(eval $(call BuildPackage,hellocpp))
Kind regards