Giter Site home page Giter Site logo

Comments (9)

dualface avatar dualface commented on May 27, 2024

应该是最新的 cocos2d-x 里改动了相关 TMX class 的返回值类型。你需要检查 tolua 目录里相关 *.pkg 文件的定义是否和 C++ class 的定义相同。然后重新生成 LuaCocos2d.cpp 文件。

from quick-cocos2d-x.

aoxu avatar aoxu commented on May 27, 2024

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.

dualface avatar dualface commented on May 27, 2024

下个月的版本会升级到最新的 cocos2d-x。因为 quick 对 cocos2d-x 的修改比较多,升级除了工作量的问题,还需要反复测试才行。

from quick-cocos2d-x.

spin6lock avatar spin6lock commented on May 27, 2024

@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.

dualface avatar dualface commented on May 27, 2024

quick里的cocos2d-x是修改过的,不是官方版哦。你clone quick后,用:

git submodule init
git submodule update

来获取修改版的 cocos2d-x。

from quick-cocos2d-x.

spin6lock avatar spin6lock commented on May 27, 2024

@dualface 嗯嗯,我知道,我是照着http://dualface.github.io/blog/2013/02/28/from-flash-to-quick/ 来搞的,搞下来后build_native已经成功了的,但是加入新的静态库和lua绑定后就编不过了。。。

from quick-cocos2d-x.

dualface avatar dualface commented on May 27, 2024

如果方便的话,你把整个项目打包给我,我编译看看问题在那里。我的邮件 dualface(at)gmail.com

from quick-cocos2d-x.

spin6lock avatar spin6lock commented on May 27, 2024

@dualface 似乎是因为build.xml里面没有调用build.php引起的,我手动调用了一次,可以编译过,不过报了一堆warning

from quick-cocos2d-x.

spin6lock avatar spin6lock commented on May 27, 2024

Just call build.php to fix the compile error and everything is ok.

from quick-cocos2d-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.