现在尝试用v4版本进行开发,现在v4完全使用的cmake进行build。
我查看了一下,在frameworks/cocos2d-x/cocos/CMakeLists.txt中的spine默认是OFF状态,
我设置成
option(BUILD_EDITOR_SPINE “Build editor support for spine” ON)
后,在build的时候,出现下面的错误
frameworks/cocos2d-x/cocos/editor-support/spine/spine-cocos2dx.cpp:67:23: error: no matching constructor for initialization of 'Texture2D::TexParams'_
(aka 'cocos2d::backend::SamplerDescriptor')_
Texture2D::TexParams textureParams = {filter(self->minFilter), filter(self->magFilter), wrap(self->uWrap), wrap(self->vWrap)};