cocos2d-x3.2在mac os下制作编译.so提示ui错误解决办法

cocos2d-x3.2在mac os下制作编译.so提示ui错误解决办法,第1张

概述cocos2d-x3.2在mac os下制作编译.so提示ui错误: 用cocos compile -p android编译提示错误。 jni/../../Classes/GameMenuScene.cpp:53: error: undefined reference to 'cocos2d::ui::Button::create(std::string const&, std::string c

cocos2d-x3.2在mac os下制作编译.so提示ui错误:


用cocos compile -p androID编译提示错误。

jni/../../Classes/GameMenuScene.cpp:53: error: undefined reference to 'cocos2d::ui::button::create(std::string const&,std::string const&,cocos2d::ui::Widget::TextureResType)'

jni/../../Classes/GameMenuScene.cpp:56: error: undefined reference to 'cocos2d::ui::button::setTitleText(std::string const&)'

jni/../../Classes/GameMenuScene.cpp:58: error: undefined reference to 'cocos2d::ui::Widget::addtouchEventListener(std::function<voID (cocos2d::Ref*,cocos2d::ui::Widget::touchEventType)>)'



解决办法:


在ecplise中找到jni下找到androID.mk,打开它,把LOCAL_WHolE_STATIC_liBRARIES += cocostudio_static和LOCAL_WHolE_STATIC_liBRARIES += cocos_extension_static前面的#除掉,保存,再进行编译一般就ok了,再不行就把$(call import-module,editor-support/cocostudio)和 # LOCAL_WHolE_STATIC_liBRARIES += Box2d_static

# LOCAL_WHolE_STATIC_liBRARIES += cocosbuilder_static

# LOCAL_WHolE_STATIC_liBRARIES += spine_static

LOCAL_WHolE_STATIC_liBRARIES += cocostudio_static

# LOCAL_WHolE_STATIC_liBRARIES += cocos_network_static

LOCAL_WHolE_STATIC_liBRARIES += cocos_extension_static



include $(BUILD_SHARED_liBRARY)


$(call import-module,.)


# $(call import-module,Box2D)

$(call import-module,editor-support/cocostudio)

总结

以上是内存溢出为你收集整理的cocos2d-x3.2在mac os下制作编译.so提示ui错误解决办法全部内容,希望文章能够帮你解决cocos2d-x3.2在mac os下制作编译.so提示ui错误解决办法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1004631.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存