Compiling issue for mqttcollect

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/ recipe for target 'world' failed
> make: *** [world] Error 2

i formatted my makefile like this :

include $(TOPDIR)/

PKG_MAINTAINER:=Your name <>

include $(INCLUDE_DIR)/

define Package/mqttcollect/default
	TITLE:=mqttcoolect- for openwrt

define Package/mqttcollect
  DEPENDS:=  +libmosquitto

define Package/mqttcollect/description
mqtt software for collectd exec  to capture mqtt
TARGET_CFLAGS += -Wall -Werror
#TARGET_LDFLAGS += -lmosquitto 

define Package/mqttcollect/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR) $(1)/usr/bin

$(eval $(call BuildPackage,mqttcollect))

the original mqttcollect makefile looks like this if this is of any help


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

	rm -f *.o

clobber: clean
	rm -f mqttcollect

doc: mqttcollect.1 mqttcollect.pandoc
	pandoc -w markdown mqttcollect.pandoc -o

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


thank you kindly for the reply --

the only library required is libmosquitto when compiling normally it compiles fine with only mosquitto-dev and this mqttcollect source.. but for some reason not on in openwrt.. but by some chance maybe if i enabled compiling of a couple other mosquitto under openwrt software. perhaps by some chance what ever might be a missing library will be locate though I do not think there is one missing

Potentially related, I'm getting a similar "missing directory" issue on a master branch build -- ipkg-build in my case

/home/jeff/Documents/devel/lede_source/scripts/ipkg-build -c -o 0 -g 0 /home/jeff/Documents/devel/lede_source/build_dir/target-mips_24kc_musl_stock/toolchain/ipkg-mips_24kc/libgcc bin_stock/targets/ar71xx/generic/packages
/home/jeff/Documents/devel/lede_source/scripts/ipkg-build: 142: /home/jeff/Documents/devel/lede_source/scripts/ipkg-build: cannot create bin_stock/targets/ar71xx/generic/packages/IPKG_BUILD.26006/data.tar.gz: Directory nonexistent
$ ls -l bin_stock/targets/ar71xx/generic/
total 4
-rw-r--r-- 1 jeff jeff 181 Mar 11 15:52 config.seed

(Yes, single-threaded make V=s)

Resolved by removing the "custom" folder naming, so perhaps not related to what you're seeing

$ diff .config.old .config

well I got it to compile i used libmoquitto -ssl ( it might of compiled it using the normal libmosquitto i just never noticed) but it still fails to make the IPK. so i assume there something not quite right with Makefile.. would someone know that issue why it will not make IPK i made the ipk-install dir manually but it just say omitting and then crashes the same way

its late now and I am bushed - but if someone interested the mqttcollect is a collecd- exec program to use in to make graphs for mqtt using collect-mod-exec ( since I i not can get collectd-mod -mqtt to produce rrd containers currently ) but it also allows to you send all your collectd stats to influxdb I would post it but you do not allow posting files