Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7714973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:16:11+00:00 2026-06-01T02:16:11+00:00

I have installed correctly the Android SDK, Android NDK, eclipse, and I have the

  • 0

I have installed correctly the Android SDK, Android NDK, eclipse, and I have the last repository’s cocos2d from git.

I have followed the steps in the wiki to generate a project and I have done correctly.

The problem comes when I run ./build_native.sh, I get this error:

 Cannot find module with tag 'libjpeg' in import path

I have checked the Android.mk, and I suppose that the error is in the final zone:

LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libpng_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jpeg_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libxml2_static

# define the macro to compile through support/zip_support/ioapi.c                
LOCAL_CFLAGS := -DUSE_FILE32API

include $(BUILD_SHARED_LIBRARY)

$(call import-module,libjpeg)
$(call import-module,libpng)
$(call import-module,libxml2)

I have read the steps several times, and I didn’t forget (I think) anything. Could someone who have been compiled the code help me please?

The complete error is:

Android NDK: jni/../../../cocos2dx/Android.mk: Cannot find module with tag 'libjpeg' in import path    
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?    
Android NDK: The following directories were searched:    
Android NDK:         
make: Entering directory `/home/pipero/git_checkout/cocos2d-x/PiperoStest/android'

Thanks in advance.

EXTRA: I have created the project using the: $COCOS2D>create-linux-eclipse-project.sh and i can’t open the project in eclipse neither to compile using ndk from eclipse directly.

EXTRA2: The steps are from HERE

EXTRA3: I already changed the NDK_ROOT_LOCAL="$LIBS/android-ndk-r7b"
ANDROID_SDK_ROOT_LOCAL="$LIBS/android-sdk-linux"

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:16:12+00:00Added an answer on June 1, 2026 at 2:16 am

    I followed steps below with version 0.12.0 (2012-03-05) and it worked:

    1º Install NDK Android

    2º Install SDK Android

    3º Instal Android plug-in on Eclipse.

    4º Download ./create-android-project.sh with NDK and SDK paths.

    5º Compile a new project with ./create-linux-eclipse-project.sh

    • Choose ID (android). If you get a warning that means it cannot find NDK.
    • Name of the project
    • It’ll be create on current folder.

    6º Compile Cocos2d libs inside project folder with ./build_native.sh.

    7º Create new Android project from source code in project’s folder > android.

    8º Run the project and it should appear Cocos2d wallpaper.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Android programming. I have installed the Eclipse and Android SDK.
I have recently downloaded both the 2.3 and 3.0 SDK for Android using Eclipse.
I currently have the android sdk running with eclipse. It happens to be that
I have the jQuery numberformatter-plugin installed, but don´t get it to work correctly. I
I have a strange problem with my Android app. When I start it from
Currently I have Android SDK 2.1 (+ tools revision 4). I'd like to upgrade
I am trying to develop android apps on a MAC Mini and have installed
I believe I've followed the instructions in the Android SDK, and I'm now trying
i need to open a pdf file from my android app. I have the
I have currently an installed pgsql instance that is running on port 1486 .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.