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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:53:44+00:00 2026-05-27T10:53:44+00:00

I try to build QCAR SDK project sample. It’s an Android+NDK project. When I

  • 0

I try to build QCAR SDK project sample. It’s an Android+NDK project. When I used ndk-build via shell it worked fine, but then I converted project to C++ project using Eclipse CDT. Now I can’t build it in Eclipse:

**** Build of configuration Default for project ImageTargets ****

make all 
make: *** No rule to make target `all'.  Stop.

**** Build Finished ****

Here’s Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := QCAR-prebuilt
LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := ImageTargets

TARGET_PLATFORM := android-5

USE_OPENGL_ES_1_1 := false

ifeq ($(USE_OPENGL_ES_1_1), true)
    OPENGLES_LIB  := -lGLESv1_CM
    OPENGLES_DEF  := -DUSE_OPENGL_ES_1_1
else
    OPENGLES_LIB  := -lGLESv2
    OPENGLES_DEF  := -DUSE_OPENGL_ES_2_0
endif

LOCAL_CFLAGS := -Wno-write-strings $(OPENGLES_DEF)
LOCAL_LDLIBS := \
    -llog $(OPENGLES_LIB)
LOCAL_SHARED_LIBRARIES := QCAR-prebuilt
LOCAL_SRC_FILES := ImageTargets.cpp SampleUtils.cpp Texture.cpp
LOCAL_ARM_MODE := arm
include $(BUILD_SHARED_LIBRARY)

I tried to create custom builder following this tutorial but nothing helped.
List of builders:
enter image description here

Environment:

Windows 7 32

GNU Make 3.82.90

g++ 3.4.4

android-ndk r6

Eclipse Indigo

Will appreciate any help. Thanks.

  • 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-05-27T10:53:45+00:00Added an answer on May 27, 2026 at 10:53 am

    I remembered that I tried fastcv samples and described technique worked. So I browsed it and found another makefile in the root of the project. I’ve added it to the QCAR sample and now it seems to work.
    I’m new to makefiles, but I think that the key is in defining ‘all’ as ‘ndk-build’:

    #
    # Determine host system and architecture from the environment
    # (Borrowed from NDK makefile "init.mk"
    #
    
    HOST_OS := $(strip $(HOST_OS))
    ifndef HOST_OS
        # On all modern variants of Windows (including Cygwin and Wine)
        # the OS environment variable is defined to 'Windows_NT'
        #
        # The value of PROCESSOR_ARCHITECTURE will be x86 or AMD64
        #
        ifeq ($(OS),Windows_NT)
            HOST_OS := windows
        else
            # For other systems, use the `uname` output
            UNAME := $(shell uname -s)
            ifneq (,$(findstring Linux,$(UNAME)))
                HOST_OS := linux
            endif
            ifneq (,$(findstring Darwin,$(UNAME)))
                HOST_OS := darwin
            endif
            # We should not be there, but just in case !
            ifneq (,$(findstring CYGWIN,$(UNAME)))
                HOST_OS := windows
            endif
            ifeq ($(HOST_OS),)
                $(error Unable to determine HOST_OS from uname -s: $(UNAME))
                $(error Please define HOST_OS in your environment.)
            endif
        endif
        $(info Host OS was auto-detected: $(HOST_OS))
    else
        $(info Host OS from environment: $(HOST_OS))
    endif
    
    #
    # Define function to fix path names to work with Make
    #
    ifeq ($(HOST_OS),windows)
        fixpath = $(shell cygpath $(subst \,/,$(1)))
    else
        fixpath = $(1)
    endif
    
    # Fix working directory path for NDK tools
    PWD := $(call fixpath,$(PWD))
    
    # Fix Android NDK root path
    ANDROID_NDK_ROOT := $(call fixpath,$(ANDROID_NDK_ROOT))
    
    all:
        @$(ANDROID_NDK_ROOT)ndk-build 
    
    clean:
        @$(ANDROID_NDK_ROOT)ndk-build clean
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to build an application on Android. And I'm new in Android. But
i try to build an application with xml parser. ex : http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser but i
I get an error when I try to build my project. 'SSLAccessFiltercannot' be used
When I try to build my project I get the following message in the
When I try to build a project in Visual Studio 2005 that has a
I'm getting an error message when I try to build my project in eclipse:
I've included: #import QuartzCore/QuartzCore.h but when I try to build, I get the error
I try to build a product with Tycho 0.13.0, but I get a following
When I try to build a project that uses Flex and where the Flex
When I try to Build a project it says: The operation could not be

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.