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

windows 7下cmake报错 getopt.c文件找不到 #13

Closed
lyuehh opened this issue Aug 7, 2013 · 5 comments
Closed

windows 7下cmake报错 getopt.c文件找不到 #13

lyuehh opened this issue Aug 7, 2013 · 5 comments

Comments

@lyuehh
Copy link

lyuehh commented Aug 7, 2013

系统 windows 7,
visual studio 2008完全安装,
cmake 2.8.11.2,
报错如下:

CMake Error at thirdparty/maxent/CMakeLists.txt:80 (add_executable):
  Cannot find source file:

    getopt.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
@Oneplus
Copy link
Member

Oneplus commented Aug 8, 2013

@lyuehh 现在的项目主干2.2.x版不支持windows,windows支持会在将要发布的3.0.x中实现。

@lyuehh
Copy link
Author

lyuehh commented Aug 8, 2013

晓得了。。

@lyuehh
Copy link
Author

lyuehh commented Aug 8, 2013

另外:
我在mac上编译成功后,执行bin/ltp_test dp dat.gbk会报错:

libc++abi.dylib: terminate called throwing an exception

在Ubuntu上,执行bin/ltp_test dp dat.gbk会报错:

terminate called after throwing an instance of 'std::string'

@Oneplus
Copy link
Member

Oneplus commented Aug 8, 2013

@lyuehh 这个错误是没找到配置文件时产生的错误。

执行ltp_test时应该保证运行的文件夹内有 ltp_all_modules.conf这个文件,因为ltp_test只会在当前文件夹下找这个文件。(这个奇怪的设计也会在新版中去掉)

@lyuehh
Copy link
Author

lyuehh commented Aug 8, 2013

了解了,非常感谢。

@carfly carfly closed this as completed Sep 19, 2013
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

3 participants