jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4
GNU General Public License v2.0
180 stars 61 forks source link

Can't find ofxOMXPlayerListener.h #150

Closed minizzZ closed 5 years ago

minizzZ commented 5 years ago

I’m trying to install PocketVJ on a Raspberry Pi 3B+ and I get a fatal error about not finding ofxOMXPlayerListener.h. You can look at the installation for it here. This is what I see in the terminal: `In file included from /home/pi/openFrameworks/addons/ofxOMXPlayer/src/OMXAudio.h:30:0, from /home/pi/openFrameworks/addons/ofxOMXPlayer/src/ofxOMXPlayerEngine.h:7, from /home/pi/openFrameworks/addons/ofxOMXPlayer/src/ofxOMXPlayer.h:3, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/omPlayer.h:3, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/mediaPlayer.h:2, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/HPlayer.h:4, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/main.cpp:2: /home/pi/openFrameworks/addons/ofxOMXPlayer/src/linux/PlatformDefs.h:172:0: warning: "APIENTRY" redefined

define APIENTRY WINAPI

In file included from ../../../libs/openFrameworks/app/ofAppGLFWWindow.h:6:0, from ../../../libs/openFrameworks/ofMain.h:80, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/main.cpp:1: ../../../libs/glfw/include/GLFW/glfw3.h:98:0: note: this is the location of the previous definition

define APIENTRY

In file included from /home/pi/openFrameworks/apps/myApps/HPlayer/src/mediaPlayer.h:2:0, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/HPlayer.h:4, from /home/pi/openFrameworks/apps/myApps/HPlayer/src/main.cpp:2: /home/pi/openFrameworks/apps/myApps/HPlayer/src/omPlayer.h:4:34: fatal error: ofxOMXPlayerListener.h: No such file or directory

include "ofxOMXPlayerListener.h"

                              ^

compilation terminated. ../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:200: recipe for target 'obj/linuxarmv6l/Release/src/main.o' failed make[1]: [obj/linuxarmv6l/Release/src/main.o] Error 1 make[1]: Leaving directory '/home/pi/openFrameworks/apps/myApps/HPlayer' ../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target 'Release' failed make: [Release] Error 2`

I had these sort of errors before and than I would just nano the text of the .h and change where it could find the file. Now I looked my entire Raspberry even in the root but I can’t find ofxOMXPlayerListener.h. Even when I look on the internet I can’t find omxplayerlistener anywhere. Now I’m a bit of a noob when it comes to Raspberries so i even don’t know what a listener is. Can you help me?

jvcleave commented 5 years ago

try deleting the line #include "ofxOMXPlayerListener.h"

ofxOMXPlayerListener is defined in the file ofxOMXPlayer.h so it should be fine

minizzZ commented 5 years ago

Thanks, that did the trick. NowI have another poco problem. I've changed the poco version like in here but now I get this:

`ofImage.cpp:(.text+0x237c): undefined reference to `Poco::URI::URI(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofImage.o): In function `bool loadImage<unsigned short>(ofPixels_<unsigned short>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
ofImage.cpp:(.text+0x2830): undefined reference to `Poco::URI::URI(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofImage.o): In function `bool loadImage<unsigned char>(ofPixels_<unsigned char>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
ofImage.cpp:(.text+0x2ce4): undefined reference to `Poco::URI::URI(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofUtils.o): In function `ofLaunchBrowser(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
ofUtils.cpp:(.text+0x870c): undefined reference to `Poco::URI::URI(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofUtils.cpp:(.text+0x8734): undefined reference to `Poco::URI::setQuery(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofUtils.cpp:(.text+0x8760): undefined reference to `Poco::URI::toString[abi:cxx11]() const'
ofUtils.cpp:(.text+0x8948): undefined reference to `Poco::URI::toString[abi:cxx11]() const'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofURLFileLoader.o): In function `ofURLFileLoaderImpl::threadedFunction()':
ofURLFileLoader.cpp:(.text+0x3c58): undefined reference to `Poco::Thread::setName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofURLFileLoader.cpp:(.text+0x53ac): undefined reference to `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
ofURLFileLoader.cpp:(.text+0x5430): undefined reference to `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofURLFileLoader.o): In function `ofURLFileLoaderImpl::handleRequest(ofHttpRequest)':
ofURLFileLoader.cpp:(.text+0x5e3c): undefined reference to `Poco::URI::URI(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofURLFileLoader.cpp:(.text+0x5e54): undefined reference to `Poco::URI::getPathAndQuery[abi:cxx11]() const'
ofURLFileLoader.cpp:(.text+0x5ea0): undefined reference to `Poco::Net::HTTPRequest::HTTPRequest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofURLFileLoader.cpp:(.text+0x5ec0): undefined reference to `Poco::Net::NameValueCollection::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofURLFileLoader.cpp:(.text+0x5f28): undefined reference to `Poco::Net::HTTPSClientSession::HTTPSClientSession(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short)'
ofURLFileLoader.cpp:(.text+0x6238): undefined reference to `Poco::Net::HTTPClientSession::HTTPClientSession(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short)'
ofURLFileLoader.cpp:(.text+0x63f0): undefined reference to `Poco::Exception::displayText[abi:cxx11]() const'
ofURLFileLoader.cpp:(.text+0x6484): undefined reference to `Poco::Exception::displayText[abi:cxx11]() const'
ofURLFileLoader.cpp:(.text+0x66e8): undefined reference to `Poco::Net::HTTPRequest::HTTP_GET[abi:cxx11]'
ofURLFileLoader.cpp:(.text+0x66ec): undefined reference to `Poco::Net::HTTPMessage::HTTP_1_1[abi:cxx11]'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofURLFileLoader.o): In function `ofURLFileLoaderImpl::ofURLFileLoaderImpl()':
ofURLFileLoader.cpp:(.text+0x7208): undefined reference to `Poco::Net::Context::Context(Poco::Net::Context::Usage, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Poco::Net::Context::VerificationMode, int, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
ofURLFileLoader.cpp:(.text+0x77bc): undefined reference to `Poco::Exception::displayText[abi:cxx11]() const'
ofURLFileLoader.cpp:(.text+0x791c): undefined reference to `Poco::Exception::displayText[abi:cxx11]() const'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofURLFileLoader.o): In function `Poco::ScopedLock<Poco::FastMutex>::~ScopedLock()':
ofURLFileLoader.cpp:(.text._ZN4Poco10ScopedLockINS_9FastMutexEED2Ev[_ZN4Poco10ScopedLockINS_9FastMutexEED5Ev]+0x5c): undefined reference to `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofThread.o): In function `ofThread::run()':
ofThread.cpp:(.text+0x284): undefined reference to `Poco::Exception::displayText[abi:cxx11]() const'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofThread.o): In function `ofThread::ofThread()':
ofThread.cpp:(.text+0x6f4): undefined reference to `Poco::Thread::setName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a(ofThread.o): In function `ofThread::getThreadName[abi:cxx11]() const':
ofThread.cpp:(.text+0xce0): undefined reference to `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
ofThread.cpp:(.text+0xd3c): undefined reference to `Poco::SystemException::SystemException(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../../../addons/obj/linuxarmv6l/Release/ofxCrypto/src/ofxCrypto.o: In function `ofxCrypto::md5(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
ofxCrypto.cpp:(.text+0x12c4): undefined reference to `Poco::DigestEngine::digestToHex[abi:cxx11](std::vector<unsigned char, std::allocator<unsigned char> > const&)'
../../../addons/obj/linuxarmv6l/Release/ofxCrypto/src/ofxCrypto.o: In function `ofxCrypto::sha1(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
ofxCrypto.cpp:(.text+0x1320): undefined reference to `Poco::DigestEngine::digestToHex[abi:cxx11](std::vector<unsigned char, std::allocator<unsigned char> > const&)'
../../../libs/poco/lib/linuxarmv6l/libPocoCrypto.a(OpenSSLInitializer.o): In function `Poco::Crypto::OpenSSLInitializer::uninitialize()':
OpenSSLInitializer.cpp:(.text+0x290): undefined reference to `EVP_cleanup'
OpenSSLInitializer.cpp:(.text+0x294): undefined reference to `ERR_free_strings'
OpenSSLInitializer.cpp:(.text+0x29c): undefined reference to `CRYPTO_set_locking_callback'
OpenSSLInitializer.cpp:(.text+0x2a4): undefined reference to `CRYPTO_set_id_callback'
OpenSSLInitializer.cpp:(.text+0x2f0): undefined reference to `CONF_modules_free'
../../../libs/poco/lib/linuxarmv6l/libPocoCrypto.a(OpenSSLInitializer.o): In function `Poco::Crypto::OpenSSLInitializer::initialize()':
OpenSSLInitializer.cpp:(.text+0x374): undefined reference to `SSL_library_init'
OpenSSLInitializer.cpp:(.text+0x378): undefined reference to `SSL_load_error_strings'
OpenSSLInitializer.cpp:(.text+0x37c): undefined reference to `OPENSSL_add_all_algorithms_noconf'
OpenSSLInitializer.cpp:(.text+0x3a4): undefined reference to `CRYPTO_num_locks'
OpenSSLInitializer.cpp:(.text+0x408): undefined reference to `CRYPTO_set_locking_callback'
OpenSSLInitializer.cpp:(.text+0x410): undefined reference to `CRYPTO_set_id_callback'
OpenSSLInitializer.cpp:(.text+0x418): undefined reference to `CRYPTO_set_dynlock_create_callback'
OpenSSLInitializer.cpp:(.text+0x420): undefined reference to `CRYPTO_set_dynlock_lock_callback'
OpenSSLInitializer.cpp:(.text+0x428): undefined reference to `CRYPTO_set_dynlock_destroy_callback'
../../../libs/poco/lib/linuxarmv6l/libPocoNetSSL.a(Context.o): In function `Poco::Net::Context::createSSLContext()':
Context.cpp:(.text+0x794): undefined reference to `SSLv23_client_method'
Context.cpp:(.text+0x7a4): undefined reference to `SSLv23_server_method'
../../../libs/poco/lib/linuxarmv6l/libPocoCrypto.a(X509Certificate.o): In function `Poco::Crypto::X509Certificate::extractNames(std::string&, std::set<std::string, std::less<std::string>, std::allocator<std::string> >&) const':
X509Certificate.cpp:(.text+0xe88): undefined reference to `sk_num'
X509Certificate.cpp:(.text+0xe9c): undefined reference to `sk_value'
collect2: error: ld returned 1 exit status
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:382: recipe for target 'bin/HPlayer' failed
make[1]: *** [bin/HPlayer] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/apps/myApps/HPlayer'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target 'Release' failed
`
jvcleave commented 5 years ago

sorry - no idea about Poco :/