OS X上make发生错误fatal error: 'ltp/SRL_DLL.h' file not found
6295685 opened this issue · comments
MacdeMacBook-Pro:ltp4j mac$ make
Scanning dependencies of target srl_jni
[ 8%] Building CXX object CMakeFiles/srl_jni.dir/jni/srl_jni.cpp.o
/Users/mac/Documents/ltp4j/jni/srl_jni.cpp:2:10: fatal error: 'ltp/SRL_DLL.h'
file not found
include "ltp/SRL_DLL.h"
^
1 error generated.
make[2]: *** [CMakeFiles/srl_jni.dir/jni/srl_jni.cpp.o] Error 1
make[1]: *** [CMakeFiles/srl_jni.dir/all]
@endyul @carfly @Oneplus @jiangfeng1124
修改了/path/to/your/ltp4j-project/CMakeLists.txt中的LTP_HOME的值,对应修改的代码为:
set (LTP_HOME "/Users/mac/Documents/ltp-3.3.2")
明明在ltp-3.3.2/include/ltp目录下有SDR_DLL.h。为什么make还是找不到SDR_DLL.h呢?
我也遇到这个问题,请问你解决了吗
同问这个问题
怎么解决?
3.4版本生成的是srl_dll.h小写,怎么解决?
找不到SDR_DLL.h的话,可以把ltp-3.3.2/include/ltp这个目录copy到ltp4j/jni这个目录下,再重新编译