==== OpenZWave not found, support disabled! on OSX

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
karde
Posts: 24
Joined: Monday 04 January 2016 16:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7412
Location: Sweden
Contact:

==== OpenZWave not found, support disabled! on OSX

Post by karde »

Hi,

I have successfully setup domoticz under osx and today I got my Aoen Zwave (gen5) stick in the mail :)!
But I'm having some problems with OpenZwave :cry:
Sorry If I'm posting something that has been up before, but spent four hours looking on posts on internet trying to get my aoen wave stick into domoticz but I can't see "OpenZwave" under hardware on my Domoticz server, found out that during ./updatedomo I get the following error:

-- Curl includes found at: /usr/include
-- LIBUSB found at: /usr/local/lib/libusb.dylib
-- ==== OpenZWave not found, support disabled!

I have since then installed open wave with brew
brew install "brew install openzwave" and have the following files under:

//usr/local/lib
libopenzwave-1.2.dylib
libopenzwave-1.2.dylib
libopenzwave.dylib

What am I missing :/? I's the filenames wrong for the dylib files?

Thanks a million for any support!!
karde
Posts: 24
Joined: Monday 04 January 2016 16:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7412
Location: Sweden
Contact:

Re: ==== OpenZWave not found, support disabled! on OSX

Post by karde »

Ok, I got it to work, so for anyone else having this problem follow the steps below:

1) Jump to the folder where you have installed domoticz, so for example if it's installed under
"/Users/MYuser/domoticz" go to /Users/MYuser/

2) type this into the terminal

git clone https://github.com/OpenZWave/open-zwave.git
ln -s open-zwave open-zwave-read-only
cd open-zwave
make
cd ..

3) now jump to your domoticz catalog and do a ./updatedomo (need to restart domoticz after this/or computer if you find this easier:))

Now you should se the openzwave under the domoticz webpage / hardware :)
trixwood

Re: ==== OpenZWave not found, support disabled! on OSX

Post by trixwood »

Hi!

I'm stuck compiling openzwave... to use on osx with domoticz

osx 10.11.2
command line utils 10.11 7.2

installed brew, run brew doctor

then

Code: Select all

brew install cmake
brew install boost --with-python
brew install boost-python
brew install libusb
brew install libusb-compat
brew install zlib
brew install openssl
brew link openssl --force
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
go to ~/Smarthome where i want to install this

Code: Select all

git clone https://github.com/OpenZWave/open-zwave.git
ln -s open-zwave open-zwave-read-only
cd open-zwave
make
make install
I added the following to manager.cpp in de src dir such that is compiles

Code: Select all

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"

(original code)

#pragma clang diagnostic pop
then in ~/Smarthome

Code: Select all

git clone https://github.com/domoticz/domoticz.git
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
make
now i am stuck with:

Code: Select all

[100%] Linking CXX executable domoticz
Undefined symbols for architecture x86_64:
  "OpenZWave::Manager::RemoveNode(unsigned int)", referenced from:
      COpenZWave::ExcludeDevice(int) in OpenZWave.cpp.o
please help!
trixwood

Re: ==== OpenZWave not found, support disabled! on OSX

Post by trixwood »

Ow, I also commented out in the /cpp/build/Makefile

Code: Select all

#if we are on a Mac, add these flags and libs to the compile and link phases 
#ifeq ($(UNAME),Darwin)
CFLAGS	+= -c -DDARWIN -arch i386 -arch x86_64
LDFLAGS += -arch i386 -arch x86_64
LIBS	+= -framework IOKit -framework CoreFoundation -arch i386 -arch x86_64
#else ifeq ($(UNAME),FreeBSD)
#CFLAGS += -I/usr/local/include
#else
#LDFLAGS += -Wl,-soname,libopenzwave.so.$(VERSION)
#LIBS 	+= -ludev
#endif
(and any further references)

but it did not help :/ I would assume it has the right architecture now...
trixwood

Re: ==== OpenZWave not found, support disabled! on OSX

Post by trixwood »

Makefile of the openzwave lib that is...
trixwood

Re: ==== OpenZWave not found, support disabled! on OSX

Post by trixwood »

Code: Select all

lipo -info libopenzwave.a

Architectures in the fat file: libopenzwave.a are: i386 x86_64 


still not good :-/ does anybody have a precompiled domoticz WITH openzwave already installed???
trixwood

Re: ==== OpenZWave not found, support disabled! on OSX

Post by trixwood »

ok... my bad,

instead of the git of openzwave I used their openzwave-1.4.34.tar.gz download... which works!!! seems i got the 1.2 version first... for some reason...
so no changing anything in the sourcecode or makefiles... just openzwave-1.4.34.tar.gz instead of git clone https://github.com/OpenZWave/open-zwave.git... hope this helps anybody... domoticz 4834...
gowfer
Posts: 1
Joined: Saturday 09 December 2017 16:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ==== OpenZWave not found, support disabled! on OSX

Post by gowfer »

I just installed Domoticz OS X binary (domoticz_osx_x86_64.tgz). Installed OpenZwave using openzwave-1.4.34.tar.gz(ran make and make install). I still can not see the Aoen Zwave (gen5) stick in the hardware list. I have stopped and restarted domoticz several times but nothing shows up.

Anyone have any suggestions. Thanks

Domoticz V3.8153
OS - El Capitan 10.11.6
OpenZwave - 1.4.34
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest