Errors about GLM sytax when using ofxShadowMap addon

I am a total beginner of OF. I just started 1 month ago.

And I am using Visual Studio 2015…

Today I tried to play around with the add on ofxShadowMap. I just copied the examples and try to build it. Yet, I got a lot of error messages about GLM.

Thought there are other errors but I have the feeling that I need to fix the GLM error first. I would like to know how I can fix it.

Thanks in advance.

PS the followings are the errors when trying to build the example project

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)		name followed by '::' must be a class or namespace name	171022-shadowmaptest	f:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	18	
Error	C3861	'angleAxis': identifier not found	171022-shadowmaptest	F:\studying\siberian federal university\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	18	
Error	C2653	'glm': is not a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	238	
Error	C2653	'glm': is not a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	239	
Error	C2653	'glm': is not a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	241	
Error	C2653	'glm': is not a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	18	
Error	C2653	'glm': is not a class or namespace name (compiling source file ..\..\..\addons\ofxShadowMap-master\src\ofxShadowMap.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxshadowmap-master\src\ofxShadowMap.h	39	
Error	C2653	'glm': is not a class or namespace name (compiling source file src\main.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error	C2653	'glm': is not a class or namespace name (compiling source file src\ofApp.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error	C3861	'inverse': identifier not found	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	239	
Error	C2065	'lastBiasedMatrix': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	246	
Error	C2065	'lastBiasedMatrix': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	270	
Error	C3646	'lastBiasedMatrix': unknown override specifier (compiling source file ..\..\..\addons\ofxShadowMap-master\src\ofxShadowMap.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxshadowmap-master\src\ofxShadowMap.h	39	
Error	C3646	'lastBiasedMatrix': unknown override specifier (compiling source file src\main.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error	C3646	'lastBiasedMatrix': unknown override specifier (compiling source file src\ofApp.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error	C2065	'listener': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	20	
Error	C3646	'listener': unknown override specifier (compiling source file src\main.cpp)	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.h	46	
Error	C3646	'listener': unknown override specifier (compiling source file src\ofApp.cpp)	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.h	46	
Error	C3861	'mat4': identifier not found	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	241	
Error	C2039	'newListener': is not a member of 'ofParameter<bool>'	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	20	
Error	C2065	'NoDefaults': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	248	
Error	C2653	'ofFboBeginMode': is not a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	248	
Error	C2665	'ofLoadMatrix': none of the 2 overloads could convert all the argument types	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	251	
Error	C2039	'orbitDeg': is not a member of 'ofLight'	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	41	
Error	C3536	'ortho': cannot be used before it is initialized	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	238	
Error	C2039	'setCustomUniform1f': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	271	
Error	C2039	'setCustomUniform1f': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	272	
Error	C2039	'setCustomUniform1f': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	273	
Error	C2039	'setCustomUniform1f': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	274	
Error	C2039	'setCustomUniform1i': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	281	
Error	C2039	'setCustomUniformMatrix4f': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	270	
Error	C2039	'Settings': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	214	
Error	C2065	'Settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	214	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	214	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	215	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	216	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	217	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	218	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	219	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	220	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	228	
Error	C2065	'settings': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	229	
Error	C2039	'setup': is not a member of 'ofMaterial'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	229	
Error	C2065	'vec3': undeclared identifier	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	18	
Error	C3536	'viewProjection': cannot be used before it is initialized	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	246	
Error (active)		class "ofLight" has no member "orbitDeg"	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	41	
Error (active)		class "ofParameter<bool>" has no member "newListener"	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	20	
Error (active)		expected a ')'	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	18	
Error (active)		identifier "ofEventListener" is undefined	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.h	46	
Error	C2228	left of '.ambient' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	215	
Error	C2228	left of '.customUniforms' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	220	
Error	C2228	left of '.diffuse' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	216	
Error	C2228	left of '.emissive' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	217	
Error	C2228	left of '.postFragment' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	228	
Error	C2228	left of '.shininess' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	219	
Error	C2228	left of '.specular' must have class/struct/union	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	218	
Error	C4430	missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\..\..\addons\ofxShadowMap-master\src\ofxShadowMap.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxshadowmap-master\src\ofxShadowMap.h	39	
Error	C4430	missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file src\main.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error	C4430	missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file src\main.cpp)	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.h	46	
Error	C4430	missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file src\ofApp.cpp)	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error	C4430	missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file src\ofApp.cpp)	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.h	46	
Error (active)		name followed by '::' must be a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.h	39	
Error (active)		name followed by '::' must be a class or namespace name	171022-shadowmaptest	F:\model\openframeworks\apps\171022-shadowmaptest\171022-shadowmaptest\src\ofApp.cpp	18	
Error	C2146	syntax error: missing ';' before identifier 'settings'	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	214	
Error	C2064	term does not evaluate to a function taking 6 arguments	171022-shadowmaptest	F:\model\openframeworks\addons\ofxShadowMap-master\src\ofxShadowMap.cpp	238

Forgot to mention. I use the release of OF downloaded from http://openframeworks.cc/download/

that addon is only compatible with the nightly builds not with 0.9.8

Thanks for the reply. I will try the nightly build then.

Thanks again!!

Eventually I was able to compile the example of the addon by using nightly build for msys (it seems that there is something wrong with ofxAssimpModelLoader when using Visual Studio 2015).

But I got something like this. I tried playing around with the parameters of the GUI but it is always a black color model. Is there something I missed?

it seems the nightly build system is broken and the latest build is really old. i’ll look into it and hopefully tomorrows nightlies should have the changes required for this to work

Just tried to build from Git. It still gives a black color model after building the project using msys2 for windows.

Trying to play with it for some time. Yet I still got the image I showed above. Is it a bug or there is something I have to change in the code in order to make it work? In fact, I got the following when I make the “darken” parameter near to 1.

Thanks!