secondstory / ofxDSHapVideoPlayer

ofxDSHapVideoPlayer is a Hap video player addon for openFrameworks (Windows-only)
Other
37 stars 21 forks source link

Unresolved external symbol load 64-bit #2

Closed Ernesto505 closed 8 years ago

Ernesto505 commented 8 years ago

Hi,

I am trying to compile my application (I am getting the same error with the example code) and I am getting an unresolved external symbol error.

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol gluErrorString referenced in function "public: virtual bool __cdecl ofxDSHapVideoPlayer::load(class std::basic_string<char,struct std::char_traits,class std::allocator >)" (?load@ofxDSHapVideoPlayer@@UEAA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) ofxDSHapVideoPlayerExample I:\of_v0.9.0_vs_release\addons\ofxDSHapVideoPlayer\example\ofxDSHapVideoPlayer.obj 1

I am on OF 0.9.0 and I am using Visual Studio 2015 Community Version. I am trying to compile in 64-bits (it works fine for 32-bits).

mantissa commented 8 years ago

Hey Ernesto, I'm sorry for the late response. Did you ever resolve this compiler issue? Curious if you ran into the same problem with the sample code (which does compile as a 64-bit application)

tobiasebsen commented 8 years ago

The linker error is caused by the call to gluErrorString in the GLU library, which only exist in a 32-bit version. I would suggest commenting out the lines in the code – or even better: write a custom getGlErrorString() to implement.

Ernesto505 commented 8 years ago

Thanks for the replies and sorry for the late response!

I moved on a different project now but I will come back to it and update you with the results.

Ernesto505 commented 8 years ago

So thanks for the suggestion @tobiasebsen!

This worked for the sample app. Now I have to sort it out for my application. Hopefully this would be straightforward.