Great work, I'll try to address the issues you brought up:

1. I added your writeup to the website. http://owfs.org/index.php?page=macintosh
2. Great news about FUSE. Made the change.
3. Can you give more information about the owhttpd problem? There are
no unusual dependencies as far as I know -- should be straight C code.
Perhaps some issue with thread or signal handling?
4. I'll have to investigate the Bonjour issue. It's always available
in OSX so I probabbly am not invoking it in the correct manner for
that platform.
5. Adding <sys/types.h> before the 2 instances of <usb.h> (in
module/owlib/src/c/ow_ds9490.c) causes no problems with linux
function. I don't know if it helps with Mac.
6. Concerning _DARWIN_C_SOURCE I found this example
http://code.google.com/p/libnfc/source/browse/trunk/configure.ac?spec=svn315&r=315
and tried it in OWFS.and it doesn't interfere with Linux functioning.

These changes are in the CVS repository. Once I figure out the python
problem I'd apprecite it if you could test and give me feedback.

Thanks

Paul Alfille



On Wed, Mar 24, 2010 at 12:18 PM, Peter Radcliffe <p...@pir.net> wrote:
> I was recently introduced to 1-wire sensors after setting up power
> monitoring from a currentcost unit via a usb interface cable to my mac
> mini running osx 10.5. I want to use the same machine for 1-wire since
> it's the only machine I have at home that is on all the time.
>
> Since I want to use switches (mostly as on/off sensors for a couple of
> things, like my heating system) I understood I couldn't use digitemp
> (which does now build on osx by default) so owfs it is.
>
> After... some work... I got owfs to build and even work with macfuse
> from macports (fuse isn't, as the owfs web pages claim, linux specific
> any more). The python examples (I want to continue to use python since
> that's what I wrote my currentcost stuff in) didn't work however.
>
> Luckily for me some searching found this message posted before I
> joined the list:
>  http://article.gmane.org/gmane.comp.file-systems.owfs.devel/6544
> so I rolled back to p29 and python access works, owfs works, owhttpd
> doesn't build but I don't intend to use it anyway.
>
>
> In building I had to turn off zeroconf (it caused link errors that I
> didn't track down since I don't want to use it anyway), install
> macfuse, python25 (I didn't test with the system standard python),
> gsed and libusb-compat from macports and fix some linuxisms and
> libtool's config was broken (it had the mac specific config variables
> in the file... immediately followed by linux x86 config variables
> which overrode them).
>
> What fixed most source issues was:
>  #define _DARWIN_C_SOURCE 1
> which should probably go into configure and be #ifdefed in config.h.
>
> For libusb all uses of usb.h should include <sys/types.h> first...
> I found it easier to just add <sys/types.h> to /opt/local/include/usb.h
> because i was being lazy.
>
> I haven't found proper fixes for a lot of these problems, thus far
> I've just automated getting it to the point of building and working
> and thought others may find it useful if something similar hasn't been
> posted already (I couldn't find a guide to getting recent owfs working
> on OSX). My fix/build script is here:
>
>  http://p.pir.net/hacks/fix-owfs.sh
>
> P.
>
> --
> pir
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to