OpenLightingProject / ola

The Open Lighting Architecture - The Travel Adaptor for the Lighting Industry
https://www.openlighting.org/ola/
Other
641 stars 204 forks source link

running olad in terminal- /dev/ttyUSB0: No such file or directory #513

Closed indefinit closed 9 years ago

indefinit commented 9 years ago

Hello,

I'm trying to run the max/msp external with olad example described here: http://www.opendmx.net/index.php/OlaOutput_Max_External

but when I run olad, I get the following errors: common/io/IOUtils.cpp:38: Failed to open /dev/kldmx0: No such file or directory plugins/karate/KaratePlugin.cpp:79: Could not open /dev/kldmx0 No such file or directory common/io/IOUtils.cpp:38: Failed to open /dev/dmx0: No such file or directory plugins/opendmx/OpenDmxPlugin.cpp:80: Could not open /dev/dmx0 No such file or directory common/io/IOUtils.cpp:38: Failed to open /dev/ttyUSB0: No such file or director

My setup: OSX10.9.5 running OLA 0.9.2

I'm trying to run send e131 on thunderbolt->ethernet cable. Am I missing something here? Thanks!

peternewman commented 9 years ago

Hi @indefinit, you should find it's working anyway. If you want, you can disable the karate, opendmx (and probably the USB Serial, or whichever plugin is generating the last message.

If you look in ~/.ola/ edit ola-karate.conf and change enabled to false; likewise opendmx and the other plugin that's reporting (or pastebin all the olad output and we can tell you).

Anyway, the E1.31 output should be working fine regardless.

indefinit commented 9 years ago

Thanks for your reply. Hmm, maybe I'm not understanding this right then. editing the *.conf files fixes the "no such file or directory" errors, but it doesn't enable the web interface on localhost port 9090. Is there something else I need to do in order to open up the web interface other than "olad"?

nomis52 commented 9 years ago

How did you install OLA?

On Fri, Nov 7, 2014 at 3:13 PM, Indefinit notifications@github.com wrote:

Thanks for your reply. Hmm, maybe I'm not understanding this right then. editing the *.conf files fixes the "no such file or directory" errors, but it doesn't enable the web interface on localhost port 9090. Is there something else I need to do in order to open up the web interface other than "olad"?

— Reply to this email directly or view it on GitHub https://github.com/OpenLightingProject/ola/issues/513#issuecomment-62205045 .

indefinit commented 9 years ago

macports: '''sudo port install ola'''

nomis52 commented 9 years ago

It should come with the web interface enabled then.

If you run olad --help, do you see the --no-http flag listed?

Simon

On Fri, Nov 7, 2014 at 3:53 PM, Indefinit notifications@github.com wrote:

macports: '''sudo port install ola'''

— Reply to this email directly or view it on GitHub https://github.com/OpenLightingProject/ola/issues/513#issuecomment-62210058 .

indefinit commented 9 years ago

oh wait! I think I might have found the problem. I need to run:

sudo port install ola +universal

peternewman commented 9 years ago

Is it all working then @indefinit ?

indefinit commented 9 years ago

hmm, still no. When I run sudo port install ola +universal It takes a while to compile, and then fails with the error:

Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade libmicrohttpd failed

Here's the log:

:notice:fetch ---> Attempting to fetch libffi-3.1.tar.gz from http://svn.macports.org/repository/macports/distfiles/libffi :debug:fetch Fetching distfile failed: Could not resolve host: svn.macports.org :error:fetch org.macports.fetch for port libffi returned: fetch failed :debug:fetch Error code: NONE :debug:fetch Backtrace: fetch failed while executing "portfetch::fetchfiles" (procedure "portfetch::fetch_main" line 17) invoked from within "portfetch::fetch_main org.macports.fetch" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:fetch Warning: targets not executed for libffi: org.macports.install org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot :notice:fetch Please see the log file for port libffi for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/main.log

In Max/MSP, I get error messages from the olaoutput object. They are: no suitable image found. Did find: /opt/local/lib/libolacommon.0.dylib: mach-o, but wrong architecture /usr/local/lib/libolacommon.0.dylib: mach-o, but wrong architecture

peternewman commented 9 years ago

I'm not a macports expert, but I'd try removing the ola port first, then trying again.

That error seems to be a network based one "Could not resolve host: svn.macports.org", can you browse to that address?

I don't recognise libffi either, I don't think it's one of ours.

You could also try just installing the libmicrohttpd port (which is what provides our web server), and see how that gets on on it's own.

nomis52 commented 9 years ago

I doubt +universal will work, if anything you need +http , but that defaults to on anyway.

Simon

On Fri, Nov 7, 2014 at 6:25 PM, peternewman notifications@github.com wrote:

I'm not a macports expert, but I'd try removing the ola port first, then trying again.

That error seems to be a network based one "Could not resolve host: svn.macports.org", can you browse to that address?

I don't recognise libffi either, I don't think it's one of ours.

You could also try just installing the libmicrohttpd port (which is what provides our web server), and see how that gets on on it's own.

— Reply to this email directly or view it on GitHub https://github.com/OpenLightingProject/ola/issues/513#issuecomment-62230539 .

indefinit commented 9 years ago

Some updates:

I tried sudo port uninstall ola and then sudo port install ola +universal which installs without a problem, but when I execute olad and go to localhost:9090, I get nothing. I then tried to port install libmicrohttpd and same thing happens when I run olad as before.

Any ideas why this still isn't working? These are the build flags I've tried to install ola with 0.9.2_0+http+libusb+osc+python27+universal

nomis52 commented 9 years ago

If you run olad --help, do you see the --no-http flag listed?

On Sat, Nov 8, 2014 at 8:44 AM, Indefinit notifications@github.com wrote:

Some updates:

I tried sudo port uninstall ola and then sudo port install ola +universal which installs without a problem, but when I execute olad and go to localhost:9090, I get nothing. I then tried to port install libmicrohttpd and same thing happens when I run olad as before.

Any ideas why this still isn't working? These are the build flags I've tried to install ola with 0.9.2_0+http+libusb+osc+python27+universal

— Reply to this email directly or view it on GitHub https://github.com/OpenLightingProject/ola/issues/513#issuecomment-62264344 .

indefinit commented 9 years ago

yea I see it listed there.

nomis52 commented 9 years ago

With olad running, what does

$ netstat -p tcp -n -a | grep 9090

show?

Simon

On Sat, Nov 8, 2014 at 9:18 AM, Indefinit notifications@github.com wrote:

yea I see it listed there.

— Reply to this email directly or view it on GitHub https://github.com/OpenLightingProject/ola/issues/513#issuecomment-62265542 .

indefinit commented 9 years ago

Ok, I took a different approach to installation and finally got olad to work by building from the git source instead of macports. Here are the steps I took: git clone https://github.com/OpenLightingProject/ola.git ola cd ola autoreconf -i ./configure --enable-fast-install --enable-python-libs

make then make check and finally sudo make install

On the python libs step, I was having a little trouble with google protobuf but I then installed protobuf directly from source and the errors went away.