Install OLA from GIT, because apt-get does not work

,

After moving to openhab2 I need to reinstall OLA to get my dmx light to work, However I have some problem doing so on an rpi, any ideas why? Is this due to fact that I used Openhabian @ThomDietrich ?

Has anyone suceeded in installing Ola from GIT? I can not use the image since I already have openhab installed, and just want to add OLA

So first I created a new dir by
mkdir ~openlightning

then I used git clone
git clone https://github.com/OpenLightingProject/ola.git

it then says you should do this:

git pull
autoreconf
./configure --enable-rdm-tests
make
sudo make install
sudo ldconfig

this however does not work, any ideas why?

[15:01:54] pi@openHABianPi:~$ cd open-lighting/
[15:05:07] pi@openHABianPi:~/open-lighting$ cd ola
[15:05:10] pi@openHABianPi:~/open-lighting/ola$ git pull
Already up-to-date.
[15:05:17] pi@openHABianPi:~/open-lighting/ola$ cd ..
[15:05:25] pi@openHABianPi:~/open-lighting$ git pull
fatal: Not a git repository (or any of the parent directories): .git
[15:05:28] pi@openHABianPi:~/open-lighting$ cd ola
[15:05:38] pi@openHABianPi:~/open-lighting/ola$ autoreconf
configure.ac:30: error: required file 'config/compile' not found
configure.ac:30:   'automake --add-missing' can install 'compile'
configure.ac:171: error: required file 'config/config.guess' not found
configure.ac:171:   'automake --add-missing' can install 'config.guess'
configure.ac:171: error: required file 'config/config.sub' not found
configure.ac:171:   'automake --add-missing' can install 'config.sub'
configure.ac:13: error: required file 'config/install-sh' not found
configure.ac:13:   'automake --add-missing' can install 'install-sh'
configure.ac:171: error: required file 'config/ltmain.sh' not found
configure.ac:13: error: required file 'config/missing' not found
configure.ac:13:   'automake --add-missing' can install 'missing'
Makefile.am:179: warning: .PHONY was already defined in condition DX_COND_doc, which is included in condition TRUE ...
aminclude.am:161: ... '.PHONY' previously defined here
Makefile.am:15:   'aminclude.am' included from here
Makefile.am: error: required file './INSTALL' not found
Makefile.am:   'automake --add-missing' can install 'INSTALL'
Makefile.am: error: required file 'config/depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
python/ola/Makefile.mk:17: error: required file 'config/py-compile' not found
python/ola/Makefile.mk:17:   'automake --add-missing' can install 'py-compile'
Makefile.am:158:   'python/Makefile.mk' included from here
python/Makefile.mk:2:   'python/ola/Makefile.mk' included from here
parallel-tests: error: required file 'config/test-driver' not found
parallel-tests:   'automake --add-missing' can install 'test-driver'
plugins/renard/Makefile.mk:8: warning: variable 'nodist_plugins_ranard_libolaranard_la_SOURCES' is defined but no program or
plugins/renard/Makefile.mk:8: library has 'plugins_ranard_libolaranard_la' as canonical name (possible typo)
Makefile.am:155:   'plugins/Makefile.mk' included from here
plugins/Makefile.mk:13:   'plugins/renard/Makefile.mk' included from here
autoreconf: automake failed with exit status: 1
[15:11:00] pi@openHABianPi:~/open-lighting/ola$ ./configure --enable-rdm-tests
configure: error: cannot find install-sh, install.sh, or shtool in config "."/config
[15:13:25] pi@openHABianPi:~/open-lighting/ola$ make
make: *** No targets specified and no makefile found.  Stop.

No this is not related to openhabian

Your system is missing the dependancies. Just follow along the hints :wink:

well thats the problem I can not find a compile file here https://github.com/nomis52/ola/tree/master/config

And google does not give me any hints, I was thinking it might be some Python library needed, but I am bit lost here how to figure out how to get missing dependices,

what happens when you execute

    automake --add-missing

well that helped, but still config/ltmain.sh is missing it says, so I ran libtoolize

   libtoolize
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: linking file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `config'.
libtoolize: linking file `config/libtool.m4'
libtoolize: linking file `config/ltoptions.m4'
libtoolize: linking file `config/ltsugar.m4'
libtoolize: linking file `config/ltversion.m4'
libtoolize: linking file `config/lt~obsolete.m4'
[00:00:56] pi@openHABianPi:~/open-lighting/ola$ autoreconf
Makefile.am:179: warning: .PHONY was already defined in condition DX_COND_doc, which is included in condition TRUE ...
aminclude.am:161: ... '.PHONY' previously defined here
Makefile.am:15:   'aminclude.am' included from here
plugins/renard/Makefile.mk:8: warning: variable 'nodist_plugins_ranard_libolaranard_la_SOURCES' is defined but no program or
plugins/renard/Makefile.mk:8: library has 'plugins_ranard_libolaranard_la' as canonical name (possible typo)
Makefile.am:155:   'plugins/Makefile.mk' included from here
plugins/Makefile.mk:13:   'plugins/renard/Makefile.mk' included from here
[00:06:44] pi@openHABianPi:~/open-lighting/ola$ make
make: *** No targets specified and no makefile found.  Stop.
[00:11:41] pi@openHABianPi:~/open-lighting/ola$ sudo make install
make: *** No rule to make target 'install'.  Stop.
[00:11:49] pi@openHABianPi:~/open-lighting/ola$

getting closer:

sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install uuid
sudo apt-get install uuid-dev
sudo apt-get install cppunit
sudo apt-get install protobuf-compiler
sudo apt-get install libprotobuf-lite8 (Works without)
sudo apt-get install liblo-dev(Works without)
sudo apt-get install python-protobuf
sudo apt-get install libprotobuf-dev
sudo apt-get install libprotoc-dev
sudo apt-get install protobuf-compiler
sudo apt-get install libcppunit-dev
sudo apt-get install libcppunit-1.13-0
sudo apt-get install pkg-config
sudo apt-get install libncurses5-dev
sudo apt-get install libtool
sudo apt-get install libmicrohttpd-dev
sudo apt-get install python-numpy
sudo apt-get install libmicrohttpd10
sudo apt-get install libavahi-client-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libftdi-dev
sudo apt-get install libftdi1
sudo apt-get install libusb-1.0-0-dev

//Already installled
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install g++
sudo apt-get install make

//run this tool
libtoolize

//Grab OLA
git clone https://github.com/OpenLightingProject/ola.git

//Install it
git pull
autoreconf -i
./configure --enable-rdm-tests
sudo make
sudo make check
sudo make install
sudo ldconfig

//start OLA
olad -l 3

//Go the webpage
http://your IP:9090/ola.html

The whole thing is gonna take around 10Hours to install!!!

By the way apt always spits out these openhab errors…

Updating FireMotD available updates count … W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Packages HttpError404

W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/Packages HttpError404

Compiling now…

Its working, OLA at least. I just need to configure it and add add the OLA binding, @ThomDietrich I will keep you posted so that you can integrate this tricky install on openhabian… It was a lot of work to install all the dependents…

Oh wow… Yes please send me the instructions when you are ready to.

So after several reboots I finally got the dongle to show up, I will update the post over for this. However I now need to install the ola binding, this is a 1.9 binding. I installed it with the paper UI, added connection=localhost:9010 to a file called “binding-dmx1.cfg” is this the correct way to do it? Is the filname of the manually added cfg file correct?

How can I check if it is installed correctly and check the log for it? How can I restart OH2 without using sudo reboot?

If the binding is called “binding-dmx1”, the config is called “dmx.cfg”. See here.

Use the karaf console and the command bundle:list: http://docs.openhab.org/administration/console.html

sudo systemctl restart openhab2.service: http://docs.openhab.org/installation/linux.html

I didn’t post the links to mock you! I believe it’s important to know where to find an information :wink:

That made it not restart as root somehow… i.e gpio fails…

bundle:list… i did the add on command, thanks

So the dmx works now, so feel free to add it to openhabian!

If that’s what you want and you’ve modified the service file, it should.

Great. Would love to. Please summarize the process once more, Thanks :wink: