This site requires JavaScript, please enable it in your browser!
Greenfoot back
mik
mik wrote ...

2011/4/4

Using a Kinect with Greenfoot

mik mik

2011/4/4

#
You can now use a Kinect module with Greenfoot. You can seea short video (and get all the info you need) here: http://www.greenfoot.org/doc/kinect/
vivyssozi vivyssozi

2011/4/4

#
Hello Mik, I have been playing around with Greenfoot's Kinect Server and I think it does a good job at encapsulating the complicated world of OpenNi. Does it support multiple user tracking?
vivyssozi vivyssozi

2011/4/5

#
Never mind that, I was able to get it to calibrate and track multiple uses. I'm still not sure why I wasn't able to before.
tuesi tuesi

2011/4/6

#
Hi: I'm trying to compile the kinectserver on Mac OSX. Am a newbie at this. Tried... >> configure; make; make install And it fails on make. Got the message: "make: *** No targets specified and no makefile found. Stop." There are two files in the directory... Makefile.am Makefile.in Any help would be greatly appreciated.
davmac davmac

2011/4/7

#
tuesi, "./configure" should generate a file just called "Makefile". What output does it give?
tuesi tuesi

2011/4/7

#
@davmac: I don't see a Makefile, just the other two Makefiles with the .am and .in extensions. I also looked at the config.log (output of the configure command, I believe) and see a failed steps in the log. ... this chunk is repeated many times...can't find ac_nonexistent.h...aptly named. :)
configure:7115: checking how to run the C preprocessor
configure:7146: gcc -E  conftest.c
configure:7146: $? = 0
configure:7160: gcc -E  conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:7160: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "kinectserver"
| #define PACKAGE_TARNAME "kinectserver"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "kinectserver 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "kinectserver"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:7185: result: gcc -E
configure:7205: gcc -E  conftest.c
configure:7205: $? = 0
configure:7219: gcc -E  conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:7219: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "kinectserver"
| #define PACKAGE_TARNAME "kinectserver"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "kinectserver 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "kinectserver"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
... and also...
configure: this is boost.m4 serial 15
configure:15025: checking for Boost headers version >= 0.0.0
configure:15096: g++ -c -g -O2  -I/usr/include/ni/ conftest.cpp >&5
conftest.cpp:27:29: error: boost/version.hpp: No such file or directory
conftest.cpp:29:3: error: #error BOOST_VERSION is not defined
configure:15096: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "kinectserver"
| #define PACKAGE_TARNAME "kinectserver"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "kinectserver 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "kinectserver"
| #define VERSION "1.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TIME_H 1
| #define HAVE_XNTYPES_H 1
| #define HAVE_XNOPENNI_H 1
| #define HAVE_XNCPPWRAPPER_H 1
| /* end confdefs.h.  */
| #include <boost/version.hpp>
| #if !defined BOOST_VERSION
| # error BOOST_VERSION is not defined
| #elif BOOST_VERSION < 0
| # error Boost headers version < 0
| #endif
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:15117: result: no
configure:15122: error: cannot find Boost headers version >= 0.0.0
davmac davmac

2011/4/8

#
tuesi, I suspect the first "error" is actually just as it should be - that is, the script is testing that compiling a program which #includes a non-existent header does fail as it should. The second error:
configure:15122: error: cannot find Boost headers version >= 0.0.0
... is the real problem: you need the Boost libraries installed. (I'll grant there's little way you could have known this, other than looking at the configure output). By the way: config.log is not the same as the configure output. The output from running "configure" is much more terse and in this case would probably have been much easier to understand.
nccb nccb

2011/4/8

#
We are planning to do a Mac OS X binary release with a program ready to run (maybe next week?). Unfortunately, this week I've only had access to Windows and Ubuntu machines, hence there's only proper instructions for Windows and Ubuntu -- but I didn't want to delay the release just because we hadn't released OS X yet. Currently, installation on Mac is only for the intrepid! You'll need to install things like Xcode and you'll need Boost and wxWidgets. If you're new at this, installing those libraries is a fairly steep learning curve into Unix-based development! So you might just be best to wait for our release. If you can't wait and really want to learn, here's a link about installing Boost and here's the best I could find for wxWidgets.
tuesi tuesi

2011/4/15

#
Thanks davmac and nccb for the info. I'm comfortable navigating the Unix environment. I think I'm going to wait because this week I'm busy working on other things. Looking forward to the Mac port. :)
dothebone dothebone

2011/11/16

#
You might find some interesting stuff here.
jody jody

2012/4/30

#
Broken link? http://www.greenfoot.org/doc/kinect/macos.html which appears on source page http://www.greenfoot.org/doc/kinect/ results in a message: "The page you were looking for doesn't exist."
davmac davmac

2012/5/1

#
It's fixed now - sorry for the inconvenience.
You need to login to post a reply.