Error occurs when running build-win32.bat

See below

It opens a test project but cannot find reesources. Version cocos2d-1.0.1-x-0.11.0 do not have the same issue.
Thanks.


Resources_2012-03-05_21-52-12.png (128.9 KB)

Same here, a new bug of the 1.0.1-x-0.12.0 release :frowning:

Oh, it’s our fault.
We forgot to change resources path in build-win32.bat.
You can just modify

set CC_TEST_RES=..\tests\Res\*.*
set CC_HELLOWORLD_RES=..\HelloWorld\Resource\*.*
set CC_HELLOLUA_RES=..\HelloLua\Resource\*.*

to

set CC_TEST_RES=..\tests\Resources\*.*
set CC_HELLOWORLD_RES=..\HelloWorld\Resources\*.*
set CC_HELLOLUA_RES=..\HelloLua\Resources\*.*

#1014 is created.
Thank you.

an other error occur when i whant to include lua in a new project on windows. the class name seems to became CCLuaEngine.cpp in the cocos2d-1.0.1-x-0.12.0

i change the name in the template.inf

…/…/…/…/…/lua/cocos2dx_support/LuaCocos2d.cp
…/…/…/…/…/lua/cocos2dx_support/LuaEngine.cpp
…/…/…/…/…/lua/cocos2dx_support/LuaEngineImpl.cpp
…/…/…/…/…/lua/cocos2dx_support/LuaCocos2d.h
…/…/…/…/…/lua/cocos2dx_support/LuaEngine.h
…/…/…/…/…/lua/cocos2dx_support/LuaEngineImpl.h
>
to

…/…/…/…/…/lua/cocos2dx_support/LuaCocos2d.cpp
…/…/…/…/…/lua/cocos2dx_support/CCLuaEngine.cpp
…/…/…/…/…/lua/cocos2dx_support/Cocos2dxLuaLoader.cpp
…/…/…/…/…/lua/cocos2dx_support/LuaCocos2d.h
…/…/…/…/…/lua/cocos2dx_support/CCLuaEngine.h
…/…/…/…/…/lua/cocos2dx_support/Cocos2dxLuaLoader.h
>
no errors when create a project but the templates class aren’t updated

I have error when run test project on visual studio 2010.
When I build it, it have some error like :

c1xx : fatal error C1083: Cannot open source file: '..\tests\testBasic.cpp': No such file or directory
2>  controller.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\tests\controller.cpp': No such file or directory
2>  ZwoptexTest.cpp
.....

May be you set the include folder wrong?

I have tested on visual studio 2010 before releasing.
Can you open “testBasic.cpp” in vs2010?

Thanks. I lose this file when I extract cocos2dx.rar.
Everything ok now

Minggo Zhang wrote:

Oh, it’s our fault.
We forgot to change resources path in build-win32.bat.
You can just modify
[…]
to
[…]

OK, it works
Thanks

@ eddie barreau
>> no errors when create a project but the templates class aren’t updated
What’s your meaning?

by changing the template file i was able to create a project with lua support without visual studio error(previous red message),
but the cpp and .h file aren’t in line with the change (LuaEngine Became CCLuaEngine)so there is other correction to do (for example on the #includes).

Yeap, I have fixed it.
You can refer https://github.com/cocos2d/cocos2d-x/pull/753.

thank you