From 3836b5c194cfd1ef175da8e992329eb9ec271663 Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Tue, 7 Jan 2020 00:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91libmp3lame?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 编译libmp3lame --- app/CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 9451f7f..dbd072a 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -42,12 +42,12 @@ set_target_properties( ffmpeg PROPERTIES IMPORTED_LOCATION ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libffmpeg.so ) -#add_library( mp3lame -# SHARED -# IMPORTED ) -#set_target_properties( mp3lame -# PROPERTIES IMPORTED_LOCATION -# ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libmp3lame.so ) +add_library( mp3lame + SHARED + IMPORTED ) +set_target_properties( mp3lame + PROPERTIES IMPORTED_LOCATION + ../../../../libs/${CMAKE_ANDROID_ARCH_ABI}/libmp3lame.so ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") @@ -67,7 +67,7 @@ find_library( # Sets the name of the path variable. target_link_libraries( # Specifies the target library. media-handle -# mp3lame + mp3lame ffmpeg -landroid #native_window -ljnigraphics #bitmap