Would you mind adding a installation intro for OSX?
你好,在论坛上看到你项目,只可惜本人用的是osx系统。 不知道这里的源码能不能直接在osx下编译呢?
你好 :) 我这几天准备添加注释/文档,所以暂时可读性有折扣,抱歉!
在osx可以直接编译的. backend现在是c++. 需要clang和cmake来编译.
cd monster-avengers/cpp mkdir build cd build cmake .. make
就可以了
前端是common lisp, 我用的是sbcl + quicklisp来load的. 如果你感兴趣我可以详细说明 :)
祝好!
On Tue Feb 17 2015 at 11:42:54 AM Chienli Ma(马千里) [email protected] wrote:
你好,在论坛上看到你项目,只可惜本人用的是osx系统。 不知道这里的源码能不能直接在osx下编译呢?
— Reply to this email directly or view it on GitHub https://github.com/breakds/monster-avengers/issues/1.
谢谢~我编译的时候出现error,我先看看能不能自己改,不能的话给你报上来。另外网页版有bug。我另开issue
收到。我下班以后就会改正。 非常感谢! 另外编译错误是什么? 或许我能帮上。 新年快乐!
-BDS On Feb 19, 2015 9:08 AM, "Chienli Ma(马千里)" [email protected] wrote:
谢谢~我编译的时候出现error,我先看看能不能自己改,不能的话给你报上来。另外网页版有bug。我另开issue
— Reply to this email directly or view it on GitHub https://github.com/breakds/monster-avengers/issues/1#issuecomment-75056893 .
新年快乐~~ : D 打搅你工作了,下面是错误信息:
:build ChienliMa$ make
[ 20%] Building CXX object CMakeFiles/find_armor.dir/find_armor.cc.o
In file included from /Users/ChienliMa/Code/monster-avengers/cpp/find_armor.cc:1:
In file included from /Users/ChienliMa/Code/monster-avengers/cpp/./monster_hunter_data.h:11:
/Users/ChienliMa/Code/monster-avengers/cpp/./helpers.h:90:5: error: use of
undeclared identifier 'exit'
exit(-1);
^
/Users/ChienliMa/Code/monster-avengers/cpp/find_armor.cc:9:3: error: no member
named 'setlocale' in namespace 'std'; did you mean simply 'setlocale'?
std::setlocale(LC_ALL, "en_US.UTF-8");
^~~~~~~~~~~~~~
setlocale
/usr/include/locale.h:53:8: note: 'setlocale' declared here
char *setlocale(int, const char *);
^
2 errors generated.
make[2]: *** [CMakeFiles/find_armor.dir/find_armor.cc.o] Error 1
make[1]: *** [CMakeFiles/find_armor.dir/all] Error 2
make: *** [all] Error 2
看起来不像是大问题。不知道是不是我环境的问题。
你用的编译器是什么?版本是多少?这个看起来是clang的版本不够高,所以setlocale没有实现。
https://github.com/soshial/xdxf_makedict/issues/13 这个貌似和你描述得很像。如果升级clang不行,你可以试试安装libintl。