You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
编译JNI,执行make install后出现错误:
make[2]: *** No rule to make target /Users/wang/Downloads/paddle_inference/paddle/lib/libpaddle_fluid.a', needed by liblacjni.dylib'. Stop.
make[1]: *** [CMakeFiles/lacjni.dir/all] Error 2
make: *** [all] Error 2
cmake log
cmake -DPADDLE_ROOT=$PADDLE_ROOT
-DJAVA_HOME=$JAVA_HOME
-DWITH_JNILIB=ON
-DWITH_DEMO=OFF
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
-- CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++, version: AppleClang 14.0.0.14000029
-- C compiler: /Library/Developer/CommandLineTools/usr/bin/cc, version: AppleClang 14.0.0.14000029
-- paddle include: /Users/wang/Downloads/paddle_inference/paddle/include
-- paddle lib: /Users/wang/Downloads/paddle_inference/paddle/lib
-- MKLDNN lib not found.
-- MKLML lib not found.
-- openblas lib found.
-- '/Users/wang/Desktop/test/lacbaidu/lac' output dir
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/wang/Desktop/test/lacbaidu/lac
make install log
make install
[ 9%] Building CXX object CMakeFiles/lac.dir/c++/src/ahocorasick.cpp.o
[ 18%] Building CXX object CMakeFiles/lac.dir/c++/src/lac.cpp.o
[ 27%] Building CXX object CMakeFiles/lac.dir/c++/src/lac_custom.cpp.o
[ 36%] Building CXX object CMakeFiles/lac.dir/c++/src/lac_util.cpp.o
[ 45%] Linking CXX static library liblac.a
[ 45%] Built target lac
[ 54%] Building CXX object CMakeFiles/lacjni.dir/c++/src/ahocorasick.cpp.o
[ 63%] Building CXX object CMakeFiles/lacjni.dir/c++/src/lac.cpp.o
[ 72%] Building CXX object CMakeFiles/lacjni.dir/c++/src/lac_custom.cpp.o
[ 81%] Building CXX object CMakeFiles/lacjni.dir/c++/src/lac_util.cpp.o
[ 90%] Building CXX object CMakeFiles/lacjni.dir/java/cpp/lac_jni.cpp.o
make[2]: *** No rule to make target /Users/wang/Downloads/paddle_inference/paddle/lib/libpaddle_fluid.a', needed by liblacjni.dylib'. Stop.
make[1]: *** [CMakeFiles/lacjni.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
编译JNI,执行make install后出现错误:
make[2]: *** No rule to make target
/Users/wang/Downloads/paddle_inference/paddle/lib/libpaddle_fluid.a', needed by
liblacjni.dylib'. Stop.make[1]: *** [CMakeFiles/lacjni.dir/all] Error 2
make: *** [all] Error 2
cmake log
cmake -DPADDLE_ROOT=$PADDLE_ROOT
-DJAVA_HOME=$JAVA_HOME
-DWITH_JNILIB=ON
-DWITH_DEMO=OFF
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
-- CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++, version: AppleClang 14.0.0.14000029
-- C compiler: /Library/Developer/CommandLineTools/usr/bin/cc, version: AppleClang 14.0.0.14000029
-- paddle include: /Users/wang/Downloads/paddle_inference/paddle/include
-- paddle lib: /Users/wang/Downloads/paddle_inference/paddle/lib
-- MKLDNN lib not found.
-- MKLML lib not found.
-- openblas lib found.
-- '/Users/wang/Desktop/test/lacbaidu/lac' output dir
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/wang/Desktop/test/lacbaidu/lac
make install log
make install
[ 9%] Building CXX object CMakeFiles/lac.dir/c++/src/ahocorasick.cpp.o
[ 18%] Building CXX object CMakeFiles/lac.dir/c++/src/lac.cpp.o
[ 27%] Building CXX object CMakeFiles/lac.dir/c++/src/lac_custom.cpp.o
[ 36%] Building CXX object CMakeFiles/lac.dir/c++/src/lac_util.cpp.o
[ 45%] Linking CXX static library liblac.a
[ 45%] Built target lac
[ 54%] Building CXX object CMakeFiles/lacjni.dir/c++/src/ahocorasick.cpp.o
[ 63%] Building CXX object CMakeFiles/lacjni.dir/c++/src/lac.cpp.o
[ 72%] Building CXX object CMakeFiles/lacjni.dir/c++/src/lac_custom.cpp.o
[ 81%] Building CXX object CMakeFiles/lacjni.dir/c++/src/lac_util.cpp.o
[ 90%] Building CXX object CMakeFiles/lacjni.dir/java/cpp/lac_jni.cpp.o
make[2]: *** No rule to make target
/Users/wang/Downloads/paddle_inference/paddle/lib/libpaddle_fluid.a', needed by
liblacjni.dylib'. Stop.make[1]: *** [CMakeFiles/lacjni.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: