Comments (9)
应该是最新的 cocos2d-x 里改动了相关 TMX class 的返回值类型。你需要检查 tolua 目录里相关 *.pkg 文件的定义是否和 C++ class 的定义相同。然后重新生成 LuaCocos2d.cpp 文件。
from quick-cocos2d-x.
quick-cocos2d-x目前使用的是基于cocos2d-x 2.1.1 beta版修改后的版本,所以如果想避免这种问题,建议不安装官方的cocos2d-x最新版,而使用quick-cocos2d-x里内置的submodule cocos2d-x版本。
另外建议@dualface 在每个milestone版本更新cocos2d-x到最新的稳定版本。
quick-cocos2d-x is using the customized version based on official cocos2d-x 2.1.1 beta now. To avoid issues like this, please do not use the latest version of official cocos2d-x. You can use the submodule cocos2d-x inside quick-cocos2d-x.
I suggest @dualface updating the cocos2d-x version based on latest stable version of official cocos2d-x, at every milestone.
from quick-cocos2d-x.
下个月的版本会升级到最新的 cocos2d-x。因为 quick 对 cocos2d-x 的修改比较多,升级除了工作量的问题,还需要反复测试才行。
from quick-cocos2d-x.
@aoxu 目前是用submodule的cocos2dx的,官方的cocos2dx在另外的工作目录,在官方的cocos2dx上编译,没有遇到过LuaCocos2d.cpp的这种报错,所以想看一下是不是tolua++这边需要做什么改动。我比对了一下toluafix_的东东,貌似toluafix_的参数个数不同了,不知道是不是要应用这个改动才能编译通过呢?
I'm using the git submodule cocos2dx currently. I've compile the lib on official cocos2d-x successfully, and the toluafix_ function seems different from submodule cocos2dx, should I change that?
from quick-cocos2d-x.
quick里的cocos2d-x是修改过的,不是官方版哦。你clone quick后,用:
git submodule init
git submodule update
来获取修改版的 cocos2d-x。
from quick-cocos2d-x.
@dualface 嗯嗯,我知道,我是照着http://dualface.github.io/blog/2013/02/28/from-flash-to-quick/ 来搞的,搞下来后build_native已经成功了的,但是加入新的静态库和lua绑定后就编不过了。。。
from quick-cocos2d-x.
如果方便的话,你把整个项目打包给我,我编译看看问题在那里。我的邮件 dualface(at)gmail.com
from quick-cocos2d-x.
@dualface 似乎是因为build.xml里面没有调用build.php引起的,我手动调用了一次,可以编译过,不过报了一堆warning
from quick-cocos2d-x.
Just call build.php to fix the compile error and everything is ok.
from quick-cocos2d-x.
Related Issues (20)
- AssetsManager加载很慢
- v2.26 cc.ui.UIListView删除后立即添加的问题
- CCHTTPRequest 状态返回错误 HOT 4
- ByteArrayVarint.lua 中关于bit部分成员调用的问题 HOT 2
- CCMenu 设置为setTouchSwallowEnabled(false),还是无法向下传递 HOT 1
- quick2.2.6 Android HTTP 下错误码返回0
- quick2.2.6 Android HTTP POST 汉字服务器收到乱码 HOT 2
- quick中使用C++接口加载ccs,并clone list等控件的子项,出现内存泄漏
- 使用了string.urlencode, string.urldecode数据不一致 HOT 2
- quick3.3 GLProgramState 传递参数时会报错 HOT 2
- addSearchPath调用多次会导致卡顿 HOT 1
- 2.2.6 Android5.0闪退
- 如果服务端返回400,401,httpClient 获取不对状态码 HOT 2
- 点击 新建项目 出现 coming soon HOT 2
- addNodeEventListener报错了 HOT 1
- node从父节点移除,再次添加的时候没法收到onEnter事件
- 2.2.6版本的player在El Capitan下不能编译 HOT 2
- 使用luaoc.callStaticMethod调用Objective-C方法时报错not support return type
- 点击新建项目时候报错了 HOT 1
- 怎么创建一个lua 项目啊?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quick-cocos2d-x.