Comments (6)
Actually, the architecture in OpenNI 2.x is a bit different.
The SDK no longer installs itself into /usr/lib and /usr/include, as we want to allow each applications to have its own private copy of the library (similar to the architecture of Qt).
The install script simply helps in exporting environment variables for development of libraries/applications that use OpenNI.
Of course it is possible to install OpenNI into /usr/lib and /usr/include, but that's up to each developer.
from openni2.
The SDK no longer installs itself into /usr/lib and /usr/include, as we want to allow each applications to have its own private copy of the library
If that's true, then we should not add openni2 to MacPorts, right? We currently have two ports using openni1: libpcl and opencv. You're saying that if the developers of libpcl and opencv were to switch to openni2, they should do so by including a copy of the openni2 source code in their own programs' source download packages?
(similar to the architecture of Qt).
In MacPorts we certainly do have a port for Qt, and dozens of ports use it. Individual Qt-using programs, like qupzilla or digikam or gnuplot or aqbanking, do not include their own copy of the (enormous) Qt source code.
Of course it is possible to install OpenNI into /usr/lib and /usr/include, but that's up to each developer.
But it has to be standardized. If you're going to install files into $prefix/lib, $prefix/include, etc, then you do it so that other programs can use them. And if you do that, you have to install them in predictable locations. And that's what install scripts do.
from openni2.
I'm sorry if I was not clear enough. I didn't mean that each library/application should include OpenNI source code, only OpenNI binaries.
Qt is similar - if you download Qt installation from the website - it does not install itself into $prefix, but to your home directory (see Qt download page - http://qt-project.org/downloads). Qt chose to give the responsibility of deployment to their users - see their deployment guide (http://qt-project.org/doc/qt-5.0/qtdoc/deployment.html) - so that each application is responsible to either use it as static libraries or deploy Qt binaries with it.
I assume that whoever added Qt into MacPorts decided to install its binaries and include files into $prefix, so that other libraries/applications in MacPorts can use it. This means you get to make the exact same choice :).
from openni2.
Translation: we don't care about standard conventions, and we're not going to give the slightest nod to anyone who wants to follow them, so pound sand.
from openni2.
Sorry, that comment was made in a moment of weakness.
To redeem myself, I'll try to post the build script I use soon that works around the problem.
In the meantime,
http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/2013-November/035400.html
points to the git repo being used to package it for Debian (and I've used similar patches locally with success on Ubuntu),
https://github.com/totakke/homebrew-openni2 has a homebrew recipe (that unfortunately still requires env settings),
and https://trac.macports.org/ticket/40107 is the ticket Ryan was prompted by.
from openni2.
There is also an Arch Linux openni2 package in the AUR. Looks like it installs into /usr/include
and /usr/lib
.
from openni2.
Related Issues (20)
- How can I install OpenNI2 on Centos7
- structure sensor on jetson tx1 (aarch64) HOT 6
- How to export Openni2 on an embedded board (running Angstrom Linux) HOT 1
- libusb_init fails
- Where's GlobalDefaults.ini under Ubuntu 12.04 64 bits?
- NiViewer has no GUI HOT 2
- SimpleViewer using Xtion2 error HOT 1
- OpenNI Viewer crashes with Xtion2
- Reconnection loop to the sensor HOT 1
- Can I use OpenNI2 to align the RGB and the depth vedio? HOT 1
- Hello 2020
- Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
- OpenNIError: (OniStatus.ONI_STATUS_BAD_PARAMETER, b'Device.setProperty(5) failed', None) HOT 2
- Trouble connecting LIPSedge L210u with Jetson AGX Xavier
- can't open Device on Nexus 5 with Lollipop 5.0 HOT 1
- Kinect on OS X error "unable to claim interface: -7"
- Where can I find sigmanil?
- readFrame(VideoFrameRef* pFrame). Does this keep a backlog of frames or do I get the most recent frame
- how to convert cv::mat to open::videostream HOT 2
- SimpleViewer: Device open failed: HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openni2.