转 "extensions/ExtensionMacros.h”: No such file 问题

简介:

    今天在做2.x移植到3.1.1的时候候导入扩展包出现了错误,经过多方查找,最后终于把问题解决了,分享出来,给大家提供一个参考。

第一步,我们需要导入三个包,导入方式:解决方案(右键)-》添加-》现有项目

extensionmacros.h,cocos2d-x,error,包括,学习0

导入第一个libGUI.vcxproj  (H:\mycompany\EditBoxTest\cocos2d\cocos\ui\proj.win32)

extensionmacros.h,cocos2d-x,error,包括,学习1

导入第二个libExtensions.vcxproj  (H:\mycompany\EditBoxTest\cocos2d\extensions\proj.win32)extensionmacros.h,cocos2d-x,error,包括,学习2

导入第三个libCocosStudio.vcxproj   (H:\mycompany\EditBoxTest\cocos2d\cocos\editor-support\cocostudio\proj.win32)extensionmacros.h,cocos2d-x,error,包括,学习3

导完之后,进行第二步。


第二步,要把我们导入的项目引用到我们的项目里,这也是出现那个问题的原因,,

在工程名上右键-》引用-》添加新引用

extensionmacros.h,cocos2d-x,error,包括,学习4

然后把我们新添加的项目前边的复选框,选上就行了


extensionmacros.h,cocos2d-x,error,包括,学习5

第三步为我们的项目添加包含目录

项目名右键-》属性-》C/C++-》附加包含目录-》编辑


extensionmacros.h,cocos2d-x,error,包括,学习6

填入一下内容

$(EngineRoot)

$(EngineRoot)cocos

$(EngineRoot)cocos\editor-support


最后,编译一下,就没有那个错误了


备注:如果遇到“cocos-ext.h”: No such file or directory,再加上下面一句就好:

$(EngineRoot)extensions


原文地址:http://blog.csdn.net/wxq_wuxingquan/article/details/38779755

目录
相关文章
|
机器学习/深度学习 Linux
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
216 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
Get Files In Folder [ DTFolderFiles ] Plug-in description
Get Files In Folder [ DTFolderFiles ] Plug-in description
48 0
3.4 Files
3.4 Files
62 0
files 2
files 2
68 0
Get Files In Folder [ DTFolderFiles ] 插件说明
Get Files In Folder [ DTFolderFiles ] 插件说明
75 0
Get Files In Folder [ DTFolderFiles ] 插件说明
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
186 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
完美解决common_define.h: No such file or directory
完美解决common_define.h: No such file or directory
232 0
完美解决common_define.h: No such file or directory
|
并行计算 TensorFlow 算法框架/工具
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
290 0
fatal error: X11/extensions/Xvlib.h/Xdbe.h: No such file or directory
fatal error: X11/extensions/Xvlib.h/Xdbe.h: No such file or directory
140 0
curses.h: No such file or directory
curses.h: No such file or directory
128 0