hvfrancesco / lpmt

little projection mapping tool
http://www.hv-a.com/lpmt
GNU General Public License v3.0
150 stars 37 forks source link

error: request for member ‘draw’ in ‘ofEvents’, which is of non-class type ‘ofCoreEvents&() #3

Closed benbridts closed 12 years ago

benbridts commented 12 years ago

I'm trying to compile lpmt on a Raspberry Pi with Arch ARM.

This it what I've done. Can you tell me If i've forgotten something or done something wrong?

EDIT: I always got the master branch from each project

But when I run make I get these errors (output from stderr)

./src/testApp.cpp: In member function ‘void testApp::prepare()’:
./src/testApp.cpp:295:21: warning: unused variable ‘totalPixels’ [-Wunused-variable]
./src/testApp.cpp: In member function ‘virtual void testApp::keyPressed(int)’:
./src/testApp.cpp:534:17: warning: unused variable ‘totalPixels’ [-Wunused-variable]
./src/quad.cpp: In member function ‘void quad::draw()’:
./src/quad.cpp:539:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../../addons/ofxXmlSettings/src/ofxXmlSettings.cpp: In member function ‘int ofxXmlSettings::getNumTags(const string&)’:
../../../addons/ofxXmlSettings/src/ofxXmlSettings.cpp:275:14: warning: variable ‘tagHandle’ set but not used [-Wunused-but-set-variable]
../../../addons/ofxNetwork/src/ofxUDPManager.cpp: In member function ‘int ofxUDPManager::SendAll(const char*, int)’:
../../../addons/ofxNetwork/src/ofxUDPManager.cpp:226:34: warning: narrowing conversion of ‘((ofxUDPManager*)this)->ofxUDPManager::m_dwTimeoutSend’ from ‘long unsigned int’ to ‘__time_t {aka long int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
../../../addons/ofxNetwork/src/ofxTCPManager.cpp: In member function ‘bool ofxTCPManager::Accept(ofxTCPManager&)’:
../../../addons/ofxNetwork/src/ofxTCPManager.cpp:124:29: warning: missing braces around initializer for ‘__fd_mask [32] {aka long int [32]}’ [-Wmissing-braces]
../../../addons/ofxNetwork/src/ofxTCPManager.cpp:125:37: warning: narrowing conversion of ‘((ofxTCPManager*)this)->ofxTCPManager::m_dwTimeoutAccept’ from ‘long unsigned int’ to ‘__time_t {aka long int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
../../../addons/ofxNetwork/src/ofxTCPManager.cpp: In member function ‘int ofxTCPManager::Send(const char*, int)’:
../../../addons/ofxNetwork/src/ofxTCPManager.cpp:229:34: warning: narrowing conversion of ‘((ofxTCPManager*)this)->ofxTCPManager::m_dwTimeoutSend’ from ‘long unsigned int’ to ‘__time_t {aka long int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
../../../addons/ofxNetwork/src/ofxTCPManager.cpp: In member function ‘int ofxTCPManager::SendAll(const char*, int)’:
../../../addons/ofxNetwork/src/ofxTCPManager.cpp:256:34: warning: narrowing conversion of ‘((ofxTCPManager*)this)->ofxTCPManager::m_dwTimeoutSend’ from ‘long unsigned int’ to ‘__time_t {aka long int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
../../../addons/ofxNetwork/src/ofxTCPManager.cpp: In member function ‘int ofxTCPManager::Receive(char*, int)’:
../../../addons/ofxNetwork/src/ofxTCPManager.cpp:297:36: warning: narrowing conversion of ‘((ofxTCPManager*)this)->ofxTCPManager::m_dwTimeoutSend’ from ‘long unsigned int’ to ‘__time_t {aka long int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
../../../addons/ofxNetwork/src/ofxTCPManager.cpp: In member function ‘int ofxTCPManager::ReceiveAll(char*, int)’:
../../../addons/ofxNetwork/src/ofxTCPManager.cpp:324:34: warning: narrowing conversion of ‘((ofxTCPManager*)this)->ofxTCPManager::m_dwTimeoutSend’ from ‘long unsigned int’ to ‘__time_t {aka long int}’ inside { } is ill-formed in C++11 [-Wnarrowing]
../../../addons/ofxNetwork/src/ofxTCPServer.cpp: In member function ‘bool ofxTCPServer::sendToAll(std::string)’:
../../../addons/ofxNetwork/src/ofxTCPServer.cpp:105:10: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘void mpeClientTCP::start()’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:53:28: error: request for member ‘draw’ in ‘ofEvents’, which is of non-class type ‘ofCoreEvents&()’
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:59:26: error: request for member ‘update’ in ‘ofEvents’, which is of non-class type ‘ofCoreEvents&()’
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘void mpeClientTCP::retryConnectionLoop(ofEventArgs&)’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:73:30: error: request for member ‘update’ in ‘ofEvents’, which is of non-class type ‘ofCoreEvents&()’
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘void mpeClientTCP::draw(ofEventArgs&)’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:85:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘void mpeClientTCP::placeScreen3D()’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:314:11: warning: unused variable ‘a’ [-Wunused-variable]
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘virtual void mpeClientTCP::threadedFunction()’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:420:27: error: request for member ‘update’ in ‘ofEvents’, which is of non-class type ‘ofCoreEvents&()’
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘void mpeClientTCP::read(std::string)’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:516:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp: In member function ‘void mpeClientTCP::stop()’:
../../../addons/ofxMostPixelsEver/src/mpeClientTCP.cpp:604:29: error: request for member ‘draw’ in ‘ofEvents’, which is of non-class type ‘ofCoreEvents&()’
make: *** [obj/armv6lRelease/addons/ofxMostPixelsEver/src/mpeClientTCP.o] Error 1

You can see the output of make clean; make > log.txt 2>&1 here

hvfrancesco commented 12 years ago

the error in mostPixelsEver addon is due to a change introduced in OF 071, you must change any occurrence of 'ofEvents' to 'ofEvents()'. I suggest you to get ofxSimpleGuiToo from my branch as well, as it is tailored for LPMT. Actually you should probably expect more troubles in compiling lpmt on rasperry pi, I'm not sure OF has been tested on the pi yet, and porting things to it seems quite a hard job. I'm very curious about it, as I just got a rasperry pi myself. please, keep me informed about your effort.

benbridts commented 12 years ago

Update:

Compiling seems to work now, but the linker fails on some missing static libs. So then I did (not ideal, but good enough when trying to get things working)

Now i get make: *** No rule to make target../../../libs/poco/lib/android/armeabi/libPocoUtil.a', needed by bin/lpmt'. Stop. There is a libPocoUtil.a for linux(i386) but not for arm, so I'm now going to try to compile libPoco on the RPI

hvfrancesco commented 12 years ago

I'm afraid porting OF on raspi needs to find a solution to the problem of Glut not being usable with OpenGL ES.