Does ofxOpenNI work in ubuntu 32 bit

I am trying to use ofxOpenNI(https://github.com/gameoverhack/ofxOpenNI) in ubuntu 32 bit along with OF71. I am getting error on running the example of ofxOpenNI.

yes it is. I used it myself. you have to make sure not to miss any steps from the installation and drivers instructions from ofxOpenNI and https://github.com/avin2/SensorKinect

I am able to run the sample from openni. While using ofxOpenni, we are getting the following error

./libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofCairoRenderer.o): In function ofCairoRenderer::viewport(float, float, float, float, bool)': ofCairoRenderer.cpp:(.text+0xaa8): undefined reference tocairo_reset_clip’
ofCairoRenderer.cpp:(.text+0xab1): undefined reference to cairo\_new\_path' ofCairoRenderer.cpp:(.text+0xad4): undefined reference tocairo_move_to’
ofCairoRenderer.cpp:(.text+0xafe): undefined reference to cairo\_line\_to' ofCairoRenderer.cpp:(.text+0xb33): undefined reference tocairo_line_to’
ofCairoRenderer.cpp:(.text+0xb5d): undefined reference to cairo\_line\_to' ../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofCairoRenderer.o): In functionofCairoRenderer::draw(ofPolyline&)’:

…/…/…/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofGLRenderer.o): In function ofGLRenderer::setBlendMode(ofBlendMode)': ofGLRenderer.cpp:(.text+0x261): undefined reference to__glewBlendEquation’
ofGLRenderer.cpp:(.text+0x291): undefined reference to \_\_glewBlendEquation' ofGLRenderer.cpp:(.text+0x2c1): undefined reference to__glewBlendEquation’
ofGLRenderer.cpp:(.text+0x309): undefined reference to \_\_glewBlendEquation' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPResponse.o): In functionPoco::Net::HTTPResponse::getDate() const’:
HTTPResponse.cpp:(.text+0xae1): undefined reference to Poco::DateTimeParser::parse(std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, int&)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPCookie.o): In functionPoco::Net::HTTPCookie::HTTPCookie(Poco::Net::NameValueCollection const&)’:
HTTPCookie.cpp:(.text+0xa25): undefined reference to Poco::DateTimeParser::parse(std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, int&)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPFixedLengthStream.o): In functionPoco::Net::HTTPFixedLengthInputStream::operator new(unsigned long)’:
HTTPFixedLengthStream.cpp:(.text+0x946): undefined reference to Poco::MemoryPool::get()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPFixedLengthStream.o): In functionPoco::Net::HTTPFixedLengthInputStream::operator delete(void*)’:
HTTPFixedLengthStream.cpp:(.text+0x959): undefined reference to Poco::MemoryPool::release(void\*)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPFixedLengthStream.o): In functionPoco::Net::HTTPFixedLengthOutputStream::operator new(unsigned long)’:
HTTPFixedLengthStream.cpp:(.text+0xb96): undefined reference to Poco::MemoryPool::get()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPFixedLengthStream.o): In functionPoco::Net::HTTPFixedLengthOutputStream::operator delete(void*)’:
HTTPFixedLengthStream.cpp:(.text+0xba9): undefined reference to Poco::MemoryPool::release(void\*)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPFixedLengthStream.o): In function_GLOBAL__sub_I__ZN4Poco3Net24HTTPFixedLengthStreamBufC2ERNS0_11HTTPSessionElSt13_Ios_Openmode’:
HTTPFixedLengthStream.cpp:(.text.startup+0x13): undefined reference to Poco::MemoryPool::MemoryPool(unsigned long, int, int)' HTTPFixedLengthStream.cpp:(.text.startup+0x22): undefined reference toPoco::MemoryPool::~MemoryPool()’
HTTPFixedLengthStream.cpp:(.text.startup+0x3a): undefined reference to Poco::MemoryPool::MemoryPool(unsigned long, int, int)' HTTPFixedLengthStream.cpp:(.text.startup+0x49): undefined reference toPoco::MemoryPool::~MemoryPool()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPHeaderStream.o): In function Poco::Net::HTTPHeaderInputStream::operator new(unsigned long)': HTTPHeaderStream.cpp:(.text+0x9a6): undefined reference toPoco::MemoryPool::get()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPHeaderStream.o): In function Poco::Net::HTTPHeaderInputStream::operator delete(void\*)': HTTPHeaderStream.cpp:(.text+0x9b9): undefined reference toPoco::MemoryPool::release(void*)’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPHeaderStream.o): In function Poco::Net::HTTPHeaderOutputStream::operator new(unsigned long)': HTTPHeaderStream.cpp:(.text+0xbd6): undefined reference toPoco::MemoryPool::get()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPHeaderStream.o): In function Poco::Net::HTTPHeaderOutputStream::operator delete(void\*)': HTTPHeaderStream.cpp:(.text+0xbe9): undefined reference toPoco::MemoryPool::release(void*)’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPHeaderStream.o): In function \_GLOBAL\_\_sub\_I\_\_ZN4Poco3Net19HTTPHeaderStreamBufC2ERNS0\_11HTTPSessionESt13\_Ios\_Openmode': HTTPHeaderStream.cpp:(.text.startup+0x13): undefined reference toPoco::MemoryPool::MemoryPool(unsigned long, int, int)’
HTTPHeaderStream.cpp:(.text.startup+0x22): undefined reference to Poco::MemoryPool::~MemoryPool()' HTTPHeaderStream.cpp:(.text.startup+0x3a): undefined reference toPoco::MemoryPool::MemoryPool(unsigned long, int, int)’
HTTPHeaderStream.cpp:(.text.startup+0x49): undefined reference to Poco::MemoryPool::~MemoryPool()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPBufferAllocator.o): In functionPoco::Net::HTTPBufferAllocator::allocate(long)’:
HTTPBufferAllocator.cpp:(.text+0x6): undefined reference to Poco::MemoryPool::get()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPBufferAllocator.o): In functionPoco::Net::HTTPBufferAllocator::deallocate(char*, long)’:
HTTPBufferAllocator.cpp:(.text+0x19): undefined reference to Poco::MemoryPool::release(void\*)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPBufferAllocator.o): In function_GLOBAL__sub_I__ZN4Poco3Net19HTTPBufferAllocator5_poolE’:
HTTPBufferAllocator.cpp:(.text.startup+0x16): undefined reference to Poco::MemoryPool::MemoryPool(unsigned long, int, int)' HTTPBufferAllocator.cpp:(.text.startup+0x25): undefined reference toPoco::MemoryPool::~MemoryPool()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStream.o): In function Poco::Net::HTTPInputStream::operator new(unsigned long)': HTTPStream.cpp:(.text+0x866): undefined reference toPoco::MemoryPool::get()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStream.o): In function Poco::Net::HTTPInputStream::operator delete(void\*)': HTTPStream.cpp:(.text+0x879): undefined reference toPoco::MemoryPool::release(void*)’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStream.o): In function Poco::Net::HTTPOutputStream::operator new(unsigned long)': HTTPStream.cpp:(.text+0xa96): undefined reference toPoco::MemoryPool::get()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStream.o): In function Poco::Net::HTTPOutputStream::operator delete(void\*)': HTTPStream.cpp:(.text+0xaa9): undefined reference toPoco::MemoryPool::release(void*)’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStream.o): In function \_GLOBAL\_\_sub\_I\_\_ZN4Poco3Net13HTTPStreamBufC2ERNS0\_11HTTPSessionESt13\_Ios\_Openmode': HTTPStream.cpp:(.text.startup+0x13): undefined reference toPoco::MemoryPool::MemoryPool(unsigned long, int, int)’
HTTPStream.cpp:(.text.startup+0x22): undefined reference to Poco::MemoryPool::~MemoryPool()' HTTPStream.cpp:(.text.startup+0x3a): undefined reference toPoco::MemoryPool::MemoryPool(unsigned long, int, int)’
HTTPStream.cpp:(.text.startup+0x49): undefined reference to Poco::MemoryPool::~MemoryPool()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPChunkedStream.o): In functionPoco::Net::HTTPChunkedInputStream::operator new(unsigned long)’:
HTTPChunkedStream.cpp:(.text+0xb56): undefined reference to Poco::MemoryPool::get()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPChunkedStream.o): In functionPoco::Net::HTTPChunkedInputStream::operator delete(void*)’:
HTTPChunkedStream.cpp:(.text+0xb69): undefined reference to Poco::MemoryPool::release(void\*)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPChunkedStream.o): In functionPoco::Net::HTTPChunkedOutputStream::operator new(unsigned long)’:
HTTPChunkedStream.cpp:(.text+0xdb6): undefined reference to Poco::MemoryPool::get()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPChunkedStream.o): In functionPoco::Net::HTTPChunkedOutputStream::operator delete(void*)’:
HTTPChunkedStream.cpp:(.text+0xdc9): undefined reference to Poco::MemoryPool::release(void\*)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPChunkedStream.o): In function_GLOBAL__sub_I__ZN4Poco3Net20HTTPChunkedStreamBufC2ERNS0_11HTTPSessionESt13_Ios_Openmode’:
HTTPChunkedStream.cpp:(.text.startup+0x13): undefined reference to Poco::MemoryPool::MemoryPool(unsigned long, int, int)' HTTPChunkedStream.cpp:(.text.startup+0x22): undefined reference toPoco::MemoryPool::~MemoryPool()’
HTTPChunkedStream.cpp:(.text.startup+0x3a): undefined reference to Poco::MemoryPool::MemoryPool(unsigned long, int, int)' HTTPChunkedStream.cpp:(.text.startup+0x49): undefined reference toPoco::MemoryPool::~MemoryPool()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPDigestCredentials.o): In function (anonymous namespace)::digest(Poco::DigestEngine&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&) [clone .constprop.43]': HTTPDigestCredentials.cpp:(.text+0x88): undefined reference toPoco::MD5Engine::digest()’
HTTPDigestCredentials.cpp:(.text+0x93): undefined reference to Poco::DigestEngine::digestToHex(std::vector<unsigned char, std::allocator<unsigned char> > const&)' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPDigestCredentials.o): In functionPoco::Net::HTTPDigestCredentials::createNonce()’:
HTTPDigestCredentials.cpp:(.text+0x2e6): undefined reference to Poco::MD5Engine::MD5Engine()' HTTPDigestCredentials.cpp:(.text+0x343): undefined reference toPoco::MD5Engine::digest()’
HTTPDigestCredentials.cpp:(.text+0x34e): undefined reference to Poco::DigestEngine::digestToHex(std::vector<unsigned char, std::allocator<unsigned char> > const&)' HTTPDigestCredentials.cpp:(.text+0x358): undefined reference toPoco::MD5Engine::~MD5Engine()’
HTTPDigestCredentials.cpp:(.text+0x44a): undefined reference to Poco::MD5Engine::~MD5Engine()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPDigestCredentials.o): In functionPoco::Net::HTTPDigestCredentials::verifyAuthParams(Poco::Net::HTTPRequest const&, Poco::Net::HTTPAuthenticationParams const&) const’:
HTTPDigestCredentials.cpp:(.text+0x4f1): undefined reference to Poco::MD5Engine::MD5Engine()' HTTPDigestCredentials.cpp:(.text+0x7ba): undefined reference toPoco::MD5Engine::~MD5Engine()’
HTTPDigestCredentials.cpp:(.text+0xdb0): undefined reference to Poco::MD5Engine::~MD5Engine()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPDigestCredentials.o): In functionPoco::Net::HTTPDigestCredentials::updateAuthParams(Poco::Net::HTTPRequest const&)’:
HTTPDigestCredentials.cpp:(.text+0x14b7): undefined reference to Poco::MD5Engine::MD5Engine()' HTTPDigestCredentials.cpp:(.text+0x179b): undefined reference toPoco::MD5Engine::~MD5Engine()’
HTTPDigestCredentials.cpp:(.text+0x1dec): undefined reference to Poco::MD5Engine::~MD5Engine()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPBasicCredentials.o): In functionPoco::Net::HTTPBasicCredentials::parseAuthInfo(std::basic_string<char, std::char_traits, std::allocator > const&)’:
HTTPBasicCredentials.cpp:(.text+0x2cb): undefined reference to Poco::Base64Decoder::Base64Decoder(std::basic\_istream<char, std::char\_traits<char> >&)' HTTPBasicCredentials.cpp:(.text+0x3af): undefined reference toPoco::Base64Decoder::~Base64Decoder()’
HTTPBasicCredentials.cpp:(.text+0x56b): undefined reference to Poco::Base64Decoder::~Base64Decoder()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPBasicCredentials.o): In functionPoco::Net::HTTPBasicCredentials::authenticate(Poco::Net::HTTPRequest&)’:
HTTPBasicCredentials.cpp:(.text+0x923): undefined reference to Poco::Base64Encoder::Base64Encoder(std::basic\_ostream<char, std::char\_traits<char> >&)' HTTPBasicCredentials.cpp:(.text+0x92b): undefined reference toPoco::Base64EncoderIOS::rdbuf()’
HTTPBasicCredentials.cpp:(.text+0x935): undefined reference to Poco::Base64EncoderBuf::setLineLength(int)' HTTPBasicCredentials.cpp:(.text+0x974): undefined reference toPoco::Base64EncoderIOS::close()’
HTTPBasicCredentials.cpp:(.text+0xa21): undefined reference to Poco::Base64Encoder::~Base64Encoder()' HTTPBasicCredentials.cpp:(.text+0xc5b): undefined reference toPoco::Base64Encoder::~Base64Encoder()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPClientSession.o): In function Poco::Net::HTTPClientSession::sendRequest(Poco::Net::HTTPRequest&)': HTTPClientSession.cpp:(.text+0x10b0): undefined reference toPoco::CountingOutputStream::CountingOutputStream()’
HTTPClientSession.cpp:(.text+0x1117): undefined reference to Poco::CountingOutputStream::~CountingOutputStream()' HTTPClientSession.cpp:(.text+0x1156): undefined reference toPoco::CountingOutputStream::CountingOutputStream()’
HTTPClientSession.cpp:(.text+0x12bb): undefined reference to Poco::CountingOutputStream::~CountingOutputStream()' HTTPClientSession.cpp:(.text+0x1357): undefined reference toPoco::CountingOutputStream::~CountingOutputStream()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPClientSession.o): In function Poco::Net::HTTPClientSession::proxyAuthenticateImpl(Poco::Net::HTTPRequest&)': HTTPClientSession.cpp:(.text+0x168d): undefined reference toPoco::Base64Encoder::Base64Encoder(std::basic_ostream<char, std::char_traits >&)’
HTTPClientSession.cpp:(.text+0x16cc): undefined reference to Poco::Base64EncoderIOS::close()' HTTPClientSession.cpp:(.text+0x17af): undefined reference toPoco::Base64Encoder::~Base64Encoder()’
HTTPClientSession.cpp:(.text+0x19b8): undefined reference to Poco::Base64Encoder::~Base64Encoder()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o): In functionPoco::Net::HTTPStreamFactory::~HTTPStreamFactory()’:
HTTPStreamFactory.cpp:(.text+0x46): undefined reference to Poco::URIStreamFactory::~URIStreamFactory()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o): In functionPoco::Net::HTTPStreamFactory::open(Poco::URI const&)’:
HTTPStreamFactory.cpp:(.text+0x4af): undefined reference to Poco::NullOutputStream::NullOutputStream()' HTTPStreamFactory.cpp:(.text+0x4c1): undefined reference toPoco::StreamCopier::copyStream(std::basic_istream<char, std::char_traits >&, std::basic_ostream<char, std::char_traits >&, unsigned long)’
HTTPStreamFactory.cpp:(.text+0x4db): undefined reference to Poco::NullOutputStream::~NullOutputStream()' HTTPStreamFactory.cpp:(.text+0x66c): undefined reference toPoco::URIRedirection::URIRedirection(std::basic_string<char, std::char_traits, std::allocator > const&)’
HTTPStreamFactory.cpp:(.text+0xb19): undefined reference to Poco::NullOutputStream::~NullOutputStream()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o): In functionPoco::Net::HTTPStreamFactory::HTTPStreamFactory()’:
HTTPStreamFactory.cpp:(.text+0xc35): undefined reference to Poco::URIStreamFactory::URIStreamFactory()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o): In functionPoco::Net::HTTPStreamFactory::HTTPStreamFactory(std::basic_string<char, std::char_traits, std::allocator > const&, unsigned short)’:
HTTPStreamFactory.cpp:(.text+0xc7c): undefined reference to Poco::URIStreamFactory::URIStreamFactory()' HTTPStreamFactory.cpp:(.text+0xcc1): undefined reference toPoco::URIStreamFactory::~URIStreamFactory()’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o): In function Poco::Net::HTTPStreamFactory::HTTPStreamFactory(std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, unsigned short, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&, std::basic\_string<char, std::char\_traits<char>, std::allocator<char> > const&)': HTTPStreamFactory.cpp:(.text+0xd05): undefined reference toPoco::URIStreamFactory::URIStreamFactory()’
HTTPStreamFactory.cpp:(.text+0xd64): undefined reference to Poco::URIStreamFactory::~URIStreamFactory()' ../../../libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o): In functionPoco::Net::HTTPStreamFactory::registerFactory()’:
HTTPStreamFactory.cpp:(.text+0xdbf): undefined reference to Poco::URIStreamOpener::defaultOpener()' HTTPStreamFactory.cpp:(.text+0xdcf): undefined reference toPoco::URIStreamOpener::registerStreamFactory(std::basic_string<char, std::char_traits, std::allocator > const&, Poco::URIStreamFactory*)’
…/…/…/libs/poco/lib/linux64/libPocoNet.a(HTTPStreamFactory.o):(.rodata._ZTIN4Poco3Net17HTTPStreamFactoryE[typeinfo for Poco::Net::HTTPStreamFactory]+0x10): undefined reference to `typeinfo for Poco::URIStreamFactory’
collect2: ld returned 1 exit status
make: *** [bin/openNI] Error 1

tk, are you able to run other OF projects? “./libs/openFrameworksCompiled/lib/linux64/” surprises me if you are on 32bit

I am able to run other OF programs. Only this ofxOpenNI example is failing with those error mentioned above.

you are building with code::blocks? which workspace are you using?

I tried compiling it in both command prompt and code::blocks. In code::blocks, i changed the reference to 32 bit libraries.

I think the makefile is outdated. try to copy Makefile, config.make and addons.make from another addon example (examples/addons/opencvExample) and try again. don’t forget to add all addons to addons.make.

I have already copied the makefile,config file from example folder and tried compiling it as well. After which I have got the errors.

Still I am getting the following errors

ofxHandGenerator.cpp:(.text+0x45f): undefined reference to xnOSMalloc' ofxHandGenerator.cpp:(.text+0x49d): undefined reference toxnRegisterHandCallbacks’
ofxHandGenerator.cpp:(.text+0x4ad): undefined reference to xnOSFree' obj/i686Release/src/ofxHandGenerator.o: In functionofxHandGenerator::stopTrackHands()’:
ofxHandGenerator.cpp:(.text+0x502): undefined reference to xnUnregisterHandCallbacks' ofxHandGenerator.cpp:(.text+0x50a): undefined reference toxnOSFree’

I copied the following so files to location /addons/ofxOpenNI/libs/openni/lib/linux and it got compiled successfully. Need to test it out with kinect, left the kinect @ work. :frowning:

libnimCodecs.so libnimMockNodes.so libnimRecorder.so libOpenNI.jni.so libOpenNI.so

Finally it worked. ofxOpenNI works well in ubuntu 12.04 32 bit