Well, things have changed since the last time I tried to get the Phidgets web service running on FreeBSD (8.1-PRERELEASE). It now works.
Note: I had previously deleted uhid support from my kernel (see previous postings in this thread).
The key is to follow the instructions in the phidgetwebservice21 README. Specifically, the configure command line must be modified to: ./configure LIBS=/usr/lib/libphidget21.so CFLAGS=-pthread
I found that mDNSResponder would not announce the Phidgets, but switching to avahi
(/usr/ports/net/avahi) solved that problem. I found a note from this page
that gives a few good tips, especially:
...install avahi and nss-mdns. Please note that avahi requires dbus which, in turn, requires glib, so if you don’t have these packages installed already, it could take some time. Also, since nss-mdns requires avahi, all you have to do is install nss-mdns and it will grab everything else automatically.
Finally, I created an rc.d file to manage the web service daemon. Here is a copy:
Code: Select all
# PROVIDE: Phidgets Web Service
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable phidgetwebservice21:
command_args="-v -n "Phidget Server" 2>&1 >/var/log/phidgetwebservice21.log &"
That's pretty much it.