Warnings and errors on Win32 examples build out of the box

Warnings and errors on Win32 examples build out of the box
0.0 0

#1

(1) I downloaded 3.17 from here: http://www.cocos2d-x.org/download. I unzipped the download to a directory.

(2) I opened the file build/cocos2d-win32.sln in Visual Studio Community 2015.

(3) When loading the projects it told me I needed to install the Windows XP SDK. This seemed very strange but I let it do the install and restarted the machine.

(4) I chose Build Solution from the menu.

(5) I got lots of errors and warnings as shown below (edited for brevity). Am I doing something wrong? It seems like maybe the wrong C++ version is selected somewhere?

1>------ Build started: Project: libcocos2d, Configuration: Debug Win32 ------
1> precheader.cpp
1> AssetsManager.cpp
1> AssetsManagerEx.cpp
1> CCEventAssetsManagerEx.cpp
1> CCEventListenerAssetsManagerEx.cpp
1> Manifest.cpp
1>…\extensions\assets-manager\AssetsManagerEx.cpp(1180): warning C4305: ‘+=’: truncation from ‘double’ to ‘float’

.
.
.

1>…\external\xxhash\xxhash.c(312): warning C4804: ‘/’: unsafe use of type ‘bool’ in operation

.
.
.

1> CCSkeletonNode.cpp
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1546): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\ActionTimeline\CCActionTimelineCache.cpp)
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1593): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\ActionTimeline\CCActionTimelineCache.cpp)

.
.
.

1> CCArmatureDataManager.cpp
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1546): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\ActionTimeline\CSLoader.cpp)
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1593): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\ActionTimeline\CSLoader.cpp)

.
.
.

1> LocalizationManager.cpp
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1546): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\FlatBuffersSerialize.cpp)
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1593): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\FlatBuffersSerialize.cpp)
1> TriggerBase.cpp
1> TriggerMng.cpp
1> TriggerObj.cpp
1> WidgetCallBackHandlerProtocol.cpp
1> ArmatureNodeReader.cpp
1> ButtonReader.cpp
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1546): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\WidgetReader\SkeletonReader\SkeletonNodeReader.cpp)
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1593): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\WidgetReader\SkeletonReader\SkeletonNodeReader.cpp)
1> SliderReader.cpp
1> SpriteReader.cpp
1> TabControlReader.cpp
1> TextAtlasReader.cpp
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1546): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\WidgetReader\TabControlReader\TabControlReader.cpp)
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1593): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\WidgetReader\TabControlReader\TabControlReader.cpp)
1>C:\Cocos2dx\cocos\editor-support/cocostudio/CSParseBinary_generated.h(1546): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’ (compiling source file …\editor-support\cocostudio\WidgetReader\TextAtlasReader\TextAtlasReader.cpp)

.
.
.

1> CCGLProgramState.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include\Shlobj.h(1151): warning C4091: 'typedef ': ignored on left of ‘tagGPFIDL_FLAGS’ when no variable is declared (compiling source file …\platform\win32\CCFileUtils-win32.cpp)
1>…\renderer\CCGLProgramState.cpp(914): warning C4996: ‘cocos2d::UniformValue::setTexture’: was declared deprecated
1> …\renderer\CCGLProgramState.cpp(174): note: see declaration of ‘cocos2d::UniformValue::setTexture’
1>…\renderer\CCGLProgramState.cpp(918): warning C4996: ‘cocos2d::UniformValue::setTexture’: was declared deprecated
1> …\renderer\CCGLProgramState.cpp(174): note: see declaration of ‘cocos2d::UniformValue::setTexture’
1>…\renderer\CCGLProgramState.cpp(935): warning C4996: ‘cocos2d::UniformValue::setTexture’: was declared deprecated
1> …\renderer\CCGLProgramState.cpp(174): note: see declaration of ‘cocos2d::UniformValue::setTexture’
1>…\renderer\CCGLProgramState.cpp(939): warning C4996: ‘cocos2d::UniformValue::setTexture’: was declared deprecated
1> …\renderer\CCGLProgramState.cpp(174): note: see declaration of ‘cocos2d::UniformValue::setTexture’

.
.
.
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(134): note: see declaration of ‘cocos2d::DrawPrimitives::drawSolidRect’
2>…\manual\cocos2d\LuaOpengl.cpp(4633): warning C4018: ‘<’: signed/unsigned mismatch
2>…\manual\cocos2d\LuaOpengl.cpp(4651): warning C4996: ‘cocos2d::DrawPrimitives::drawPoly’: was declared deprecated
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\issue_16512.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\issue_16512.tmx
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(143): note: see declaration of ‘cocos2d::DrawPrimitives::drawPoly’
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\levelmap.tga -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\levelmap.tga
2>…\manual\cocos2d\LuaOpengl.cpp(4687): warning C4018: ‘<’: signed/unsigned mismatch
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\ortho-objects.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\ortho-objects.tmx
2>…\manual\cocos2d\LuaOpengl.cpp(4713): warning C4996: ‘cocos2d::DrawPrimitives::drawSolidPoly’: was declared deprecated
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\ortho-rotation-test.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\ortho-rotation-test.tmx
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(151): note: see declaration of ‘cocos2d::DrawPrimitives::drawSolidPoly’
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\ortho-test1.png -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\ortho-test1.png
2>…\manual\cocos2d\LuaOpengl.cpp(4757): warning C4996: ‘cocos2d::DrawPrimitives::drawCircle’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(163): note: see declaration of ‘cocos2d::DrawPrimitives::drawCircle’
2>…\manual\cocos2d\LuaOpengl.cpp(4795): warning C4996: ‘cocos2d::DrawPrimitives::drawSolidCircle’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(184): note: see declaration of ‘cocos2d::DrawPrimitives::drawSolidCircle’
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\ortho-test1_bw.png -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\ortho-test1_bw.png
2>…\manual\cocos2d\LuaOpengl.cpp(4837): warning C4996: ‘cocos2d::DrawPrimitives::drawQuadBezier’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(204): note: see declaration of ‘cocos2d::DrawPrimitives::drawQuadBezier’
2>…\manual\cocos2d\LuaOpengl.cpp(4884): warning C4996: ‘cocos2d::DrawPrimitives::drawCubicBezier’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(216): note: see declaration of ‘cocos2d::DrawPrimitives::drawCubicBezier’
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\ortho-test2.png -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\ortho-test2.png
2>…\manual\cocos2d\LuaOpengl.cpp(4930): warning C4996: ‘cocos2d::DrawPrimitives::drawCatmullRom’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(225): note: see declaration of ‘cocos2d::DrawPrimitives::drawCatmullRom’
2>…\manual\cocos2d\LuaOpengl.cpp(4976): warning C4996: ‘cocos2d::DrawPrimitives::drawCardinalSpline’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(235): note: see declaration of ‘cocos2d::DrawPrimitives::drawCardinalSpline’
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\ortho-tile-property.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\ortho-tile-property.tmx
2>…\manual\cocos2d\LuaOpengl.cpp(5008): warning C4996: ‘cocos2d::DrawPrimitives::setDrawColor4B’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(246): note: see declaration of ‘cocos2d::DrawPrimitives::setDrawColor4B’
2>…\manual\cocos2d\LuaOpengl.cpp(5040): warning C4996: ‘cocos2d::DrawPrimitives::setDrawColor4F’: was declared deprecated
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\orthogonal-test-movelayer.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\orthogonal-test-movelayer.tmx
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(257): note: see declaration of ‘cocos2d::DrawPrimitives::setDrawColor4F’
2>…\manual\cocos2d\LuaOpengl.cpp(5066): warning C4996: ‘cocos2d::DrawPrimitives::setPointSize’: was declared deprecated
2> C:\Cocos2dx\cocos\2d/CCDrawingPrimitives.h(264): note: see declaration of ‘cocos2d::DrawPrimitives::setPointSize’

.
.
.

2> lua_cocos2dx_manual.cpp
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\orthogonal-test4-hd.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\orthogonal-test4-hd.tmx
2>…\manual\cocos2d\lua_cocos2dx_deprecated.cpp(1531): warning C4018: ‘<’: signed/unsigned mismatch
2> lua_cocos2dx_physics_manual.cpp
2> CCBProxy.cpp
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(302): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(451): warning C4018: ‘<’: signed/unsigned mismatch
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\orthogonal-test4.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\orthogonal-test4.tmx
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(1784): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(2592): warning C4018: ‘<=’: signed/unsigned mismatch
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\orthogonal-test5-csv.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\orthogonal-test5-csv.tmx
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(2987): warning C4018: ‘<’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(3073): warning C4018: ‘<’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(3152): warning C4018: ‘<’: signed/unsigned mismatch
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\orthogonal-test5.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\orthogonal-test5.tmx
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(3360): warning C4018: ‘<’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(3400): warning C4018: ‘<’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(4065): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(4139): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(4214): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(4287): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(4362): warning C4018: ‘<=’: signed/unsigned mismatch
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5119): warning C4996: ‘tolua_cocos2dx_DrawNode_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3579): note: see declaration of ‘tolua_cocos2dx_DrawNode_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5306): warning C4996: ‘tolua_cocos2dx_Sprite_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3488): note: see declaration of ‘tolua_cocos2dx_Sprite_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5321): warning C4996: ‘tolua_cocos2dx_LayerColor_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3553): note: see declaration of ‘tolua_cocos2dx_LayerColor_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5347): warning C4996: ‘tolua_cocos2dx_ParticleSystem_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3566): note: see declaration of ‘tolua_cocos2dx_ParticleSystem_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5394): warning C4996: ‘tolua_cocos2dx_SpriteBatchNode_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3501): note: see declaration of ‘tolua_cocos2dx_SpriteBatchNode_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5407): warning C4996: ‘tolua_cocos2dx_MotionStreak_setBlendFunc01’: was declared deprecated
4> C:\Cocos2dx\tests\cpp-tests\Resources\TileMaps\orthogonal-test6-hd.tmx -> C:\Cocos2dx\build\Debug.win32\cpp-tests\TileMaps\orthogonal-test6-hd.tmx
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3514): note: see declaration of ‘tolua_cocos2dx_MotionStreak_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5420): warning C4996: ‘tolua_cocos2dx_AtlasNode_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3527): note: see declaration of ‘tolua_cocos2dx_AtlasNode_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(5433): warning C4996: ‘tolua_cocos2dx_ParticleBatchNode_setBlendFunc01’: was declared deprecated
2> …\manual\cocos2d\lua_cocos2dx_manual.cpp(3540): note: see declaration of ‘tolua_cocos2dx_ParticleBatchNode_setBlendFunc01’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(6953): warning C4099: ‘cocos2d::Console::Command’: type name first seen using ‘class’ now seen using ‘struct’
2> C:\Cocos2dx\cocos\base/CCConsole.h(115): note: see declaration of ‘cocos2d::Console::Command’
2>…\manual\cocos2d\lua_cocos2dx_manual.cpp(7250): warning C4018: ‘<=’: signed/unsigned mismatch
2> lua_cocos2dx_cocosbuilder_manual.cpp
2> lua_cocos2dx_cocosdenshion_manual.cpp

.
.
.

2> LuaBasicConversions.cpp
2>…\manual\cocostudio\lua_cocos2dx_coco_studio_manual.cpp(387): warning C4996: ‘cocostudio::Bone::getIgnoreMovementBoneData’: was declared deprecated
2> C:\Cocos2dx\cocos\editor-support/cocostudio/CCBone.h(195): note: see declaration of ‘cocostudio::Bone::getIgnoreMovementBoneData’

.
.
.

2> lua_cocos2dx_physics3d_manual.cpp
2> LuaSkeletonAnimation.cpp
2>…\manual\network\lua_xml_http_request.cpp(407): warning C4102: ‘tolua_lerror’: unreferenced label
2>…\manual\network\lua_xml_http_request.cpp(788): warning C4018: ‘<’: signed/unsigned mismatch
2> lua_cocos2dx_spine_manual.cpp

.
.
.

4> Bug-CCDrawNode.cpp
4>…\Classes\BugsTest\Bug-15776.cpp(53): warning C4800: ‘cocos2d::Texture2D *’: forcing value to bool ‘true’ or ‘false’ (performance warning)
4>C:\cocos2dx\tests\cpp-tests\classes\bugstest\Bug-14327.h(40): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated (compiling source file …\Classes\BugsTest\Bug-14327.cpp)
4> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’ (compiling source file …\Classes\BugsTest\Bug-14327.cpp)
4> Bug-Child.cpp
4> Camera3DTest.cpp
4> ChipmunkTest.cpp
4> ClippingNodeTest.cpp
4> ConfigurationTest.cpp
4> ConsoleTest.cpp
4>…\Classes\ConsoleTest\ConsoleTest.cpp(216): warning C4018: ‘>=’: signed/unsigned mismatch
4>…\Classes\ConsoleTest\ConsoleTest.cpp(218): warning C4018: ‘>’: signed/unsigned mismatch
4> DataVisitorTest.cpp

.
.
.

4> NewRendererTest.cpp
4>…\Classes\NewRendererTest\NewRendererTest.cpp(644): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4>…\Classes\NewRendererTest\NewRendererTest.cpp(724): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4> Particle3DTest.cpp

.
.
.

4> SpineTest.cpp
4> DrawNode3D.cpp
4>…\Classes\SpineTest\SpineTest.cpp(232): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4> Sprite3DTest.cpp
2>…\manual\spine\lua_cocos2dx_spine_manual.cpp(514): warning C4996: ‘tolua_spine_SkeletoneAnimation_setBlendFunc’: was declared deprecated
2> …\manual\spine\lua_cocos2dx_spine_manual.cpp(361): note: see declaration of ‘tolua_spine_SkeletoneAnimation_setBlendFunc’
4> SpritePolygonTest.cpp

.
.
.

4> UIButtonTest.cpp
4>…\Classes\UITest\CocoStudioGUITest\UIButtonTest\UIButtonTest.cpp(1281): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4>…\Classes\UITest\CocoStudioGUITest\UIButtonTest\UIButtonTest.cpp(1287): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4> UICheckBoxTest.cpp
4>C:\cocos2dx\tests\cpp-tests\classes\uitest\cocostudioguitest\UIEditBoxTest.h(41): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated (compiling source file …\Classes\UITest\CocoStudioGUITest\CocosGUIScene.cpp)
4> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’ (compiling source file …\Classes\UITest\CocoStudioGUITest\CocosGUIScene.cpp)
4>C:\cocos2dx\tests\cpp-tests\classes\uitest\cocostudioguitest\UIEditBoxTest.h(63): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated (compiling source file …\Classes\UITest\CocoStudioGUITest\CocosGUIScene.cpp)
4> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’ (compiling source file …\Classes\UITest\CocoStudioGUITest\CocosGUIScene.cpp)
4> UIRadioButtonTest.cpp
4> UIEditBoxTest.cpp
4> UIFocusTest.cpp
4>C:\cocos2dx\tests\cpp-tests\classes\uitest\cocostudioguitest\UIEditBoxTest.h(41): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated (compiling source file …\Classes\UITest\CocoStudioGUITest\UIEditBoxTest.cpp)
4> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’ (compiling source file …\Classes\UITest\CocoStudioGUITest\UIEditBoxTest.cpp)
4>C:\cocos2dx\tests\cpp-tests\classes\uitest\cocostudioguitest\UIEditBoxTest.h(63): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated (compiling source file …\Classes\UITest\CocoStudioGUITest\UIEditBoxTest.cpp)
4> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’ (compiling source file …\Classes\UITest\CocoStudioGUITest\UIEditBoxTest.cpp)
4> UIImageViewTest.cpp
4> UILayoutTest.cpp
4> UIListViewTest.cpp
4>…\Classes\UITest\CocoStudioGUITest\UILayoutTest\UILayoutTest.cpp(796): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4>…\Classes\UITest\CocoStudioGUITest\UILayoutTest\UILayoutTest.cpp(800): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4> UILoadingBarTest.cpp
4> UIPageViewTest.cpp
4>…\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest.cpp(113): warning C4996: ‘cocos2d::ui::PageView::addEventListenerPageView’: was declared deprecated
4> C:\Cocos2dx\cocos\ui/UIPageView.h(250): note: see declaration of ‘cocos2d::ui::PageView::addEventListenerPageView’

.
.
.

4> UITextFieldTest.cpp
4>…\Classes\UITest\CocoStudioGUITest\UIRichTextTest\UIRichTextTest.cpp(1783): warning C4503: ‘std::_Func_class<_Ret,const cocos2d::ValueMap &>::_Reset_impl’: decorated name length exceeded, name was truncated
4> with
4> [
4> _Ret=std::pair<cocos2d::ValueMap,cocos2d::ui::RichElement *>
4> ]
4> UITextTest.cpp
4> UIWidgetAddNodeTest.cpp
4> WindowTest.cpp
4> main.cpp
6>C:\cocos2dx\tests\performance-tests\classes\profile.cpp(146): warning C4018: ‘<’: signed/unsigned mismatch
6>C:\cocos2dx\tests\performance-tests\classes\profile.cpp(224): warning C4018: ‘<’: signed/unsigned mismatch
4> AppDelegate.cpp
4> controller.cpp
4> ActionsTest.cpp
4>…\Classes\ActionsTest\ActionsTest.cpp(676): warning C4800: ‘const cocos2d::ValueMap *’: forcing value to bool ‘true’ or ‘false’ (performance warning)
4>…\Classes\ActionsTest\ActionsTest.cpp(2428): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4>…\Classes\ActionsTest\ActionsTest.cpp(2434): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4> TransitionsTest.cpp
4> EffectsTest.cpp
4> ClickAndMoveTest.cpp
4> RotateWorldTest.cpp
4> ParticleTest.cpp
4> ActionsEaseTest.cpp
4> MotionStreakTest.cpp
4> DrawPrimitivesTest.cpp
4>…\Classes\DrawPrimitivesTest\DrawPrimitivesTest.cpp(326): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’
4>…\Classes\DrawPrimitivesTest\DrawPrimitivesTest.cpp(327): warning C4305: ‘argument’: truncation from ‘double’ to ‘float’

.
.
.

4> BugsTest.cpp
4> Bug-458.cpp
4>C:\cocos2dx\tests\cpp-tests\classes\bugstest\Bug-14327.h(40): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated (compiling source file …\Classes\BugsTest\BugsTest.cpp)
4> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’ (compiling source file …\Classes\BugsTest\BugsTest.cpp)
4> QuestionContainerSprite.cpp

.
.
.

3> js_bindings_system_registration.cpp
7>LINK : fatal error LNK1104: cannot open file ‘libSpine.lib’
3> jsb_cocos2dx_navmesh_conversions.cpp

.
.
.

3> jsb_cocos2dx_spine_manual.cpp
3> jsb_cocos2dx_ui_manual.cpp
3>…\manual\ui\jsb_cocos2dx_ui_manual.cpp(133): warning C4996: ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’: was declared deprecated
3> C:\Cocos2dx\cocos\ui/UIEditBox/UIEditBox.h(81): note: see declaration of ‘cocos2d::ui::EditBoxDelegate::editBoxEditingDidEnd’
6>C:\cocos2dx\tests\performance-tests\classes\tests\performancealloctest.cpp(240): warning C4018: ‘>=’: signed/unsigned mismatch
6>C:\cocos2dx\tests\performance-tests\classes\tests\performancecontainertest.cpp(329): warning C4018: ‘>=’: signed/unsigned mismatch
3> libjscocos2d.vcxproj -> C:\Cocos2dx\build\Debug.win32\libjscocos2d.lib

.
.
.

8> AppDelegate.cpp
8>C:\cocos2dx\external\spidermonkey\include\win32\js\heapapi.h(303): warning C4800: ‘uintptr_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_Effect3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\js\value.h(511): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_Effect3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(861): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_Effect3D_bindings.cpp)
8>C:\cocos2dx\cocos\scripting\js-bindings\manual\scriptingcore.h(615): warning C4273: ‘jsb_get_js_proxy’: inconsistent dll linkage (compiling source file …\Classes\js_Effect3D_bindings.cpp)
8> C:\cocos2dx\cocos\scripting\js-bindings\manual\js_manual_conversions.h(140): note: see previous definition of ‘jsb_get_js_proxy’ (compiling source file …\Classes\js_Effect3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\js\heapapi.h(303): warning C4800: ‘uintptr_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\js\heapapi.h(303): warning C4800: ‘uintptr_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\AppDelegate.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsapi.h(5198): warning C4800: 'JSObject *const ': forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(849): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(855): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(861): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsapi.h(5198): warning C4800: 'JSObject *const ': forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\AppDelegate.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(849): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\AppDelegate.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(855): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\AppDelegate.cpp)
8>C:\cocos2dx\external\spidermonkey\include\win32\jsfriendapi.h(861): warning C4800: ‘uint32_t’: forcing value to bool ‘true’ or ‘false’ (performance warning) (compiling source file …\Classes\AppDelegate.cpp)
8>C:\cocos2dx\cocos\scripting\js-bindings\manual\scriptingcore.h(615): warning C4273: ‘jsb_get_js_proxy’: inconsistent dll linkage (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8> C:\cocos2dx\cocos\scripting\js-bindings\manual\js_manual_conversions.h(140): note: see previous definition of ‘jsb_get_js_proxy’ (compiling source file …\Classes\js_DrawNode3D_bindings.cpp)
8>C:\cocos2dx\cocos\scripting\js-bindings\manual\scriptingcore.h(615): warning C4273: ‘jsb_get_js_proxy’: inconsistent dll linkage (compiling source file …\Classes\AppDelegate.cpp)
8> C:\cocos2dx\cocos\scripting\js-bindings\manual\js_manual_conversions.h(140): note: see previous definition of ‘jsb_get_js_proxy’ (compiling source file …\Classes\AppDelegate.cpp)
8> 2 File(s) copied
8> 2 File(s) copied
8>LINK : fatal error LNK1181: cannot open input file ‘libSpine.lib’
2> libluacocos2d.vcxproj -> C:\Cocos2dx\build\Debug.win32\libluacocos2d.lib
9>------ Build started: Project: lua-tests, Configuration: Debug Win32 ------
10>------ Build started: Project: lua-empty-test, Configuration: Debug Win32 ------
6>LINK : fatal error LNK1104: cannot open file ‘libSpine.lib’
9> C:\Cocos2dx\tests\lua-tests\res\cocosbuilderRes\CocosBuilderExample.ccbproj -> C:\Cocos2dx\build\Debug.win32\lua-tests\res\cocosbuilderRes\CocosBuilderExample.ccbproj

.
.
.

9> lua_test_bindings.cpp
9> main.cpp
10>LINK : fatal error LNK1104: cannot open file ‘libSpine.lib’
9>…\Classes\lua_test_bindings.cpp(633): warning C4018: ‘<’: signed/unsigned mismatch
9>…\Classes\lua_test_bindings.cpp(714): warning C4996: ‘lua_cocos2dx_DrawNode3D_setBlendFunc01’: was declared deprecated
9> …\Classes\lua_test_bindings.cpp(456): note: see declaration of ‘lua_cocos2dx_DrawNode3D_setBlendFunc01’
9>…\Classes\lua_assetsmanager_test_sample.cpp(139): warning C4800: ‘int’: forcing value to bool ‘true’ or ‘false’ (performance warning)
9>LINK : fatal error LNK1104: cannot open file ‘libSpine.lib’
========== Build: 2 succeeded, 8 failed, 0 up-to-date, 0 skipped ==========


#2

What OS are you on?

Did you see this doc: http://cocos2d-x.org/docs/cocos2d-x/en/installation/Windows.html

Are you saying something is wrong with this doc? If so I can take a look at the steps and see.


#3

Well, first of all, that page should be referenced in the readme.md, at least inside C:\Users\Michael\Documents\work\Cocos2dx\build, if not at the top level.

But yes, I ran the python script, opened cocos2d-win32.sln in Visual Studio Community 2015, selected Rebuild Solution, and got the errors shown. I’m on Windows 10 Pro version 1803. Let me know if there’s anything else I can tell you.


#4

ok, I can create a Windows 10 VM and test this step by step to see what is failing and update the docs. I apologize as we test this repeatedly each release. I have vm’s for this, for this reason.

Can you show me your $PATH, please?

Also the output of cocos -v, please?


#5

C:\Users\Michael\Documents\work\Cocos2dx>cocos -v
cocos2d-x-3.17
Cocos Console 2.3

C:\Users\Michael\Documents\work\Cocos2dx>path
PATH=C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\Michael.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP;C:\Program Files\PuTTY;C:\Program Files (x86)\Skype\Phone;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CMake\bin;C:\WINDOWS\System32\OpenSSH;C:\Program Files\nodejs;c:\python27;C:\Users\Michael\Documents\work\Cocos2dx\templates;C:\Users\Michael\Documents\work\Cocos2dx\tools\cocos2d-console\bin;C:\Users\Michael\AppData\Local\Microsoft\WindowsApps;C:\Users\Michael\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\bin;

There are tons of warnings in the build, especially related to things like double to float. I am interested to know if these are expected. If so, you should really say so in the build instructions, otherwise people think they are doing something wrong.

But I should say that the main clue to the build failure seems to be the lines that look like this:

1>LINK : fatal error LNK1181: cannot open input file ‘libSpine.lib’


#6

What if you execute: download-deps.py?


#7

C:\Users\Michael\Documents\work\Cocos2dx>python download-deps.py

==> Prepare to download external libraries!
==> Not need to update!


#8

Thanks. I’ll test the process.


#9

The reason is our test team tested the build on Windows 7, and used the platform tools v140_xp. so that the visual studio 2015 told you to install needed sdk. You can find source code like below at any .vcxproj files.

<PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0'">v140</PlatformToolset>
    <PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v140_xp</PlatformToolset>
    <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
    <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v141_xp</PlatformToolset>

Indeed, you can select to Retarget the PlatformToolset, not need to download Windows XP SDK. please refer to To target the Windows 10 SDK, it works when I build cocos2d-win32.sln on my Windows 10 PC.

About the 10>LINK : fatal error LNK1104: cannot open file ‘libSpine.lib’,I think the reason is libSpine build target failed, so that link error occurs. You can clean all your build, and then retarget SDK for every one project, finally build again. I think every thing will be OK.


#10

Cool. I’ll test this also.


#11

thanks, ReTarget Windows SDK is a common solution for windows build issue, when developer use a different windows environment. for example Win10 or VS 2017, different from Win7 & VS 2015.


#12

I’ll add to windows doc also.