/ndk-bundle/toolchains/arm-linux–androideabi-4.9/prebuilt/linux-x86_64 / lib / gcc / arm-linux-androIDeabi / 4.9.x /../../../../ arm-linux -androIDeabi / bin / ld:错误:找不到-lrt
我更新了Android.mk以获取lrt的绝对路径,但问题没有解决
我的AndroID.mk就在这里
LOCAL_PATH := $(call my-dir) THIS_PATH := $(LOCAL_PATH) include $(CLEAR_VARS) OPENCV_CAMERA_MODulES := off OPENCV_INSTALL_MODulES := off OPENCV_liB_TYPE := STATIC OPENCV_ANDROID_SDK_HOME := /home/ravikant/Desktop/OpenCV-androID-sdk include $(OPENCV_ANDROID_SDK_HOME)/sdk/native/jnI/OpenCV.mk OPENCV_INCLUDE_DIR := $(OPENCV_ANDROID_SDK_HOME)/sdk/native/jni/include OPENCV_liBS_DIR := $(OPENCV_ANDROID_SDK_HOME)/sdk/native/libs/$(TARGET_ARCH_ABI) OPENCV_3RD_PARTY_liBS_DIR := $(OPENCV_ANDROID_SDK_HOME)/sdk/native/3rdparty/libs/$(TARGET_ARCH_ABI)LOCAL_MODulE := myModule LOCAL_CFLAGS := -w LOCAL_SRC_fileS := searchPath.cpp auxiliary.cpp LOCAL_LDFLAGS := -fopenmp -llog -ljnigraphics -L$(OPENCV_liBS_DIR) LOCAL_SHARED_liBRARIES += prebuilt_for_opencv_java -lopencv_core \ -lopencv_highgui \ -lopencv_objdetect \ -lopencv_imgproc \ -lopencv_imgcodecs \ -lopencv_photo include $(BUILD_SHARED_liBRARY)LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODulE := prebuilt_for_opencv_javaLOCAL_SRC_fileS := $(OPENCV_liBS_DIR)/libopencv_java3.soinclude $(PREBUILT_SHARED_liBRARY)
任何人都可以告诉它的ndk配置问题或不同的东西.
解决方法 我之前遇到过类似的问题.-fopenmp flag implIEs both the -lgomp and -lrt
所以只需用-lgomp替换-fopenmp即可它应该工作
总结以上是内存溢出为你收集整理的android-ndk – Ndk工具链抱怨缺少lrt选项全部内容,希望文章能够帮你解决android-ndk – Ndk工具链抱怨缺少lrt选项所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)