ofxHapPlayer compile errors [SOLVED]

C++ and VisualStudio are a new playground for me, so my hope is that the solution might be fairly obvious for those of you who are experienced with these. I’m trying to get a project setup to play videos via ofxHapPlayer.

What I’ve got:
Windows 10 64bit
Visual Studio Express 2012
OpenFrameworks 0.8.4
ofxHapPlayer for OpenFrameworks 0.8

I’ve used the project generator and my project and addons exist entirely within the designated OpenFrameworks folders. I’ve not added any of my own code yet, I’m just trying to get the initial generated project to compile. The issues I’m still tackling are:

Error 5 error C2039: ‘glInternalFormat’ : is not a member of ‘ofTextureData’ d:\of_v0.8.4_vs_release\addons\ofxhapplayer\src\ofxhapplayer.cpp 388 1 ofPlayer
Error 3 error C2555: ‘ofxHapPlayer::getPixels’: overriding virtual function return type differs and is not covariant from ‘ofBaseHasPixels_::getPixels’ d:\of_v0.8.4_vs_release\addons\ofxhapplayer\src\ofxhapplayer.h 104 1 ofPlayer
Error 4 error C2555: ‘ofxHapPlayer::getPixels’: overriding virtual function return type differs and is not covariant from ‘ofBaseVideoPlayer::getPixels’ d:\of_v0.8.4_vs_release\addons\ofxhapplayer\src\ofxhapplayer.h 104 1 ofPlayer

I’ve seen other folk have managed to make ofxHapPlayer work, so I can only assume the problem exists with something I’m doing, and not the addon. Any help is appreciated.

I managed to get an alternative HAP addon working, ofxDSHapVideoPlayer.

It’s specifically for Windows and runs under OpenFrameworks 0.9.3, which solves a number of issues for me.

1 Like