Hello everyone.

I'm sorry for late.

Complie our source code, you need to setup eclipse with CDT and SVN plugin.

In this project, development os must be linux and kernel version is 2.6.x upper.

 

1

 

first of all, get “thread_server_cpu_epoll” project from svn

 

if you don’t know svn account, ask me.

 

change your perspective to “C/C++” , if you don’t, complie menu is not appear.

 

expand project and click “Makefile”, then you can see enabled “hammer” build button

6

 

click that button and build project.

 

Project build is fail by missing of library. error message may be “-lcrypto is not found” or “-lpcap" is not found”.

 

Let’s see the Makefile

 

directory “lib” is for arm and “x86_lib” for x86.

 

./openssl and ./pcap is header file directory

 

complie openssl and pcap for x86 and arm and then cp *.a to lib and x86_lib

 

rebuild!

 

you can see “server2_x86”

 

if you want to complie arm version, modify Makefile to “all : server_x86 server_arm”

크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser