openni and primesense/kinect status

2011-05-30 Thread Hans-Christoph Steiner

Ok, here's my work transcript from yesterday.  It looks like we still
need to sort out the Mono/OpenNI.dll building and installing.  But this
is some of what I did and the errors I was trying to fix in
primesense-nite-nonfree:

added mono-gmcs and libmono-winforms2.0-cil as depends since the package
building done by update-primesense-nite script needs them.


first build attempt failed because it was missing libopenni
---
/tmp/primesense-nite.6105 /tmp/primesense-nite-nonfree.UyPwDp8h5m
/tmp/primesense-nite.6105/openni-modules-primesense-nite-nonfree
/tmp/primesense-nite.6105 /tmp/primesense-nite-nonfree.UyPwDp8h5m
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor):
-g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin:
vendor): 
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin:
vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor):
-g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
-Wl,-Bsymbolic-functions
dpkg-buildpackage: source package primesense-nite-nonfree
dpkg-buildpackage: source version 1.3.1.5-1
dpkg-buildpackage: source changed by Cosimo Alfarano ka...@debian.org
 dpkg-source --before-build openni-modules-primesense-nite-nonfree
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: libopenni (= 1.1.0.41)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied;
aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1335:
dpkg-buildpackage -rfakeroot -D -us -uc failed

second attempt failed at missing quilt
--

third attempt failed at missing libopenni-dev
-
g++ -g -O2 -malign-double -O3 -fno-tree-pre -fno-strict-aliasing
-DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite
-I/usr/include/ni -DUSE_GLUT -DXN_SSE -M -MF Release/main.d -MT
./Release/main.o Release/main.d ../Players/main.cpp
../Players/main.cpp:8:22: fatal error: XnOpenNI.h: No such file or
directory


fourth attempt was downloading the 64-bit tarball on a 32-bit machine
-

g++ -o ../Bin/Sample-Players ./Release/main.o ./Release/SceneDrawer.o
./Release/kbhit.o ./Release/signal_catch.o -L../../Bin -lGL  -L../Bin
-lglut -lOpenNI -lXnVNite_1_3_1
/usr/bin/ld: skipping incompatible ../../Bin/libXnVNite_1_3_1.so when
searching for -lXnVNite_1_3_1
/usr/bin/ld: cannot find -lXnVNite_1_3_1
collect2: ld returned 1 exit status


last attempt today failed on missing OpenNI.net.dll
---
gmcs -out:../Bin/Sample-Boxes.net.exe -target:winexe -unsafe -o+
-r:OpenNI.net.dll -r:System.Windows.Forms.dll -r:System.Drawing.dll
-r:../Bin/XnVNite.net_1_3_1.dll ../Boxes.net/*.cs
../Res/AssemblyInfo-NITE.cs
error CS0006: cannot find metadata file `OpenNI.net.dll'
Compilation failed: 1 error(s), 0 warnings
make[3]: *** [../Bin/Sample-Boxes.net.exe] Error 1

I think there is a way to stop the primesense-nite installer from
building the examples.  Those are the Mono C# .NET things, so we could
start by leaving the Sample apps out.

.hc

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Re: openni and primesense/kinect status

2011-05-30 Thread Jonas Smedegaard
On 11-05-30 at 12:22pm, Hans-Christoph Steiner wrote:

 third attempt failed at missing libopenni-dev
 -
 g++ -g -O2 -malign-double -O3 -fno-tree-pre -fno-strict-aliasing
 -DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite
 -I/usr/include/ni -DUSE_GLUT -DXN_SSE -M -MF Release/main.d -MT
 ./Release/main.o Release/main.d ../Players/main.cpp
 ../Players/main.cpp:8:22: fatal error: XnOpenNI.h: No such file or
 directory

Beware of the optimizations: Debian Policy mandates ability to disable 
optimizations, so if above -O3 is applied by upstream (or hardcoded in 
your build rules) then it is most likely done wrong.

I cloned the project to try have a closer look, but apparently picked 
the wrong one (openni) - no O3 mentioned anywhere in source code.  But 
doing so I noticed several tarballs inside the git - that looks bad!


Good luck with these!


 - Jonas

-- 
 * Jonas Smedegaard - idealist  Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: Digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Re: openni and primesense/kinect status

2011-05-30 Thread Hans-Christoph Steiner


On May 30, 2011, at 12:45 PM, Jonas Smedegaard wrote:


On 11-05-30 at 12:22pm, Hans-Christoph Steiner wrote:


third attempt failed at missing libopenni-dev
-
g++ -g -O2 -malign-double -O3 -fno-tree-pre -fno-strict-aliasing
-DNDEBUG -msse3 -mssse3 -I../Players -I/usr/include/nite
-I/usr/include/ni -DUSE_GLUT -DXN_SSE -M -MF Release/main.d -MT
./Release/main.o Release/main.d ../Players/main.cpp
../Players/main.cpp:8:22: fatal error: XnOpenNI.h: No such file or
directory


Beware of the optimizations: Debian Policy mandates ability to disable
optimizations, so if above -O3 is applied by upstream (or hardcoded in
your build rules) then it is most likely done wrong.

I cloned the project to try have a closer look, but apparently picked
the wrong one (openni) - no O3 mentioned anywhere in source code.  But
doing so I noticed several tarballs inside the git - that looks bad!



Yeah, the upstream source is a mess for all this, there are mostly no  
official release tarballs, except for the binary one.  The free  
software library and modules are only in git, but they don't develop  
out of that git.  They post different versions into different  
branches, like the 'stable' version is only in the master branch, and  
the 'unstable' version is in an 'unstable' branch, but that 'unstable'  
branch does not included the 'stable' release.


So, on that note, the optimization flags are in the upstream build  
system.


.hc




Using ReBirth is like trying to play an 808 with a long stick.- 
David Zicarelli




___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Re: openni and primesense/kinect status

2011-05-30 Thread Cosimo Alfarano
On 30/05/11 18:53, Hans-Christoph Steiner wrote:
 Yeah, the upstream source is a mess for all this, there are mostly no
[...]
 So, on that note, the optimization flags are in the upstream build system.

It's on my TODO list to contact upstream and ask the rationale behind
the current build system.
I'll write the email in the next days, but if someone is planning to do
the same please put me in CC.

C.

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Re: openni and primesense/kinect status

2011-05-30 Thread Hans-Christoph Steiner


On May 30, 2011, at 2:01 PM, Cosimo Alfarano wrote:


On 30/05/11 18:53, Hans-Christoph Steiner wrote:

Yeah, the upstream source is a mess for all this, there are mostly no

[...]
So, on that note, the optimization flags are in the upstream build  
system.


It's on my TODO list to contact upstream and ask the rationale behind
the current build system.
I'll write the email in the next days, but if someone is planning to  
do

the same please put me in CC.



Yes, good idea, please do!  Hopefully they'll be willing to accept  
some changes.


.hc




Access to computers should be unlimited and total.  - the hacker ethic



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers