Forums - Sample LoadJpeg app build problem

2 posts / 0 new
Last post
Sample LoadJpeg app build problem
Ghedeon
Join Date: 19 Aug 12
Posts: 2
Posted: Sun, 2012-08-19 12:39

Well, tank you guys for this awesome library, it is really fast! There are no problems with the first sample app(SplashScreen app) and everything works like a charm, but I have an issue when I trying to build the second one(LoadJpeg app).

make all 
Host OS was auto-detected: windows
make[1]: Entering directory `/cygdrive/c/Android/fastcv-android-1-1-0/samples/loadjpeg'
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
make[1]: Leaving directory `/cygdrive/c/Android/fastcv-android-1-1-0/samples/loadjpeg'
make[1]: *** No rule to make target `jni/FastCVSample.cpp', needed by `obj/local/armeabi/objs-debug/fastcvsample/FastCVSample.o'.  Stop.
make: *** [all] Error 2
Makefile:54: recipe for target `all' failed

Can you point me in the rigth direction, please?

  • Up0
  • Down0
ronaldk
Join Date: 21 Aug 12
Posts: 6
Posted: Thu, 2012-08-23 16:56

The Android.mk at jni is wrong.

You can try replacing below lines at jni/Android.mk

 

LOCAL_MODULE    := libfastcvsample

LOCAL_CFLAGS    := -Werror

LOCAL_SRC_FILES := \

    FastCVSample.cpp \

    FPSCounter.cpp \

    CameraRendererRGB565GL2.cpp \

    CameraUtil.cpp \

    FastCVSampleRenderer.cpp

LOCAL_STATIC_LIBRARIES := libfastcv

LOCAL_SHARED_LIBRARIES := liblog libGLESv2

LOCAL_C_INCLUDES +=    vendor/qcom-proprietary/blur/tests/fastcvsample/jni \

LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/fastcv/inc \

LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/fastcv

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_STATIC_JAVA_LIBRARIES :=

LOCAL_JNI_SHARED_LIBRARIES := libfastcvsample

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := FastCVSample

LOCAL_MODULE_PATH:=$(LOCAL_PATH)/../../bin/android/

include $(BUILD_PACKAGE)

 

with

 

 

LOCAL_MODULE    := libloadjpeg

LOCAL_CFLAGS    := -Werror

LOCAL_SRC_FILES := loadjpeg.cpp

LOCAL_STATIC_LIBRARIES := libfastcv

LOCAL_SHARED_LIBRARIES := liblog libGLESv2

LOCAL_C_INCLUDES += .

LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/fastcv/inc

LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/fastcv

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_STATIC_JAVA_LIBRARIES :=

LOCAL_JNI_SHARED_LIBRARIES := libloadjpeg

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := LoadJpeg

LOCAL_MODULE_PATH:=$(LOCAL_PATH)/../../bin/android/

include $(BUILD_PACKAGE)

 

 

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.