[Cocos2d-x] Run mac project on Mac os

  • aqeeliqbal
    Likes 0

    Problem Description

    i created a project for ios and android using cocos2d-x 3.4

    now i want it to run for OSX.

    when i run mac project in xcode it give me some linker errors.

    are there any configuration that i should take care of first?

  • Sonar Systems admin
    Likes 0

    It should just run fine, what are the linker errors.

  • aqeeliqbal
    Likes 0

    Undefined symbols for architecture x86_64:

      "GTDetailMenu::sceneWithMap(std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >)", referenced from:

          GTMainMenu::menuClicked(cocos2d::Ref*) in GTMainMenu.o

     

    this kind of eror in all other classes.

  • Sonar Systems admin
    Likes 0

    Is this a fresh project.

  • aqeeliqbal
    Likes 0

    yes
    i recently created it for ios and its working fine there.

    but while building for osX it gives me these errors.

  • Sonar Systems admin
    Likes 0

    Could you show us the errors via a screenshot

  • Sonar Systems admin
    Likes 0

    Have you tried running a fresh project on your Mac to see if that works.

  • aqeeliqbal
    Likes 0

    yes,

    this is screen shot from a fresh project. just created through terminal command and build mac project.

    https://www.dropbox.com/s/84w68cy3ebsvtt0/Screen%20Shot%202015-10-07%20at%203.08.02%20pm.png?dl=0

     

  • Sonar Systems admin
    Likes 0

    Try the latest Cocos2d-x version as that does solve a lot of problems

  • aqeeliqbal
    Likes 0

    Thanks alot

    new project from cocos2d-x works fine.

    Now i have another question.

    how can i use some of features of your cocos helper in mac project

    Share on social

    Rate the app

    send Email

    These features i want to use in my mac project.

Login to reply