ofxStreetView icon indicating copy to clipboard operation
ofxStreetView copied to clipboard

Cannot build the addon

Open Samsy opened this issue 10 years ago • 2 comments

Linux mint 16

../../addons/ofxStreetView/src/ofxStreetView.cpp:25:19: error: cannot allocate an object of abstract type ‘ofxStreetView’ ofxStreetView(); ^ In file included from ../../addons/ofxStreetView/src/ofxStreetView.cpp:8:0: ../../addons/ofxStreetView/src/ofxStreetView.h:25:7: note: because the following virtual functions are pure within ‘ofxStreetView’: class ofxStreetView : public ofBaseHasTexture { ^ In file included from ../../libs/openFrameworks/ofMain.h:15:0, from ../../addons/ofxStreetView/src/ofxStreetView.h:12, from ../../addons/ofxStreetView/src/ofxStreetView.cpp:8: ../../libs/openFrameworks/types/ofBaseTypes.h:93:28: note: virtual const ofTexture& ofBaseHasTexture::getTextureReference() const virtual const ofTexture & getTextureReference() const=0; ^ ../../libs/openFrameworks/types/ofBaseTypes.h:95:15: note: virtual bool ofBaseHasTexture::isUsingTexture() const virtual bool isUsingTexture() const=0; ^ ../../addons/ofxStreetView/src/ofxStreetView.cpp: In constructor ‘ofxStreetView::ofxStreetView(double, double)’: ../../addons/ofxStreetView/src/ofxStreetView.cpp:30:19: error: cannot allocate an object of abstract type ‘ofxStreetView’ ofxStreetView(); ^ In file included from ../../addons/ofxStreetView/src/ofxStreetView.cpp:8:0: ../../addons/ofxStreetView/src/ofxStreetView.h:25:7: note: since type ‘ofxStreetView’ has pure virtual functions class ofxStreetView : public ofBaseHasTexture { ^ ../../addons/ofxStreetView/src/ofxStreetView.cpp: In member function ‘std::string ofxStreetView::getCloseLinkTo(float)’: ../../addons/ofxStreetView/src/ofxStreetView.cpp:321:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < links.size(); i++) { ^ ../../addons/ofxStreetView/src/ofxStreetView.cpp: In member function ‘void ofxStreetView::update()’: ../../addons/ofxStreetView/src/ofxStreetView.cpp:392:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i= 0; i < panoImages.size(); i++){ ^ make[1]: *** [../../addons/obj/linux64/Release/ofxStreetView/src/ofxStreetView.o] Error 1 make[1]: Leaving directory `/home/mastermind/openFrameworks/apps/streetView' make: *** [Release] Error 2

Samsy avatar Oct 07 '14 12:10 Samsy

If you are building with the master branch of openFrameworks many of the base classes (ofBaseHasTexture etc) now have const virtual methods. This addon likely needs to be updated to work with master branch, OR use it with 0.8.4.

bakercp avatar Oct 07 '14 16:10 bakercp

Yep i cloned the master OF repo today ! Right i'll try it so, thank you

Samsy avatar Oct 07 '14 16:10 Samsy