hi there I can not seam to figure out what wrong with compiling mqttcollect maybe someone who is more familiar with openwrt can see the problem more easily then I can.. it seams to want to compile then errors out at this line
install: cannot stat '/home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/ipkg-install': No such file or directory
the full error is this
> make[4]: Entering directory '/home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0'
> arm-openwrt-linux-muslgnueabi-gcc -Wall -Werror -c -o json.o json.c
> cc1: note: someone does not honour COPTS correctly, passed 0 times
> arm-openwrt-linux-muslgnueabi-gcc -Wall -Werror -c -o ini.o ini.c
> cc1: note: someone does not honour COPTS correctly, passed 0 times
> arm-openwrt-linux-muslgnueabi-gcc -Wall -Werror -o mqttcollect mqttcollect.c json.o ini.o -lmosquitto
> cc1: note: someone does not honour COPTS correctly, passed 0 times
> make[4]: Leaving directory '/home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0'
> touch /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.built
> rm -rf /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect.installed /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect
> mkdir -p /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect
> install -d -m0755 /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect/usr/bin
> install -m0755 /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/ipkg-install /home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect/usr/bin
> install: cannot stat '/home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/ipkg-install': No such file or directory
> Makefile:35: recipe for target '/home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect.installed' failed
> make[3]: *** [/home/stephen/openwrt/build_dir/target-arm_cortex-a8+vfpv3_musl_eabi/mqttcollect-1.0/.pkgdir/mqttcollect.installed] Error 1
> make[3]: Leaving directory '/home/stephen/openwrt/pkgs/mqttcollect'
> package/Makefile:107: recipe for target 'package/feeds/custom/mqttcollect/compile' failed
> make[2]: *** [package/feeds/custom/mqttcollect/compile] Error 2
> make[2]: Leaving directory '/home/stephen/openwrt'
> package/Makefile:103: recipe for target '/home/stephen/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl_eabi/stamp/.package_compile' failed
> make[1]: *** [/home/stephen/openwrt/staging_dir/target-arm_cortex-a8+vfpv3_musl_eabi/stamp/.package_compile] Error 2
> make[1]: Leaving directory '/home/stephen/openwrt'
> /home/stephen/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
> make: *** [world] Error 2
i formatted my makefile like this :
include $(TOPDIR)/rules.mk
PKG_NAME:=mqttcollect
PKG_VERSION:=1.0
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_MAINTAINER:=Your name <yourname@domain.for.your.name>
PKG_LICENSE:=ISC
PKG_SOURCE:=mqttcollect-1.0.tar.xz
include $(INCLUDE_DIR)/package.mk
define Package/mqttcollect/default
CATEGORY:=Utilities
TITLE:=mqttcoolect- for openwrt
endef
define Package/mqttcollect
$(Package/mqttcollect/default)
DEPENDS:= +libmosquitto
endef
define Package/mqttcollect/description
mqtt software for collectd exec to capture mqtt
endef
TARGET_CFLAGS += -Wall -Werror
#TARGET_LDFLAGS += -lmosquitto
define Package/mqttcollect/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR) $(1)/usr/bin
endef
$(eval $(call BuildPackage,mqttcollect))
the original mqttcollect makefile looks like this if this is of any help
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man/man1
CFLAGS= -Wall -Werror
LDFLAGS=-lmosquitto # -lssl -lcrypto -lrt
all: mqttcollect
mqttcollect: mqttcollect.c uthash.h json.o utstring.h ini.o
$(CC) $(CFLAGS) -o mqttcollect mqttcollect.c json.o ini.o $(LDFLAGS)
json.o: json.c json.h
ini.o: ini.c ini.h
install: mqttcollect
install -m 755 mqttcollect $(BINDIR)/
install -m 644 mqttcollect.1 $(MANDIR)/
clean:
rm -f *.o
clobber: clean
rm -f mqttcollect
doc: README.md mqttcollect.1
README.md: mqttcollect.pandoc
pandoc -w markdown mqttcollect.pandoc -o README.md
mqttcollect.1: mqttcollect.pandoc
pandoc -s -w man mqttcollect.pandoc -o mqttcollect.1
any help or suggestion would be welcome
thank you for your time