Howdy. I’m trying to get my feet with with an Astra (Pro?) on OSX. I installed opencv and sfml via homebrew as mentioned in the readme, but I’m getting a variety of errors when trying to run some of the samples.
When trying to run the Simple*-SFML examples, I’m seeing this:
$ ./SimpleColorViewer-SFML
dyld: Library not loaded: /usr/local/lib/libsfml-graphics.2.2.0.dylib
Referenced from: /Users/mattfelsen/Downloads/AstraSDK-0.4.0-20151014T193346Z-osx-x64/bin/./SimpleColorViewer-SFML
Reason: image not found
Trace/BPT trap: 5
I have sfml install but it seems the binaries are looking for version 2.2.0 whereas I have 2.3.0:
$ ls /usr/local/lib/ | grep sfml
lrwxr-xr-x 1 mattfelsen admin 50 Oct 21 18:13 libsfml-audio.2.3.0.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-audio.2.3.0.dylib
lrwxr-xr-x 1 mattfelsen admin 48 Oct 21 18:13 libsfml-audio.2.3.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-audio.2.3.dylib
lrwxr-xr-x 1 mattfelsen admin 44 Oct 21 18:13 libsfml-audio.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-audio.dylib
lrwxr-xr-x 1 mattfelsen admin 53 Oct 21 18:13 libsfml-graphics.2.3.0.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-graphics.2.3.0.dylib
lrwxr-xr-x 1 mattfelsen admin 51 Oct 21 18:13 libsfml-graphics.2.3.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-graphics.2.3.dylib
lrwxr-xr-x 1 mattfelsen admin 47 Oct 21 18:13 libsfml-graphics.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-graphics.dylib
lrwxr-xr-x 1 mattfelsen admin 52 Oct 21 18:13 libsfml-network.2.3.0.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-network.2.3.0.dylib
lrwxr-xr-x 1 mattfelsen admin 50 Oct 21 18:13 libsfml-network.2.3.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-network.2.3.dylib
lrwxr-xr-x 1 mattfelsen admin 46 Oct 21 18:13 libsfml-network.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-network.dylib
lrwxr-xr-x 1 mattfelsen admin 51 Oct 21 18:13 libsfml-system.2.3.0.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-system.2.3.0.dylib
lrwxr-xr-x 1 mattfelsen admin 49 Oct 21 18:13 libsfml-system.2.3.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-system.2.3.dylib
lrwxr-xr-x 1 mattfelsen admin 45 Oct 21 18:13 libsfml-system.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-system.dylib
lrwxr-xr-x 1 mattfelsen admin 51 Oct 21 18:13 libsfml-window.2.3.0.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-window.2.3.0.dylib
lrwxr-xr-x 1 mattfelsen admin 49 Oct 21 18:13 libsfml-window.2.3.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-window.2.3.dylib
lrwxr-xr-x 1 mattfelsen admin 45 Oct 21 18:13 libsfml-window.dylib@ -> ../Cellar/sfml/2.3_1/lib/libsfml-window.dylib
On some other examples, I’m seeing errors about a missing liborbbec.dylib:
$ ./ColorReaderEvent
2015-10-21 18:23:11,909 WARN [context] Hold on to yer butts
2015-10-21 18:23:11,909 INFO [context] configuration path: /Users/mattfelsen/Downloads/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/astra.toml
2015-10-21 18:23:11,909 INFO [context] log file path: astra.log
2015-10-21 18:23:11,909 INFO [context] plugin path: /Users/mattfelsen/Downloads/AstraSDK-0.4.0-20151014T193346Z-osx-x64/lib/Plugins/
2015-10-21 18:23:11,911 INFO [orbbec.ni.oni_adapter_plugin] Initializing OpenNI v2.3.0.15
2015-10-21 18:23:11,912 WARN [orbbec.ni.oni_adapter_plugin] Failed to initialize OpenNI: LibraryHandler: Couldn't load library liborbbec.dylib
DeviceDriver: library handle is invalid for file liborbbec.dylib
Couldn't understand file 'liborbbec.dylib' as a device driver
Found no valid drivers
2015-10-21 18:23:11,914 INFO [astra.plugins.xs.XSPlugin] Initializing XS plugin
2015-10-21 18:23:11,914 INFO [context] client opening streamset: device/default
2015-10-21 18:23:11,914 INFO [streamset_catalog] default uri provided.
2015-10-21 18:23:11,914 INFO [astra.streamset] connecting to (2,0) on device/sensor0
^Cquitting...
2015-10-21 18:23:21,896 INFO [orbbec.ni.oni_adapter_plugin] shutting down openni
2015-10-21 18:23:21,896 INFO [astra.plugins.xs.XSPlugin] Terminated XS plugin
2015-10-21 18:23:21,896 INFO [context] Astra terminated.
I’ve got some related dylibs but not that one:
$ ls ../lib/
total 1040
drwxr-xr-x@ 7 mattfelsen staff 238 Oct 21 18:09 Plugins/
-rw-r--r--@ 1 mattfelsen staff 95 Oct 14 15:27 astra.toml
-rwxr-xr-x@ 1 mattfelsen staff 469988 Oct 14 15:34 libAstra.dylib*
-rwxr-xr-x@ 1 mattfelsen staff 9560 Oct 14 15:33 libAstraAPI.dylib*
-rwxr-xr-x@ 1 mattfelsen staff 41608 Oct 14 15:33 libAstraUL.dylib*
$ ls ../lib/Plugins/
total 1016
-rwxr-xr-x@ 1 mattfelsen staff 115180 Oct 14 15:34 libopenni_sensor.dylib*
-rwxr-xr-x@ 1 mattfelsen staff 341596 Oct 14 15:34 liborbbec_hand.dylib*
-rwxr-xr-x@ 1 mattfelsen staff 50020 Oct 14 15:34 liborbbec_xs.dylib*
drwxr-xr-x@ 5 mattfelsen staff 170 Oct 21 18:09 openni2/
-rw-r--r--@ 1 mattfelsen staff 2080 Jul 4 14:17 orbbec_hand.toml
Thanks in advance! Excited about what you guys are you doing