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

请求下。有teaf的使用文档吗? #1

Open
githublaohu opened this issue Aug 19, 2016 · 9 comments
Open

请求下。有teaf的使用文档吗? #1

githublaohu opened this issue Aug 19, 2016 · 9 comments

Comments

@githublaohu
Copy link

如题,谢谢。

@awayfang
Copy link
Collaborator

awayfang commented Aug 19, 2016

doc目录下就有文档的 document/Teaf(isgw)框架设计和使用说明书.doc

@awayfang
Copy link
Collaborator

awayfang commented Aug 19, 2016

Teaf/trunk/teaf(isgw)/readme.txt 目录下也有简单的说明

@githublaohu
Copy link
Author

L/learning/work/wuC/lua-5.3.3/ -L/usr/include/mysql -static -lACE -lnsl -lm -lz -lc -ldl -lpthread -lrt -llua -lmysqlclient_r -lhiredis
/usr/bin/ld: 找不到 -lACE
/usr/bin/ld: 找不到 -llua
/usr/bin/ld: 找不到 -lmysqlclient_r
/usr/bin/ld: 找不到 -lhiredis

不知道这个怎么处理。
可以用源码直接安装吗?

下面是我修改的makefile文件。麻烦下。
CXX=g++ -g
CFLAGS= -DPDB -DADMIN_OPER #-DISGW_USE_LUA #-DISGW_USE_ASY #-DISGW_USE_IBC -DISGW_USE_DLL -DVIP_OPER -DWEBGAME_OPER
INCLUDE= -I//ACE_wrappers -I/lua-5.3.3 -I/hiredis -I./ -I/usr/local/include/ace -I../easyace/ -I/usr/include/mysql -I../comm/ -I../frm -I../../comm/

#ISGW_USE_DLL = 1
ifdef ISGW_USE_DLL
LIBS= -L./ -L/usr/local/lib/ -L../../comm/
/usr/local/lib/libACE.a -lnsl -lm -lz -lc -ldl -lpthread -lrt #-llua /usr/local/lib/libmysqlclient_r.a -lhiredis
else
LIBS= -L./ -L/usr/local/lib/ -L../../comm/
-L/ACE_wrappers/
-L/lua-5.3.3/
-L/usr/include/mysql
-static -lACE -lnsl -lm -lz -lc -ldl -lpthread -lrt -llua -lmysqlclient_r -lhiredis
endif

@githublaohu
Copy link
Author

注释掉 ACE lua hiredis.
ACE 编译 不通过。
/ACE_wrappers/ace/Acceptor.cpp:168:对‘ACE_INET_Addr::~ACE_INET_Addr()’未定义的引用
/ACE_wrappers/ace/Acceptor.cpp:168:对‘ACE_INET_Addr::~ACE_INET_Addr()’未定义的引用
collect2: error: ld returned 1 exit status
makefile:23: recipe for target 'isgw_svrd' failed

@awayfang
Copy link
Collaborator

指导文档中有的 需要先编译ACE的库,这个框架是依赖ACE的
其他的像lua mysql hiredis不用都可以注释掉

@githublaohu
Copy link
Author

mysql 与 hiredis,这要用啊。
有直接引来的方式吗?
不编译 这些库。
编译之后文件。到处放,好烦的。。。

@awayfang
Copy link
Collaborator

我们只是一个网络框架 不可能把需要的第三方库都包含进来的,请使用自己安装的mysql和redis的库就好

@githublaohu
Copy link
Author

抱歉,可能我观点表达错误了。
我的意思是,在makefile有什么办法。直接引用源文件,而不是引用/usr/lib (其他系统目录)文件 和 编译过的o或者a文件。

@awayfang
Copy link
Collaborator

不行的 编译使用到第三方库的时候 就需要引用库的头文件 和 库文件.a或者so的
暂时不支持直接通过第三方的源码进行编译 为了方便交流 可以加 QQ群 379103538

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

2 participants