Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Cardgame.sln error #9

Open
365minerss opened this issue Jan 17, 2022 · 5 comments
Open

Compile Cardgame.sln error #9

365minerss opened this issue Jan 17, 2022 · 5 comments

Comments

@365minerss
Copy link

image
I use vs2013 to compile Cardgame.sln but there is an error, how can I solve it?

@exmex
Copy link
Owner

exmex commented Jan 17, 2022

Did you install the correct cocos2d SDK?

@365minerss
Copy link
Author

I have installed the sdk but still can't compile. Which android version do I need to use?

@exmex
Copy link
Owner

exmex commented Jan 20, 2022

The mentioned error has nothing to do with android. It cannot find a library required by Cocos2d

@TIS-OMiddle
Copy link

Did you install the correct cocos2d SDK?

@exmex Excuse me for bothering you. Can you give some tips about "install the correct cocos2d SDK"?
I had read the cocos2dx document and downloaded several versions. But every version looks like a demo project and doesn't need to install special sdk. Do you mean that we should copy some file to this project?

Here is some error message: (win10, visutal studio 2013 update 5)

警告	1	warning MSB8004: Intermediate Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Intermediate Directory.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets	363	5	core (Core\core)
错误	2	error MSB3073: 命令“if not exist "F:\HC\HC\Client\Code_Client\projects\..\build\Debug.win32\" mkdir "F:\HC\HC\Client\Code_Client\projects\..\build\Debug.win32\"
xcopy /Y /Q "F:\HC\HC\Client\Code_Core\cocos2dx\proj.win32\..\platform\third_party\win32\libraries\*.*" "F:\HC\HC\Client\Code_Client\projects\..\build\Debug.win32\"

:VCEnd”已退出,代码为 4。	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets	127	5	libcocos2d
错误	3	error LNK1181: 无法打开输入文件“libcocos2d.lib”	F:\HC\HC\Client\Code_Core\CocosDenshion\proj.win32\LINK	libCocosDenshion
警告	4	warning MSB8004: Intermediate Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Intermediate Directory.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets	363	5	Utility
错误	5	error LNK1104: 无法打开文件“glew32.lib”	F:\HC\HC\Client\Code_Core\Utility\LINK	Utility
错误	6	error LNK1104: 无法打开文件“libfreetype2.lib”	F:\HC\HC\Client\Code_Client\projects\Game\proj.win32\LINK	CardGame

image

Or can you share your visual studio version and the cocos2d version?

@exmex
Copy link
Owner

exmex commented Apr 23, 2022

This shows you which version of the cocos SDK you'll need:

cocos2d-2.1rc0-x-2.1.2 @Mar.20 2013

"install" means replacing the cocos2d SDK that is shipped in this repository. Since I probably forgot some dll or lib or any file that prevents you from building the game. It is just a precaution since this file blocked the upload of *.lib and *.dll and alot more files.

Have no idea what it says:

错误	2	error MSB3073: 命令“if not exist "F:\HC\HC\Client\Code_Client\projects\..\build\Debug.win32\" mkdir "F:\HC\HC\Client\Code_Client\projects\..\build\Debug.win32\"
xcopy /Y /Q "F:\HC\HC\Client\Code_Core\cocos2dx\proj.win32\..\platform\third_party\win32\libraries\*.*" "F:\HC\HC\Client\Code_Client\projects\..\build\Debug.win32\"

:VCEnd”已退出,代码为 4。	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets	127	5	libcocos2d

But this prevents libcocos2d from building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants