ºìÁªLinuxÃÅ»§
Linux°ïÖú

linuxϱàÒëRaknetµÄ·½·¨

·¢²¼Ê±¼ä:2009-02-19 10:59:13À´Ô´:ºìÁª×÷Õß:jcmatio
³ö×Ô£ºÎÒÏëÎÒÊǺ££¬¶¬ÌìµÄ´óº£

RaknetÊÇ´óÃû¶¦¶¦µÄÓÎÏ·ÒýÇ棬֧³ÖwindowsºÍlinux£¬µ«ÊÇ×îа汾µÄRaknetÌṩVs2005ÏµĹ¤³Ì£¬È´Ã»ÓÐlinuxµÄ±àÒ빤³Ì¡£ÒÔϽéÉÜÈçºÎÔÚlinuxϱàÒëraknet¡£

1£º´ÓÍøÕ¾ÉÏÏÂÔØ×îа汾µÄRaknet

RakNetµÄÖ÷Ò³µØÖ·£ºhttp://www.jenkinssoftware.com

2£º½âѹËõÔ´´úÂë

3£º½øÈë½âѹËõºóµÄĿ¼ÏµÄsourceĿ¼

4£ºÖ´ÐбàÒëÓï¾ä

g++ -shared -O3 -fPIC -o libraknet.so.0.0.0 *.cpp

5£º½«Éú³ÉµÄ¿âÎļþ¿½±´µ½ÏµÍ³¿âÏÂ

cp libraknet.so.0.0.0 libraknet.la /usr/local/lib/

6£º½¨Á¢Á¬½Ó

ln -s /usr/local/lib/libraknet.so.0.0.0 /usr/local/lib/libraknet.so.0
ln -s /usr/local/lib/libraknet.so.0.0.0 /usr/local/lib/libraknet.so

7£º´´½¨Í·ÎļþĿ¼

mkdir /usr/local/include/raknet

8£º½«ËùÓеÄÍ·Îļþ¿½±´µ½Ä¿Â¼ÏÂ

cp *.h /usr/local/include/raknet

9£ºÖ´ÐÐÃüÁî

ldconfig
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. shengmei2005 ÓÚ 2009-12-30 17:16:35·¢±í:

    Éú³É¹ý¾²Ì¬¿âÂð£¿
    ÔÚÉú³É¹ý³ÌÓкöྯ¸æ
    Õâ¸öÈçºÎ½âÊÍ£¿