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 8055201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:19:12+00:00 2026-06-05T08:19:12+00:00

I have the next folder structure: On $My_Eclipse_Project jni/Android.mk jni/Application.mk jni/main.cpp lib/ On $My_Library_Project

  • 0

I have the next folder structure:


On $My_Eclipse_Project

  • jni/Android.mk
  • jni/Application.mk
  • jni/main.cpp
  • lib/

On $My_Library_Project

  • src/
  • include/
  • Android.mk

$My_Eclipse_Project/jni/main.cpp is a basic makefile whom call the source to compile, following the instructions from $My_Library_Project/Android.mk

    # NOTE:
$(warning Compiling Android.mk from sample_cameraview_activity)

# This path
LOCAL_PATH := $(call my-dir)
$(warning Local path: $(LOCAL_PATH))

# GNU var
include $(CLEAR_VARS)

# Include extra library
include $(mylibrary_INCLUDE)/../Android.mk

# Add openCV

# Add in .bashrc enviroment var
include $(OPENCV_SHARE_MK)/OpenCV.mk

LOCAL_ARM_NEON := true

# Local libraries

LOCAL_LDLIBS += -llog -lGLESv1_CM

# Name library

LOCAL_MODULE    := camView

# Local SRC

LOCAL_SRC_FILES := main.cpp

# Shared library

include $(BUILD_SHARED_LIBRARY)

The problem is, $My_Library_Project>Android.mk don’t detect the folder structure what is waiting, because my source is on src folder, don’t at jni folder. I get:

Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. 

How could i compile the code at $My_Library_Project from $My_Eclipse_Project, and copy the library generated on $My_Eclipse_Project>lib/armeabi, to be used by main.cpp?

Thanks in advance.

  • 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-05T08:19:13+00:00Added an answer on June 5, 2026 at 8:19 am

    2 Options. You can define $NDK_PROJECT_PATH = /your_ndk_path, Makefile auto detect the path and use it to compile, or add a enviroment var with name $NDK_PROJECT_PATH and value /your_ndk_path.

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

Sidebar

Related Questions

I have next package structure webService.ear -- dependency.jar -- some.class Can I remove some.class
I have next trouble. I have one folder(FirstFolder) and 3 subfolders(1, 2, 3). I
I have the next problem: I am trying to deploy an application on my
I have a folder structure like this: package_name/ |-- module1 |-- module2 |-- module3
I'm using Core Data and I have a file-folder tree-like structure. So I've created
I have recently started programming android apps (put simply, i have next to no
I have a project that stores templates in a \Templates folder next to the
I have next WSDL file <definitions targetNamespace=http://soft.com/ name=LoggingWebService xmlns=http://schemas.xmlsoap.org/wsdl/ xmlns:tns=http://ws.config.softid.softcomputer.com/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/> <types> <xsd:schema>
I have next problem. Other team was changed(deleted) property from component and now some
We have next: Big solution with a lot of changes to db Production database

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.