Hi, I am trying to install Z-Wave in a FreeNAS 9.3 jail in order to use it together with Domoticz. While I was following the guide here. I ran into trouble compiling Open Z-Wave due to this warning that it gives me:
cc1: warnings being treated as errors
/usr/home/domoticz/open-zwave/cpp/hidapi/libusb/hid.c: In function 'get_usb_string':
/usr/home/domoticz/open-zwave/cpp/hidapi/libusb/hid.c:376: warning: passing argument 2 of 'libiconv' from incompatible pointer type
/usr/home/domoticz/open-zwave/cpp/build/support.mk:112: recipe for target '/usr/home/domoticz/open-zwave/.lib/hid.o' failed
The part that this warning is referring too is this (starting on row 338 of the hid.c file):
#ifdef FreeBSD
const char *inptr;
#else
char *inptr;
#endif
char *outptr;
Does anyone know how this warning can be resolved?
When I remove the -Werror flag (so it ignores warnings) it compiles just fine, but then I get stuck at getting access to the Zwave.me usb stick in the jail.
I found the device is connected on ugen0.4 and then tried to make a symbolic link by doing the following:
ln -s /dev/ttyu1 /mnt/tank/jails/domoticz/dev/ttyUSB0
When I test the connection with MinOZW it gets stuck at:
Trying to open serial port /dev/ttyUSB0 (attempt 1)
Any suggestion what I am doing wrong and how I can fix this? Thanks.
cc1: warnings being treated as errors
/usr/home/domoticz/open-zwave/cpp/hidapi/libusb/hid.c: In function 'get_usb_string':
/usr/home/domoticz/open-zwave/cpp/hidapi/libusb/hid.c:376: warning: passing argument 2 of 'libiconv' from incompatible pointer type
/usr/home/domoticz/open-zwave/cpp/build/support.mk:112: recipe for target '/usr/home/domoticz/open-zwave/.lib/hid.o' failed
The part that this warning is referring too is this (starting on row 338 of the hid.c file):
#ifdef FreeBSD
const char *inptr;
#else
char *inptr;
#endif
char *outptr;
Does anyone know how this warning can be resolved?
When I remove the -Werror flag (so it ignores warnings) it compiles just fine, but then I get stuck at getting access to the Zwave.me usb stick in the jail.
I found the device is connected on ugen0.4 and then tried to make a symbolic link by doing the following:
ln -s /dev/ttyu1 /mnt/tank/jails/domoticz/dev/ttyUSB0
When I test the connection with MinOZW it gets stuck at:
Trying to open serial port /dev/ttyUSB0 (attempt 1)
Any suggestion what I am doing wrong and how I can fix this? Thanks.