splhack / hello-lwf-cocos2d-x Goto Github PK
View Code? Open in Web Editor NEWHello LWF for C++ with Cocos2d-x renderer
Hello LWF for C++ with Cocos2d-x renderer
I've got this error in VS2013: D:\Work\cocos\Hello-LWF-Cocos2d-x\lwf\project.win32\libLwf.vcxproj : error : Project "D:\Work\cocos\Hello-LWF-Cocos2d-x\lwf\project.win32\libLwf.vcxproj" could not be found.
Is there any way to compile the project? Thanks.
a lot of errors when compiling for win32 @ Visual Studio 2012
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_resourcecache.h(30): warning C4099: 'LWF::Data' : type name first seen using 'struct' now seen using 'class' (..\Classes\lwf_cocos2dx_node.cpp)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_format.h(28) : see declaration of 'LWF::Data'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(30): error C2143: syntax error : missing ';' before '='
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(30): error C2873: 'LWFData' : symbol cannot be used in a using-declaration
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(30): error C2513: 'int' : no variable declared before '='
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(62): error C2065: 'LWFData' : undeclared identifier
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(62): error C2923: 'boost::shared_ptr' : 'LWFData' is not a valid template type argument for parameter 'T'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(62): error C2514: 'boost::shared_ptr' : class has no constructors
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(329) : see declaration of 'boost::shared_ptr'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(66): error C2664: 'cocos2d::LWFResourceCache::unloadLWFData' : cannot convert parameter 1 from 'boost::shared_ptr' to 'const boost::shared_ptr &'
1> with
1> [
1> T=LWF::Data
1> ]
1> Reason: cannot convert from 'boost::shared_ptr' to 'const boost::shared_ptr'
1> with
1> [
1> T=LWF::Data
1> ]
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(72): error C2065: 'LWFData' : undeclared identifier
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(72): error C2923: 'boost::shared_ptr' : 'LWFData' is not a valid template type argument for parameter 'T'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(73): error C2514: 'boost::shared_ptr' : class has no constructors
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(329) : see declaration of 'boost::shared_ptr'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(74): error C2678: binary '!' : no operator found which takes a left-hand operand of type 'boost::shared_ptr' (or there is no acceptable conversion)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\detail\operator_bool.hpp(60): could be 'bool boost::shared_ptr::operator !(void) const'
1> while trying to match the argument list '(boost::shared_ptr)'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(82): error C2678: binary '->' : no operator found which takes a left-hand operand of type 'boost::shared_ptr' (or there is no acceptable conversion)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(651): could be 'boost::detail::sp_member_access::type boost::shared_ptr::operator ->(void) const'
1> while trying to match the argument list '(boost::shared_ptr)'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(82): error C2039: 'textures' : is not a member of 'boost::shared_ptr'
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(329) : see declaration of 'boost::shared_ptr'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(82): error C2228: left of '.size' must have class/struct/union
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(85): error C2678: binary '->' : no operator found which takes a left-hand operand of type 'boost::shared_ptr' (or there is no acceptable conversion)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(651): could be 'boost::detail::sp_member_access::type boost::shared_ptr::operator ->(void) const'
1> while trying to match the argument list '(boost::shared_ptr)'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(85): error C2039: 'textures' : is not a member of 'boost::shared_ptr'
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(329) : see declaration of 'boost::shared_ptr'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(86): error C2662: 'boost::shared_ptr::get' : cannot convert 'this' pointer from 'boost::shared_ptr' to 'const boost::shared_ptr &'
1> Reason: cannot convert from 'boost::shared_ptr' to 'const boost::shared_ptr'
1> Conversion requires a second user-defined-conversion operator or constructor
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(90): error C2664: 'cocos2d::LWFResourceCache::unloadLWFData' : cannot convert parameter 1 from 'boost::shared_ptr' to 'const boost::shared_ptr &'
1> with
1> [
1> T=LWF::Data
1> ]
1> Reason: cannot convert from 'boost::shared_ptr' to 'const boost::shared_ptr'
1> with
1> [
1> T=LWF::Data
1> ]
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(112): error C2065: 'LWFData' : undeclared identifier
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(112): error C2923: 'boost::shared_ptr' : 'LWFData' is not a valid template type argument for parameter 'T'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(113): error C2514: 'boost::shared_ptr' : class has no constructors
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\shared_ptr.hpp(329) : see declaration of 'boost::shared_ptr'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(114): error C2678: binary '!' : no operator found which takes a left-hand operand of type 'boost::shared_ptr' (or there is no acceptable conversion)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\detail\operator_bool.hpp(60): could be 'bool boost::shared_ptr::operator !(void) const'
1> while trying to match the argument list '(boost::shared_ptr)'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(121): error C2664: 'cocos2d::LWFResourceCache::unloadLWFData' : cannot convert parameter 1 from 'boost::shared_ptr' to 'const boost::shared_ptr &'
1> with
1> [
1> T=LWF::Data
1> ]
1> Reason: cannot convert from 'boost::shared_ptr' to 'const boost::shared_ptr'
1> with
1> [
1> T=LWF::Data
1> ]
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_node.cpp(127): error C2664: 'cocos2d::LWFResourceCache::unloadLWFData' : cannot convert parameter 1 from 'boost::shared_ptr' to 'const boost::shared_ptr &'
1> with
1> [
1> T=LWF::Data
1> ]
1> Reason: cannot convert from 'boost::shared_ptr' to 'const boost::shared_ptr'
1> with
1> [
1> T=LWF::Data
1> ]
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1> lwf_cocos2dx_resourcecache.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_bitmap.cpp(148): error C2143: syntax error : missing ')' before '{'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_bitmap.cpp(148): error C2059: syntax error : ')'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_bitmap.cpp(148): error C2143: syntax error : missing ';' before '{'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_bitmap.cpp(151): error C2143: syntax error : missing ';' before '}'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_bitmap.cpp(151): error C2059: syntax error : ')'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_bitmap.cpp(264): warning C4996: 'cocos2d::Node::setZOrder': was declared deprecated
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\cocos2d\cocos\2d\ccnode.h(174) : see declaration of 'cocos2d::Node::setZOrder'
1> lwf_cocos2dx_textbmfont.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_resourcecache.h(30): warning C4099: 'LWF::Data' : type name first seen using 'struct' now seen using 'class' (..\Classes\lwf_cocos2dx_particle.cpp)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_format.h(28) : see declaration of 'LWF::Data'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_particle.cpp(131): warning C4996: 'cocos2d::Node::setZOrder': was declared deprecated
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\cocos2d\cocos\2d\ccnode.h(174) : see declaration of 'cocos2d::Node::setZOrder'
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\cocos2d\cocos\2d\ccnode.h(174) : see declaration of 'cocos2d::Node::setZOrder'
1> lwf_cocos2dx_textttf.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_resourcecache.cpp(22): fatal error C1083: Cannot open include file: 'CCFileUtils.h': No such file or directory
1> lwf_core.cpp
1> lwf_coredata.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_resourcecache.h(30): warning C4099: 'LWF::Data' : type name first seen using 'struct' now seen using 'class' (..\Classes\lwf_cocos2dx_textbmfont.cpp)
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_format.h(28) : see declaration of 'LWF::Data'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_core.cpp(72): error C3861: 'snprintf': identifier not found
1> lwf_data.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textbmfont.cpp(104): error C2143: syntax error : missing ')' before '{'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textbmfont.cpp(104): error C2059: syntax error : ')'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textbmfont.cpp(104): error C2143: syntax error : missing ';' before '{'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textbmfont.cpp(107): error C2143: syntax error : missing ';' before '}'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textbmfont.cpp(107): error C2059: syntax error : ')'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textbmfont.cpp(219): warning C4996: 'cocos2d::Node::setZOrder': was declared deprecated
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\cocos2d\cocos\2d\ccnode.h(174) : see declaration of 'cocos2d::Node::setZOrder'
1> lwf_event.cpp
1> lwf_eventmovie.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_data.cpp(28): fatal error C1083: Cannot open include file: 'LzmaDec.h': No such file or directory
1> lwf_graphic.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textttf.cpp(93): error C2143: syntax error : missing ')' before '{'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textttf.cpp(93): error C2059: syntax error : ')'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textttf.cpp(93): error C2143: syntax error : missing ';' before '{'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textttf.cpp(96): error C2143: syntax error : missing ';' before '}'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textttf.cpp(96): error C2059: syntax error : ')'
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_cocos2dx_textttf.cpp(186): warning C4996: 'cocos2d::Node::setZOrder': was declared deprecated
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\cocos2d\cocos\2d\ccnode.h(174) : see declaration of 'cocos2d::Node::setZOrder'
1> lwf_input.cpp
1> lwf_iobject.cpp
1> lwf_lwfcontainer.cpp
1> lwf_movie.cpp
1> lwf_movieat.cpp
1> lwf_movieop.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_movieat.cpp(67): error C2668: 'boost::make_shared' : ambiguous call to overloaded function
1> d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\boost\smart_ptr\make_shared_object.hpp(637): could be 'boost::shared_ptr boost::make_shared<LWF::Movie,LWF::LWF*&,LWF::Movieconst ,int&,int,int,int,bool,LWF::MovieEventHandlers,std::string&>(A1,A2 &&,A3,A4 &&,A5 &&,A6 &&,A7 &&,A8 &&,A9)'
1> with
1> [
1> T=LWF::Movie,
1> A1=LWF::LWF &,
1> A2=LWF::Movie *const ,
1> A3=int &,
1> A4=int,
1> A5=int,
1> A6=int,
1> A7=bool,
1> A8=LWF::MovieEventHandlers *,
1> A9=std::string &
1> ]
1> d:\program files (x86)\microsoft visual studio 11.0\vc\include\memory(972): or 'std::shared_ptr<Ty> std::make_shared<LWF::Movie,LWF::LWF&,LWF::Movie_const ,int&,int,int,int,bool,LWF::MovieEventHandlers,std::string&>(_V0_t,_V1_t &&,_V2_t,_V3_t &&,_V4_t &&,_V5_t &&,_V6_t &&,_V7_t &&,_V8_t)' [found using argument-dependent lookup]
1> with
1> [
1> _Ty=LWF::Movie,
1> _V0_t=LWF::LWF *&,
1> _V1_t=LWF::Movie *const ,
1> _V2_t=int &,
1> _V3_t=int,
1> _V4_t=int,
1> _V5_t=int,
1> _V6_t=bool,
1> _V7_t=LWF::MovieEventHandlers *,
1> _V8_t=std::string &
1> ]
1> while trying to match the argument list '(LWF::LWF *, LWF::Movie *const , int, int, int, int, bool, LWF::MovieEventHandlers *, std::string)'
1> lwf_object.cpp
1> lwf_particle.cpp
1> lwf_programobj.cpp
1> lwf_property.cpp
1> lwf_text.cpp
1> lwf_utility.cpp
1>d:\cocos2d-x-3.0beta2\projects\testparallaxscrollnode\classes\lwf_text.cpp(38): warning C4018: '<' : signed/unsigned mismatch
fla effect use
Bending: Add
Color Effect: Alpha: 60%
Conversion is not normal.
What should I do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.