Problem with eclipse and cocos2d-x

  • chevicus
    Likes 0

    Problem Description

    So i compiled the project and imported it into eclipse 

    this is my appdelegate.java file now 

    /****************************************************************************
    Copyright (c) 2010-2012 cocos2d-x.org

    http://www.cocos2d-x.org

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    ****************************************************************************/
    package org.cocos2dx.cpp_tests;

    import org.cocos2dx.lib.Cocos2dxActivity;
    import org.cocos2dx.lib.Cocos2dxGLSurfaceView;

    public class AppActivity extends Cocos2dxActivity {
    }

    The red parts are the problem parts-they are not recognised. So what should i do to compile it in eclipse and run on emulator

  • Sonar Systems admin
    Likes 0

    What Cocos2d-x version are you using?

  • chevicus
    Likes 0

    Last one – 3.10 

  • Sonar Systems admin
    Likes 0

    Could you walk me through the exact process you are taking to do this.

  • chevicus
    Likes 0

    Well, i go to console and create a project in cocos2d-x/tests/cpp-tests, using command cocos compile -p android -s D:\Cocos\Cocos2d-x\cocos2d-x-3.10\build\tests/cpp-tests --ndk-mode debug.  It compiles ok Then i import project to eclipse the way you showed in your video. Basically, that’s all.

    The eclipse window is presented here 

    Update – i was cloning libcococ2dx from the wrong place. everything is working now 


Login to reply