找不到cocos2dx editbox extensions / ExtensionExport.h

时间:2019-02-18 10:15:28

标签: linux cocos2d-iphone editbox

我通过使用cocos new创建了项目,并且在使用cocos2dx 3.6时在Windows上可以正常工作,它具有错误

  找不到

extensions / ExtensionExport.h

在带有cmake的centos上。看来它来自editbox,并且我包含了"cc_ext.h""USING_NS_CC_EXT;"。这是CMakeLists.txt文件:

 include_directories(
   /usr/local/include/GLFW
  /usr/include/GLFW
  ${COCOS2D_ROOT}/cocos
  ${COCOS2D_ROOT}/extensions 
  Classes
)

set(GAME_SRC
  Classes/AppDelegate.cpp
  Classes/HelloWorldScene.cpp
  ${PLATFORM_SPECIFIC_SRC}
)

set(GAME_HEADERS
  Classes/AppDelegate.h
  Classes/HelloWorldScene.h   
  ${PLATFORM_SPECIFIC_HEADERS}
)

“ HelloWorldScene.cpp”文件:

#include "HelloWorldScene.h"
#include "cocos-ext.h"
USING_NS_CC;
USING_NS_CC_EXT;
auto pEditBox_name = EditBox::create(Size(200,40),sprite9);    

如何解决?

0 个答案:

没有答案