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

Debianϳɹ¦±àÒëCode::Blocks-LinuxÏÂÀàËÆM$VCµÄ¼¯³É¿ª·¢»·¾³

·¢²¼Ê±¼ä:2006-07-24 09:29:58À´Ô´:ºìÁª×÷Õß:ÑϺ®
תÎÄ

±¾¹ý³Ì½ö¹©´ó¼Ò²Î¿¼£¬Ï£ÍûÄܹ»ÎªÑ°ÕÒLinuxÏÂIDEµÄÅóÓÑ°ïÉϵãæ

ÎÒʹÓõÄÊÇDebia Sid,Éý¼¶µ½×îС£

Ê×ÏÈ´ÓCode::BlocksµÄ¹Ù·½ÍøÕ¾www.codeblocks.orgÏÂÎȶ¨°æÔ´´úÂ룬(ÒòΪ¹Ù·½ÍøÕ¾ÉÏÌṩµÄÔ¤±àÒë°ü²»ÊÇÔÚÎҵĻúÆ÷ÉÏÔËÐжϴíÎó¾ÍÊÇÁ´½ÓʵЧ£¬Ï²»ÁË)¡£²»¹ý¸öÈ˽¨ÒéʹÓÃsvnÏÂÔØ×îеÄÔ´´úÂë½øÐбàÒë¡£svnÊÇÀàËÆcvsµÄ°æ±¾¿ØÖƹ¤¾ß
apt-get install subversion,»ò´ÓsynapticÖÐËÑË÷Subversion½øÐа²×°¡£

mkdir codeblocks_dev
cd codeblocks_dev
svn checkout svn://svn.berlios.de/codeblocks/trunk

Ôò¹ý¼¸·ÖÖÓÔ´Âë¾ÍÏÂÔص½ÁËtrunkĿ¼Ï¡£
ÔÙ´Óhttp://www.wxwidgets.org/,ÏÂÔØwxGTK-2.6.2£¬±àÒëÐèÒª¡£
½«ÏÂÔص½µÄwxGTK-2.6.2.tar.bz2Ò²·Å½øcodeblocks_devĿ¼Ï¡£
tar jxf wxGTK-2.6.2.tar.bz2 ½âѹ
cd wxGTK-2.6.2

./configure --prefix=/opt/wx/2.6 \
--enable-xrc \
--enable-monolithic \
--enable-unicode
make
su
make install
exit

±àÒë°²×°wxGTK³É¹¦ºó

½« /opt/wx/2.6/bin ¼Óµ½$PATHÖУ¬·½·¨ÊÇÔÚ /etc/profile »ò ~/.bash_profile ÖмÓÈëÈçÏÂÓï¾ä
export PATH=/usr/bin:/opt/wx/2.6/bin:$PATH

ͬʱ»¹ÐèÒª°Ñ/opt/wx/2.6/lib¼ÓÈë/etc/ld.so.conf ÎļþÖУ¬È»ºóÔËÐУº
ldconfig
source /etc/profile

È»ºóͨ¹ýÒÔϲÙ×÷¼ì²éÒ»ÏÂ
wx-config --prefix
Ó¦·µ»Ø /opt/wx/2.6
wx-config --libs
·µ»ØÖÐÖÁÉÙÓ¦¸ÃÓÐ -L/opt/wx/2.6/lib -lwx_gtk2-2.6
which wx-config
Ó¦¸Ã·µ»Ø /opt/wx/2.6/bin/wx-config

ÏÂÃ濪ʼ±àÒëCode::Block

½øÈëtrunkĿ¼£¬Ò²¾ÍÊÇ×îеÄÔ´ÂëµÄĿ¼¡£
./bootstrap
Ä¿µÄÊÇΪÁËÉú³É¿ÉÒÔÔËÐÐ./configureµÄÏà¹ØÎļþ¡£
×¢Òâ´Ëʱ»á³öÏÖaclocal:configure.in:61: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
µÄ´íÎó£¬Í¨¹ýexport ACLOCAL_FLAGS="--acdir=`wx-config --prefix`/share/aclocal"
¼´¿É½â¾ö¡£

ÏÂÃæµÄ¾Í¼òµ¥ÁË£¬
./configure
make
make install
²»¹ýÖм仹ÊÇÓÐÒ»¸öС²åÇú£¬¹À¼ÆϵÄÔ´Âë±¾Éí»¹ÊÇÓиöС벡£¬ËùÒÔmakeµÄʱºò»á³öÏÖÏÂÃæ´íÎó
projectmanager.cppÎļþÖÐcbAssertº¯Êý䶨Òå
Ô­ÒòÊǸÃÎļþÍüÁ˽«cbexception.h include½øÈ¥£¬ËùÒÔÔÚprojectmanager.cppÎļþÖмÓÈë
#include
ÔÙÖØÐÂmake
È»ºóһ·˳·ç£¬±àÒë³É¹¦¡£


Õû¸ö¹ý³ÌÖл¹ÓÐÒ»¸ö´ó²åÇú¡£Ô­À´µÄ¿ª·¢Æ½Ì¨ÊÇUbuntu5.04,°æ±¾Ì«µÍ£¬ÐèÒª¶îÍâ°²×°ºÃ¶à¿â·ÑÁ˺öàÖÜÕÛ²ÅÄܱàÒë³É¹¦£¬¿ÉÊÇÔËÐеÄʱºòÈ´³öÏÖ¡®¶Ï´íÎó¡¯ googleÁË°ëÌìҲûÓз¢ÏÖ½â¾ö·½·¨£¬²»¹ýÎÒ¹À¼ÆÊÇϵͳ¿â°æ±¾Ì«µÍ£¬ÎÒΪÁ˱àÒë¶ø×°µÄwxGTKÓëϵͳ¿âÓгåÍ»¡£ ÒªÊÇÉý¼¶µ½Ubuntu 5.10°É£¬ÌáʾҪÏÂÔØ800MµÄÎļþ£¬ÕýºÃÊÖÍ·ÓÐÒ»ÕÅDebian SargeµÄ°²×°ÅÌ£¬×°ºÃ»ù±¾ÏµÍ³ºóÂíÉÏÉý¼¶µ½×îеÄSid,ÏÂÔصĶ«Î÷»¹ÄÜÉٵ㡣תÁËÕâô¶àµÄÍä²»¹ý×îÖÕ¿ÉÒÔÔËÐÐÁË¡£ÍòÐÒ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ