Build OpenNI on OS X, Universal libusb?

934 views
Skip to first unread message

Amir Hirsch

unread,
Jan 11, 2011, 12:18:36 AM1/11/11
to openn...@googlegroups.com
It appears that I cannot build a universal redistributable OpenNI on OS X because I lack an i386 compatible libusb.

I found a thread about building a universal libusb on OS X where I learned the "lipo -info" command.


I've tried quite a bit of rebuilding libusb with CFLAGS and LDFLAGS while configuring and making it, but it's not working. 


Here's what RedistMaker says

Amir-Hirschs-MacBook-Pro-2:CreateRedist amir$ ./RedistMaker 


*********************************
*   PrimeSense OpenNI Redist    *
*     2011-01-10 21:09:18       *
*********************************
* Taking version...
version is 1.0.0.25
* Building OpenNI...
ld: warning: in /opt/local/lib/libusb-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
  "_libusb_set_interface_alt_setting", referenced from:
      _xnUSBSetInterface in XnUSBLinux-x86.o
  "_libusb_handle_events_timeout", referenced from:
      xnUSBHandleEventsThread(void*) in XnUSBLinux-x86.o
  "_libusb_cancel_transfer", referenced from:
      xnUSBReadThreadMain(void*) in XnUSBLinux-x86.o
  "_libusb_free_transfer", referenced from:
      xnCleanupThreadData(XnUSBReadThreadData*)      in XnUSBLinux-x86.o
  "_libusb_submit_transfer", referenced from:
      xnUSBReadThreadMain(void*) in XnUSBLinux-x86.o
      xnUSBReadThreadMain(void*) in XnUSBLinux-x86.o
  "_libusb_free_config_descriptor", referenced from:
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
  "_libusb_close", referenced from:
      _xnUSBCloseDevice in XnUSBLinux-x86.o
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_get_device", referenced from:
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
  "_libusb_claim_interface", referenced from:
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_free_device_list", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_exit", referenced from:
      xnUSBPlatformSpecificShutdown()     in XnUSBLinux-x86.o
  "_libusb_init", referenced from:
      xnUSBPlatformSpecificInit()     in XnUSBLinux-x86.o
  "_libusb_get_device_address", referenced from:
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_control_transfer", referenced from:
      _xnUSBReceiveControl in XnUSBLinux-x86.o
      _xnUSBSendControl in XnUSBLinux-x86.o
  "_libusb_bulk_transfer", referenced from:
      _xnUSBReadEndPoint in XnUSBLinux-x86.o
      _xnUSBWriteEndPoint in XnUSBLinux-x86.o
  "_libusb_get_device_list", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_unref_device", referenced from:
      _xnUSBIsDevicePresent in XnUSBLinux-x86.o
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_open", referenced from:
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_get_bus_number", referenced from:
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_alloc_transfer", referenced from:
      _xnUSBInitReadThread in XnUSBLinux-x86.o
  "_libusb_ref_device", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
  "_libusb_get_active_config_descriptor", referenced from:
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
  "_libusb_get_device_descriptor", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_interrupt_transfer", referenced from:
      _xnUSBReadEndPoint in XnUSBLinux-x86.o
      _xnUSBWriteEndPoint in XnUSBLinux-x86.o
  "_libusb_release_interface", referenced from:
      _xnUSBCloseDevice in XnUSBLinux-x86.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/r+/r+psZ33fF5uzLcMWjnvDeE+++TI/-Tmp-//ccUOybcj.out (No such file or directory)
make[1]: *** [../../Bin/Release/libOpenNI.dylib] Error 1
make: *** [OpenNI] Error 2
g++ -o ../../Bin/Release/libOpenNI.dylib ./Release/XnBaseNode.o ./Release/XnEnumerationErrors.o ./Release/XnFPSCalculator.o ./Release/XnLicensing.o ./Release/XnLog.o ./Release/XnMockNotifier.o ./Release/XnModuleLoader.o ./Release/XnNodeManager.o ./Release/XnNodeWatcher.o ./Release/XnOS.o ./Release/XnOSMemoryProfiling.o ./Release/XnOpenNI.o ./Release/XnPlayerImpl.o ./Release/XnProfiling.o ./Release/XnQueries.o ./Release/XnRecorderImpl.o ./Release/XnScheduler.o ./Release/XnStatusRegister.o ./Release/XnUSB.o ./Release/XnUtils.o ./Release/XnXml.o ./Release/XnXmlConfig.o ./Release/openNI.o ./Release/Linux-x86CriticalSections.o ./Release/Linux-x86Debug.o ./Release/Linux-x86Events.o ./Release/Linux-x86Files.o ./Release/Linux-x86INI.o ./Release/Linux-x86Keyboard.o ./Release/Linux-x86Memory.o ./Release/Linux-x86Mutex.o ./Release/Linux-x86Network.o ./Release/Linux-x86Processes.o ./Release/Linux-x86SharedLibs.o ./Release/Linux-x86SharedMemory.o ./Release/Linux-x86Strings.o ./Release/Linux-x86Threads.o ./Release/Linux-x86Time.o ./Release/XnUSBLinux-x86.o ./Release/tinystr.o ./Release/tinyxml.o ./Release/tinyxmlerror.o ./Release/tinyxmlparser.o -framework CoreFoundation -framework IOKit -arch i386 -arch x86_64 -L/opt/local/lib -L../../Bin/Release -lusb-1.0 -ldl -dynamiclib -headerpad_max_install_names

Building Failed!!
Amir-Hirschs-MacBook-Pro-2:CreateRedist amir$ ./RedistMaker 


*********************************
*   PrimeSense OpenNI Redist    *
*     2011-01-10 21:10:31       *
*********************************
* Taking version...
version is 1.0.0.25
* Building OpenNI...
ld: warning: in /opt/local/lib/libusb-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
  "_libusb_set_interface_alt_setting", referenced from:
      _xnUSBSetInterface in XnUSBLinux-x86.o
  "_libusb_handle_events_timeout", referenced from:
      xnUSBHandleEventsThread(void*) in XnUSBLinux-x86.o
  "_libusb_cancel_transfer", referenced from:
      xnUSBReadThreadMain(void*) in XnUSBLinux-x86.o
  "_libusb_free_transfer", referenced from:
      xnCleanupThreadData(XnUSBReadThreadData*)      in XnUSBLinux-x86.o
  "_libusb_submit_transfer", referenced from:
      xnUSBReadThreadMain(void*) in XnUSBLinux-x86.o
      xnUSBReadThreadMain(void*) in XnUSBLinux-x86.o
  "_libusb_free_config_descriptor", referenced from:
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
  "_libusb_close", referenced from:
      _xnUSBCloseDevice in XnUSBLinux-x86.o
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_get_device", referenced from:
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
  "_libusb_claim_interface", referenced from:
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_free_device_list", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_exit", referenced from:
      xnUSBPlatformSpecificShutdown()     in XnUSBLinux-x86.o
  "_libusb_init", referenced from:
      xnUSBPlatformSpecificInit()     in XnUSBLinux-x86.o
  "_libusb_get_device_address", referenced from:
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_control_transfer", referenced from:
      _xnUSBReceiveControl in XnUSBLinux-x86.o
      _xnUSBSendControl in XnUSBLinux-x86.o
  "_libusb_bulk_transfer", referenced from:
      _xnUSBReadEndPoint in XnUSBLinux-x86.o
      _xnUSBWriteEndPoint in XnUSBLinux-x86.o
  "_libusb_get_device_list", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_unref_device", referenced from:
      _xnUSBIsDevicePresent in XnUSBLinux-x86.o
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_open", referenced from:
      _xnUSBOpenDeviceImpl in XnUSBLinux-x86.o
  "_libusb_get_bus_number", referenced from:
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_alloc_transfer", referenced from:
      _xnUSBInitReadThread in XnUSBLinux-x86.o
  "_libusb_ref_device", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
  "_libusb_get_active_config_descriptor", referenced from:
      _xnUSBOpenEndPoint in XnUSBLinux-x86.o
  "_libusb_get_device_descriptor", referenced from:
      FindDevice(unsigned short, unsigned short, void*, libusb_device**)in XnUSBLinux-x86.o
      _xnUSBOpenDeviceByPath in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
      _xnUSBEnumerateDevices in XnUSBLinux-x86.o
  "_libusb_interrupt_transfer", referenced from:
      _xnUSBReadEndPoint in XnUSBLinux-x86.o
      _xnUSBWriteEndPoint in XnUSBLinux-x86.o
  "_libusb_release_interface", referenced from:
      _xnUSBCloseDevice in XnUSBLinux-x86.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/r+/r+psZ33fF5uzLcMWjnvDeE+++TI/-Tmp-//ccAM88Wu.out (No such file or directory)
make[1]: *** [../../Bin/Release/libOpenNI.dylib] Error 1
make: *** [OpenNI] Error 2
g++ -o ../../Bin/Release/libOpenNI.dylib ./Release/XnBaseNode.o ./Release/XnEnumerationErrors.o ./Release/XnFPSCalculator.o ./Release/XnLicensing.o ./Release/XnLog.o ./Release/XnMockNotifier.o ./Release/XnModuleLoader.o ./Release/XnNodeManager.o ./Release/XnNodeWatcher.o ./Release/XnOS.o ./Release/XnOSMemoryProfiling.o ./Release/XnOpenNI.o ./Release/XnPlayerImpl.o ./Release/XnProfiling.o ./Release/XnQueries.o ./Release/XnRecorderImpl.o ./Release/XnScheduler.o ./Release/XnStatusRegister.o ./Release/XnUSB.o ./Release/XnUtils.o ./Release/XnXml.o ./Release/XnXmlConfig.o ./Release/openNI.o ./Release/Linux-x86CriticalSections.o ./Release/Linux-x86Debug.o ./Release/Linux-x86Events.o ./Release/Linux-x86Files.o ./Release/Linux-x86INI.o ./Release/Linux-x86Keyboard.o ./Release/Linux-x86Memory.o ./Release/Linux-x86Mutex.o ./Release/Linux-x86Network.o ./Release/Linux-x86Processes.o ./Release/Linux-x86SharedLibs.o ./Release/Linux-x86SharedMemory.o ./Release/Linux-x86Strings.o ./Release/Linux-x86Threads.o ./Release/Linux-x86Time.o ./Release/XnUSBLinux-x86.o ./Release/tinystr.o ./Release/tinyxml.o ./Release/tinyxmlerror.o ./Release/tinyxmlparser.o -framework CoreFoundation -framework IOKit -arch i386 -arch x86_64 -L/opt/local/lib -L../../Bin/Release -lusb-1.0 -ldl -dynamiclib -headerpad_max_install_names

Building Failed!!

Nicholas Butko

unread,
Jan 11, 2011, 12:21:40 AM1/11/11
to openn...@googlegroups.com
Try "sudo port install libusb-devel +universal". It worked for me. 
--Nick 

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.

George Toledo

unread,
Jan 11, 2011, 12:24:26 AM1/11/11
to openn...@googlegroups.com
Also, are you getting libusb from macports?

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.



--
George Toledo

The information contained in this E-mail and any attachments may be confidential.
If you have received this E-mail in error, please notify us immediately by telephone or return E-mail.
You should not use or disclose the contents of this E-mail or any of the attachments for any purpose or to any persons.

Amir Hirsch

unread,
Jan 11, 2011, 12:31:21 AM1/11/11
to openn...@googlegroups.com
ok that works

Amir-Hirschs-MacBook-Pro-2:Mac amir$ lipo -info /opt/local/lib/libusb-1.0.dylib
Architectures in the fat file: /opt/local/lib/libusb-1.0.dylib are: x86_64 i386 

I can also report that it fixed the .NET wrapper in the binary download!

this is a good one for the FAQ :)

Amir

Ziv Hendel

unread,
Jan 11, 2011, 2:08:47 AM1/11/11
to OpenNI
Hi Amir!
I'm glad it's all working for you now!!! :-)

Please note that the libusb issue is already in the README file under
the MacOSX requirements:
4) LibUSB 1.0.8 (The patched development tree)
Installed vis MacPorts:
sudo port install libusb-devel +universal
Note: Do not forget the +universal, it's very important!!
If you're previously already installed libusb-devel then
use "sudo port uninstall libusb-devel" and reinstall it again with the
+universal flag.

Thanks,
Ziv.
> ...
>
> read more »

Amir Hirsch

unread,
Jan 11, 2011, 2:17:12 AM1/11/11
to openn...@googlegroups.com
RTFM of course, but who actually reads files called README :)

Amir

Amir Hirsch

unread,
Jan 11, 2011, 2:47:45 AM1/11/11
to openn...@googlegroups.com
it's worth summarizing in one place for google searchers:

if the OpenNI .NET wrappers and examples are failing on Mac OS X with a message box saying "Error: OpenNI", even though you may be able to run all the other OpenNI and NITE examples, it is likely you do not have the universal i386 / x86_64 libusb driver installed.

you need to use port to uninstall you existing non-universal libusb-devel and do "sudo port install libusb-devel +universal"


Amir

Jacob Fenwick

unread,
Jan 12, 2011, 5:00:33 PM1/12/11
to openn...@googlegroups.com
It would be nice to eventually get rid of the dependence on macports as it's sort of an annoying dependency.

Jacob

Nicholas Butko

unread,
Jan 12, 2011, 7:44:38 PM1/12/11
to openn...@googlegroups.com
The dependence is not on macports, but on libusb's latest development code, compiled in a universal format. If you can find simpler way than macports to download, compile and install libusb's latest development code, you are free to do that. 

roxlu

unread,
Jan 13, 2011, 8:05:23 AM1/13/11
to openn...@googlegroups.com
For the openFrameworks ofxOpenNI I create universal builds of libusb (patched version)


Best,
Roxlu

Jacob Fenwick

unread,
Jan 13, 2011, 11:16:22 AM1/13/11
to openn...@googlegroups.com
Roxlu,

I was trying to get the ofxOpenNI patch working when installed macports to compile LibUSB.
I ended up going to the github for the OpenNI unstable driver and starting to follow the instructions there to get LibUSB working.

It might be helpful if you added a link to your LibUSB on github in case people just want to use openframeworks.
That way they won't have to resort to following two sets of instructions to get it working.

So far I haven't been able to get the OpenNI examples to work at all whereas your patch works, so it seems like your patch is the easier alternative.

Jacob

--

George Toledo

unread,
Jan 13, 2011, 11:42:00 AM1/13/11
to openn...@googlegroups.com
I had to install libtool AND libusb, re: the read me. I don't know if that makes a dif, and something's going over my head, but both were needed, and handled by the macports install, it wasn't *just* libusb that was needed.
-gt

Jacob Fenwick

unread,
Jan 13, 2011, 12:49:16 PM1/13/11
to openn...@googlegroups.com
Me too George, just forgot to mention that.

I'm not sure if libtool is necessary only for compiling libusb or if you also need it to run the run the drivers.

Either way, it takes a long time to compile all the dependencies for both those tools.

It would be nice if we didn't have to do that as it takes hours.

Jacob

Ziv Hendel

unread,
Jan 15, 2011, 8:53:45 AM1/15/11
to OpenNI
Hi Jacob!

Can you please describe which parts of the process took hours?

I have installed macports, libutil & libusb-devel on a fresh mac and
it only took a couple of minutes.

Anyway, We will add a pre-patched source of libusb-devel into our
redist so you will have an alternative to macports in the next release
and you will not be forced to install it.

Thanks,
Ziv.

On Jan 13, 7:49 pm, Jacob Fenwick <jacob.fenw...@gmail.com> wrote:
> Me too George, just forgot to mention that.
>
> I'm not sure if libtool is necessary only for compiling libusb or if you
> also need it to run the run the drivers.
>
> Either way, it takes a long time to compile all the dependencies for both
> those tools.
>
> It would be nice if we didn't have to do that as it takes hours.
>
> Jacob
>
> On Thu, Jan 13, 2011 at 11:42 AM, George Toledo <gtole...@gmail.com> wrote:
> > I had to install libtool AND libusb, re: the read me. I don't know if that
> > makes a dif, and something's going over my head, but both were needed, and
> > handled by the macports install, it wasn't *just* libusb that was needed.
> > -gt
>
> > On Thu, Jan 13, 2011 at 11:16 AM, Jacob Fenwick <jacob.fenw...@gmail.com>wrote:
>
> >> Roxlu,
>
> >> I was trying to get the ofxOpenNI patch working when installed macports to
> >> compile LibUSB.
> >> I ended up going to the github for the OpenNI unstable driver and starting
> >> to follow the instructions there to get LibUSB working.
>
> >> It might be helpful if you added a link to your LibUSB on github in case
> >> people just want to use openframeworks.
> >> That way they won't have to resort to following two sets of instructions
> >> to get it working.
>
> >> So far I haven't been able to get the OpenNI examples to work at all
> >> whereas your patch works, so it seems like your patch is the easier
> >> alternative.
>
> >> Jacob
>
> >> On Thu, Jan 13, 2011 at 8:05 AM, roxlu <diederi...@gmail.com> wrote:
>
> >>> For the openFrameworks ofxOpenNI I create universal builds of libusb
> >>> (patched version)
>
> >>>https://github.com/roxlu/OpenNI/tree/master/Source/External/LibUSB/Mac
>
> >>> Best,
> >>> Roxlu
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "OpenNI" group.
> >>> To post to this group, send email to openn...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> openni-dev+...@googlegroups.com<openni-dev%2Bunsu...@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/openni-dev?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "OpenNI" group.
> >> To post to this group, send email to openn...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> openni-dev+...@googlegroups.com<openni-dev%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/openni-dev?hl=en.
>
> > --
> > George Toledo
> > gtole...@gmail.com
> >www.georgetoledo.com
>
> > The information contained in this E-mail and any attachments may be
> > confidential.
> > If you have received this E-mail in error, please notify us immediately by
> > telephone or return E-mail.
> > You should not use or disclose the contents of this E-mail or any of the
> > attachments for any purpose or to any persons.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "OpenNI" group.
> > To post to this group, send email to openn...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > openni-dev+...@googlegroups.com<openni-dev%2Bunsu...@googlegroups.com>
> > .

Jacob Fenwick

unread,
Jan 15, 2011, 11:39:27 AM1/15/11
to openn...@googlegroups.com
Ziv,

When I install libtool and libusb-devel using macports it requires downloading and compiling a lot of different dependencies.
It could be because I have a slow internet connection.

Jacob


To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.

John Stoner

unread,
Jan 15, 2011, 6:12:48 PM1/15/11
to OpenNI
Macports seems to require care and feeding. If you go a couple years
without using it (like me) it can take a long time for it to get back
up to a current state. I still don't have it working again right now--
I might have to uninstall and reinstall the damn thing. I don't recall
what I used it for before, and I'm unsure if anything else has, via
scripting or whatever. So if I do, I'm not sure what's going to break.

If you can get that packaged usb code up soon, that would be awesome.
It'd definitely make this easier to distribute to non-technical users.


On Jan 15, 7:53 am, Ziv Hendel <z...@openni.org> wrote:
> Hi Jacob!
>
> Can you please describe which parts of the process took hours?
>
> I have installed macports, libutil &libusb-devel on a fresh mac and
> it only took a couple of minutes.
>
> Anyway, We will add a pre-patched source oflibusb-devel into our
> redist so you will have an alternative to macports in the next release
> and you will not be forced to install it.
>
> Thanks,
> Ziv.
>
> On Jan 13, 7:49 pm, Jacob Fenwick <jacob.fenw...@gmail.com> wrote:
>
> > Me too George, just forgot to mention that.
>
> > I'm not sure if libtool is necessary only for compilinglibusbor if you
> > also need it to run the run the drivers.
>
> > Either way, it takes a long time to compile all the dependencies for both
> > those tools.
>
> > It would be nice if we didn't have to do that as it takes hours.
>
> > Jacob
>
> > On Thu, Jan 13, 2011 at 11:42 AM, George Toledo <gtole...@gmail.com> wrote:
> > > I had to install libtool ANDlibusb, re: the read me. I don't know if that
> > > makes a dif, and something's going over my head, but both were needed, and
> > > handled by the macports install, it wasn't *just*libusbthat was needed.
> > > -gt
>
> > > On Thu, Jan 13, 2011 at 11:16 AM, Jacob Fenwick <jacob.fenw...@gmail.com>wrote:
>
> > >> Roxlu,
>
> > >> I was trying to get the ofxOpenNI patch working when installed macports to
> > >> compileLibUSB.
> > >> I ended up going to the github for the OpenNI unstable driver and starting
> > >> to follow the instructions there to getLibUSBworking.
>
> > >> It might be helpful if you added a link to yourLibUSBon github in case

Amir Hirsch

unread,
Jan 15, 2011, 6:18:09 PM1/15/11
to openn...@googlegroups.com
Someone just needs to make a monolithic EXE an pkg installer. I'm
pretty sure there was a $1000 prize for this that no one won.

Amir

> To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.

Jacob Fenwick

unread,
Jan 15, 2011, 6:37:21 PM1/15/11
to openn...@googlegroups.com
Hey John,

You could try using roxlu's compiled libusb in the mean time:

This is where the files go according to port contents libusb-devel +universal:
Port libusb-devel contains:
  /opt/local/include/libusb-1.0/libusb.h
  /opt/local/lib/libusb-1.0.0.dylib
  /opt/local/lib/libusb-1.0.a
  /opt/local/lib/libusb-1.0.dylib
  /opt/local/lib/libusb-1.0.la
  /opt/local/lib/pkgconfig/libusb-1.0.pc

I'd be interested in hear if you can get it working just by copying the files to those locations.

Jacob

To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.

Ziv Hendel

unread,
Jan 16, 2011, 5:28:06 PM1/16/11
to OpenNI
To be honest, I installed MacPorts + LibTool + LibUSB on a brand new
MacBook Pro with OSX 10.6 and it really only took several minutes...
I was really pleasantly surprised to see it working so quickly and
easily.

Anyway, in the short term we will include the pre-patched libusb
sources to make everyone's life easier and in the long term we will
prepare a dmg package installer and be like every other normal program
on the mac :-)

Ziv.

John Stoner

unread,
Jan 17, 2011, 1:03:55 PM1/17/11
to OpenNI
I did this and it did (does) work. I'd still prepackage libusb with
the other stuff, just to make packaging easier. It'd be a lot easier
for non-techie users to install code based on this without them
needing Macports installed and in a good state.

On Jan 15, 5:37 pm, Jacob Fenwick <jacob.fenw...@gmail.com> wrote:
> Hey John,
>
> You could try using roxlu's compiled libusb in the mean time:https://github.com/roxlu/OpenNI/tree/master/Source/External/LibUSB/Mac
>
> This is where the files go according to port contents libusb-devel
> +universal:
> Port libusb-devel contains:
>   /opt/local/include/libusb-1.0/libusb.h
>   /opt/local/lib/libusb-1.0.0.dylib
>   /opt/local/lib/libusb-1.0.a
>   /opt/local/lib/libusb-1.0.dylib
>   /opt/local/lib/libusb-1.0.la
>   /opt/local/lib/pkgconfig/libusb-1.0.pc
>
> I'd be interested in hear if you can get it working just by copying the
> files to those locations.
>
> Jacob
>
> > <openni-dev%2Bunsu...@googlegroups.com<openni-dev%252Buns...@googlegroups.com>
>
> > > > >>> .
> > > > >>> For more options, visit this group at
> > > > >>>http://groups.google.com/group/openni-dev?hl=en.
>
> > > > >>  --
> > > > >> You received this message because you are subscribed to the Google
> > Groups
> > > > >> "OpenNI" group.
> > > > >> To post to this group, send email to openn...@googlegroups.com.
> > > > >> To unsubscribe from this group, send email to
> > > > >> openni-dev+...@googlegroups.com<openni-dev%2Bunsu...@googlegroups.com>
> > <openni-dev%2Bunsu...@googlegroups.com<openni-dev%252Buns...@googlegroups.com>
>
> > > > >> .
> > > > >> For more options, visit this group at
> > > > >>http://groups.google.com/group/openni-dev?hl=en.
>
> > > > > --
> > > > > George Toledo
> > > > > gtole...@gmail.com
> > > > >www.georgetoledo.com
>
> > > > > The information contained in this E-mail and any attachments may be
> > > > > confidential.
> > > > > If you have received this E-mail in error, please notify us
> > immediately by
> > > > > telephone or return E-mail.
> > > > > You should not use or disclose the contents of this E-mail or any of
> > the
> > > > > attachments for any purpose or to any persons.
>
> > > > >  --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "OpenNI" group.
> > > > > To post to this group, send email to openn...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > openni-dev+...@googlegroups.com<openni-dev%2Bunsu...@googlegroups.com>
> > <openni-dev%2Bunsu...@googlegroups.com<openni-dev%252Buns...@googlegroups.com>

edmundronald

unread,
Jan 17, 2011, 6:12:34 PM1/17/11
to OpenNI
I did it yesterday. I posted a nutshell summary of how to do the
build, and building libutil and libusb-devel on a fresh MacPorts
install literally takes hours on a MacBook Pro. On the other hand the
instructions for doing the build which I posted in the DUMMY thread
work very well.

Edmund
> > >>> openni-dev+...@googlegroups.com<openni-dev%2Bunsubscribe@googlegrou ps.com>
> > >>> .
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/openni-dev?hl=en.
>
> > >>  --
> > >> You received this message because you are subscribed to the Google Groups
> > >> "OpenNI" group.
> > >> To post to this group, send email to openn...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> openni-dev+...@googlegroups.com<openni-dev%2Bunsubscribe@googlegrou ps.com>
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/openni-dev?hl=en.
>
> > > --
> > > George Toledo
> > > gtole...@gmail.com
> > >www.georgetoledo.com
>
> > > The information contained in this E-mail and any attachments may be
> > > confidential.
> > > If you have received this E-mail in error, please notify us immediately by
> > > telephone or return E-mail.
> > > You should not use or disclose the contents of this E-mail or any of the
> > > attachments for any purpose or to any persons.
>
> > >  --
> > > You received this message because you are subscribed to the Google Groups
> > > "OpenNI" group.
> > > To post to this group, send email to openn...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > openni-dev+...@googlegroups.com<openni-dev%2Bunsubscribe@googlegrou ps.com>

div

unread,
Feb 4, 2011, 6:45:14 PM2/4/11
to OpenNI
Hello all,

I am having problems with installing libusb-devel +universal. It Runs
for about 30 min and then when it is fetching libusb-devel it gets an
error.

Has something changed in the past three weeks?

Best,

Tim

On Jan 18, 10:12 am, edmundronald <edmundron...@gmail.com> wrote:
> I did it yesterday. I posted a nutshell summary of how to do the
> build, and building libutil andlibusb-devel on a fresh MacPorts
> install literally takes hours on a MacBook Pro. On the other hand the
> instructions for doing the build which I posted in the DUMMY thread
> work very well.
>
> Edmund
>
> On Jan 15, 2:53 pm, Ziv Hendel <z...@openni.org> wrote:
>
>
>
> > Hi Jacob!
>
> > Can you please describe which parts of the process took hours?
>
> > I have installed macports, libutil &libusb-devel on a fresh mac and
> > it only took a couple of minutes.
>
> > Anyway, We will add a pre-patched source oflibusb-devel into our
> > redist so you will have an alternative to macports in the next release
> > and you will not be forced to install it.
>
> > Thanks,
> > Ziv.
>
> > On Jan 13, 7:49 pm, Jacob Fenwick <jacob.fenw...@gmail.com> wrote:
>
> > > Me too George, just forgot to mention that.
>
> > > I'm not sure if libtool is necessary only for compilinglibusbor if you
> > > also need it to run the run the drivers.
>
> > > Either way, it takes a long time to compile all the dependencies for both
> > > those tools.
>
> > > It would be nice if we didn't have to do that as it takes hours.
>
> > > Jacob
>
> > > On Thu, Jan 13, 2011 at 11:42 AM, George Toledo <gtole...@gmail.com> wrote:
> > > > I had to install libtool ANDlibusb, re: the read me. I don't know if that
> > > > makes a dif, and something's going over my head, but both were needed, and
> > > > handled by the macports install, it wasn't *just*libusbthat was needed.
> > > > -gt
>
> > > > On Thu, Jan 13, 2011 at 11:16 AM, Jacob Fenwick <jacob.fenw...@gmail.com>wrote:
>
> > > >> Roxlu,
>
> > > >> I was trying to get the ofxOpenNI patch working when installed macports to
> > > >> compileLibUSB.
> > > >> I ended up going to the github for the OpenNI unstable driver and starting
> > > >> to follow the instructions there to getLibUSBworking.
>
> > > >> It might be helpful if you added a link to yourLibUSBon github in case

Amir Hirsch

unread,
Feb 4, 2011, 7:51:39 PM2/4/11
to openn...@googlegroups.com
what's the error?

is the error telling you to install java from apple's website?


To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.

Tim Devine

unread,
Feb 5, 2011, 3:59:07 AM2/5/11
to openn...@googlegroups.com, openn...@googlegroups.com
No, I just run the sudo command from the terminal and it seem to stop and get an error when it is trying to fetch Libusb-devel... Maybe it doesn't find it... Not sure should I update my java?

Tim

Tim Devine

unread,
Feb 6, 2011, 4:19:22 AM2/6/11
to openn...@googlegroups.com
sudo port install libusb-devel +universal eventually gets this error


---> Fetching libusb-devel

Error: Target org.macports.fetch returned: Git clone failed
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>



Reply all
Reply to author
Forward
0 new messages