Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X上make发生错误fatal error: 'ltp/SRL_DLL.h' file not found #18

Open
6295685 opened this issue Aug 13, 2016 · 6 comments
Open

OS X上make发生错误fatal error: 'ltp/SRL_DLL.h' file not found #18

6295685 opened this issue Aug 13, 2016 · 6 comments

Comments

@6295685
Copy link

6295685 commented Aug 13, 2016

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]

@6295685
Copy link
Author

6295685 commented Aug 13, 2016

@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呢?

@zxy00
Copy link

zxy00 commented Jan 7, 2017

我也遇到这个问题,请问你解决了吗

@weitingyuk
Copy link

同问这个问题

@entslscheia
Copy link

怎么解决?

@snakecy
Copy link

snakecy commented Oct 10, 2017

3.4版本生成的是srl_dll.h小写,怎么解决?

@nitenzhao
Copy link

找不到SDR_DLL.h的话,可以把ltp-3.3.2/include/ltp这个目录copy到ltp4j/jni这个目录下,再重新编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants