Actions
Bug #66
closedPackage openni2
Status:
Closed
Priority:
Normal
Assignee:
-
Description
OpenNI2 (now hosted here http://structure.io/openni and https://github.com/occipital/openni2) would be useful to have in robotpkg.
Checking out the code and running `make release` compiles and prepares a 'release' that follows a non-standard layout, but remains quite simple.
I personnally run the following simple post-compilation script to install it in the system:
HEADERS="OniCProperties.h PrimeSense.h Driver/OniDriverAPI.h Driver/OniDriverTypes.h OniCTypes.h OpenNI.h MacOSX/OniPlatformMacOSX.h Android-Arm/OniPlatformAndroid-Arm.h Win32/OniPlatformWin32.h Linux-x86/OniPlatformLinux-x86.h Linux-Arm/OniPlatformLinux-Arm.h OniPlatform.h OniCEnums.h OniCAPI.h OniProperties.h PSLink.h PS1080.h OniEnums.h OniVersion.h" LIBS="libOpenNI2.so OpenNI2/Drivers/libPS1080.so OpenNI2/Drivers/libDummyDevice.so OpenNI2/Drivers/libPSLink.so OpenNI2/Drivers/libOniFile.so" mkdir /usr/local/include/openni2 mkdir /usr/local/include/openni2/Driver mkdir /usr/local/include/openni2/Linux-Arm mkdir /usr/local/include/openni2/Linux-x86 mkdir /usr/local/include/openni2/MacOSX mkdir /usr/local/include/openni2/Win32 mkdir /usr/local/include/openni2/Android-Arm mkdir /usr/local/lib/OpenNI2 mkdir /usr/local/lib/OpenNI2/Drivers for header in $HEADERS do cp Include/$header /usr/local/include/openni2/$header done for lib in $LIBS do cp Bin/Arm-Release/$lib /usr/local/lib/$lib done
(note that all headers, including the one for Android and co, are required -- or this would require some patching)
Using that as starting point, it should be fairly easy to create a robotpkg package.
Actions