Adding Dragonbones into Cocos2dx project

  • adesuluhn
    Likes 0

    Problem Description

    Hi, so i try to add dragonbones into my cocos2d-x project, and i use this github repo:

    https://github.com/DragonBones/DragonBonesCPP/tree/master/Cocos2DX_3.x

    This is project structure pic:

    http://imgur.com/a/AJ2uJ

    then, when i run, i got this error:

    http://imgur.com/a/YirdA

    for header, theres some error too, but i fix it in include with “../../dragonbones”, but after that error like image above, maybe sonarlearning can help with this issue? Thanks :)

  • Sonar Systems admin
    Likes 0

    Does a fresh project work for you?


    This reply has been verified.
  • adesuluhn
    Likes 0

    yes, it’s run well for fresh project, maybe in the dragonbones project there’s some step i missing? i’’ll post my project in github soon


  • adesuluhn
    Likes 0

    this is my github project https://github.com/adesuluh/DragonBones-CPP

  • Sonar Systems admin
    Likes 0

    Are you using the same Cocos2d-x version?


    This reply has been verified.
  • adesuluhn
    Likes 0

    in github source, it tell dragonbones for v3.x , im using cocos2d-x v3.10


  • Sonar Systems admin
    Likes 0

    Try inlcuding dagon bones as a group not a reference.


    This reply has been verified.
  • adesuluhn
    Likes 0

    Thanks! its work on my device:)


  • adesuluhn
    Likes 0

    when i build desktop in mac, it give : 

    Undefined symbols for architecture x86_64:

      "AppDelegate::AppDelegate()", referenced from:

          _main in main.o

      "AppDelegate::~AppDelegate()", referenced from:

          _main in main.o

    ld: symbol(s) not found for architecture x86_64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    why is it?

  • Sonar Systems admin
    Likes 0

    Check that the appdelegate has that code.


    This reply has been verified.
  • adesuluhn
    Likes 0

    thanks i solve with add all scricpt target build in build phase :)

  • Sonar Systems admin
    Likes 0

    Fantastic to hear, good luck with your development journey.

     

    Don’t forget, if you have any questions feel free to post them.

Login to reply