Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running my android.mk file #31

Open
monashreer opened this issue Sep 1, 2022 · 0 comments
Open

Error while running my android.mk file #31

monashreer opened this issue Sep 1, 2022 · 0 comments

Comments

@monashreer
Copy link

Seeing this error

make: *** No rule to make target '/Users/monashreer/opus/android-opus-codec/app/src/main/jni/libopusenc/..//Users/monashreer/opus/android-opus-codec/app/src/main/jni/libopusenc/src/opusenc.c', needed by '/Users/monashreer/opus/android-opus-codec/app/src/main/obj/local/armeabi-v7a/objs/opusenc/__//Users/monashreer/opus/android-opus-codec/app/src/main/jni/libopusenc/src/opusenc.o'.

Android.mk file

#Build libopusenc

include $(CLEAR_VARS)
LOCAL_PATH			:= $(ROOT)/libopusenc
LOCAL_MODULE        := opusenc

LOCAL_SRC_FILES := \
	$(addprefix ../, $(shell cd $(LOCAL_PATH)/../; \
	find $(LOCAL_PATH)/src -type f -name '*.c'))

# LOCAL_LDLIBS        += -llog -lOpenSLES  -logg -lopus -L$(LOCAL_PATH)/lib
LOCAL_C_INCLUDES    := \
$(ROOT)/include \
$(LOCAL_PATH)/include

LOCAL_CFLAGS        := -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
LOCAL_CFLAGS        += -Drestrict='' -D__EMX__ -DOPUS_BUILD -DFIXED_POINT=1 -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -O3 -fno-math-errno
LOCAL_CFLAGS 		+= -DNDEBUG
LOCAL_CFLAGS 		+= -O3

LOCAL_CFLAGS 		+= -DPACKAGE_NAME='"CHANGE THE PACKAGE NAME"'
LOCAL_CFLAGS     	+= -DPACKAGE_VERSION='"1.0.0"'
LOCAL_CFLAGS		+= -DEXPORT=

LOCAL_CPPFLAGS      := -DBSD=1
LOCAL_CPPFLAGS      += -ffast-math -O3 -funroll-loops

LOCAL_STATIC_LIBRARIES := opus

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include

include $(BUILD_SHARED_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant