Skip to content

Commit 2890f4a

Browse files
Fix mnn_tts build failure by copying libMNN.so to lib dir
This commit modifies `apps/Android/MnnLlmChat/build.sh` to copy the generated `libMNN.so` to a `lib` subdirectory within the build output. This is required because the `mnn_tts` dependency expects the library to be located in `lib/libMNN.so`, causing build failures otherwise.
1 parent 8c1a5e5 commit 2890f4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/Android/MnnLlmChat/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ cd build_64
2424
-DCMAKE_SHARED_LINKER_FLAGS='-Wl,-z,max-page-size=16384' \
2525
-DCMAKE_INSTALL_PREFIX=."
2626
make install
27+
mkdir -p lib
28+
cp libMNN.so lib/libMNN.so
2729
cd ../../../apps/Android/MnnLlmChat/
2830
./gradlew assembleStandardDebug

0 commit comments

Comments
 (0)