Problems setting up Cocos2d-X

  • _JMRTN
    Likes 0

    Problem Description

    Hi,

    I am currently setting up cocos2d-x on my PC. I keep getting this error message.

     ->Please enter the path of NDK_ROOT (or press Enter to skip):"C:\Users\Joe Martin\Desktop\EPQ\android-ndk-r10e"
        ->Error: ""C:\Users\Joe Martin\Desktop\EPQ\android-ndk-r10e"" is not a valid path of NDK_ROOT. Ignoring it.

    Any help is appreciated.

     


  • Sonar Systems admin
    Likes 0

    Don’t put quotation marks around the path you input.

  • _JMRTN
    Likes 0

    Okay, the variables are now set, but when I couldn’t hear what the next line should be.

    I put, cocos.py new EPQ -p New.EPQ.Joe.Learning -1 cpp

    But I don’t know what goes before cpp, it sounded like he said ‘Alpha language’, but I didnt hear properly, I am not sure what key to use.

    When I press enter on this it just comes up with help, doesn’t create the folder.

  • Sonar Systems admin
    Likes 0

    it should be the letter l aka the starting letter of love

  • _JMRTN
    Likes 0

    When I put this line into the command prompt, nothing is returned, no folder is created.

    C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10>cocos.py new EPQ -p New.EPQ.Joe.Learning -L cpp

    C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10>

    Why?

  • Sonar Systems admin
    Likes 0

    Do lower case l not uppercase L for programming language.

  • _JMRTN
    Likes 0

    Tried that, doesn't work.

  • Sonar Systems admin
    Likes 0

    try adding another parameter -d which is the directory so -d thedirectorytocreateit

  • _JMRTN
    Likes 0

    cocos.py new EPQ -p new.epq.learning.joe -l cpp -d C:\Users\Joe Martin\Desktop\EPQ

    This doesn’t do anything.

     

  • Sonar Systems admin
    Likes 0

    do you get any errors/warnings in the command prompt?

  • _JMRTN
    Likes 0

    No

     

  • Sonar Systems admin
    Likes 0

    Can you show us a screenshot of the console.

  • _JMRTN
    Likes 0


  • _JMRTN
    Likes 0

    Microsoft Windows [Version 10.0.10586]
    (c) 2015 Microsoft Corporation. All rights reserved.
    
    C:\Users\Joe Martin>cd C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10
    
    C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10>setup.py
    
    Setting up cocos2d-x...
    ->Check environment variable COCOS_CONSOLE_ROOT
      ->Search for environment variable COCOS_CONSOLE_ROOT...
        ->COCOS_CONSOLE_ROOT is found : C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10\tools\cocos2d-console\bin
    
    ->Check environment variable COCOS_X_ROOT
      ->Search for environment variable COCOS_X_ROOT...
        ->COCOS_X_ROOT is found : C:\Users\Joe Martin\Desktop\EPQ
    
    ->Check environment variable COCOS_TEMPLATES_ROOT
      ->Search for environment variable COCOS_TEMPLATES_ROOT...
        ->COCOS_TEMPLATES_ROOT is found : C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10\templates
    
    ->Configuration for Android platform only, you can also skip and manually edit your environment variables
    
    ->Check environment variable NDK_ROOT
      ->Search for environment variable NDK_ROOT...
        ->NDK_ROOT is found : C:\Users\Joe Martin\Desktop\EPQ\android-ndk-r10e
    
    ->Check environment variable ANDROID_SDK_ROOT
      ->Search for environment variable ANDROID_SDK_ROOT...
        ->ANDROID_SDK_ROOT is found : C:\Users\Joe Martin\Desktop\EPQ\SDK
    
    ->Check environment variable ANT_ROOT
      ->Search for environment variable ANT_ROOT...
        ->ANT_ROOT is found : C:\Users\Joe Martin\Desktop\EPQ\apache-ant-1.9.6-bin\apache-ant-1.9.6\bin
    
    
    Please restart the terminal or restart computer to make added system variables take effect
    
    
    C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10>cocos.py new EPQ -p new.epq.learning.joe -l cpp -d C:\Users\Joe Martin\Desktop\EPQ
    
    C:\Users\Joe Martin\Desktop\EPQ\cocos2d-x-3.10>

    This is everything that is in the command prompt window.

  • Sonar Systems admin
    Likes 0

    There are spaces in the paths for the environment variables, you need to make sure there are no spaces in any of your paths.

     

    If you would like to know how to remove environment variables check out this post http://www.sonarlearning.co.uk/questions.php?question-topic=101 

  • _JMRTN
    Likes 0

    I need to get this problem fixed ASAP, this chat will not help with that, please can you add me on skype or something to get it sorted quickly?

    Skype: joemartin1998

    Thanks

  • Sonar Systems admin
    Likes 0

    I have added you.

  • _JMRTN
    Likes 0

    Sorry, I accidently declined it as I didn’t look here first to see if it was you, please send me your skype name, I will have to add you now.

    Sorry

     

  • Sonar Systems admin
    Likes 0

    its frahaanh

Login to reply