Sorry the last topic got locked. I want to thanks @hexerror for the help. I was able to generate the lib. I had BUILD_SHARED_LIB on. It was suppose to be off.
But the static lib also gives me the Point/Size/Rect is ambiguous error. I guess only work around for now is to add cocos2d::
I’m open for other solutions like making changes to glfw etc.