青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

Thronds

一問你會什么 二問你做出過什么 三問你為了什么

  C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
  36 隨筆 :: 0 文章 :: 56 評論 :: 0 Trackbacks
     Code::Blocks是一個開源的跨平臺的C/C++的IDE,和VC++系列的IDE非常類似,這對于從windows下轉型到 Linux的用戶是一個非常不錯的選擇。windows下早就安裝過了,體驗之后非常不錯,雖然和vc不能相提并論,但是在linux下面能夠使用到這么 強大的IDE已經非常了不起了。那么開始把,本人的系統是ubuntu8.04,幾經周折,終于成功完成。(來自csdn的xugang_2001)

    開始到處google資料,最后嘗試N次之后才發現,官方就有CB的安裝方法,具體鏈接在wiki上:

Installing Code::Blocks nightly build on Ubuntu


這個因為是國外網站打開速度可能比較慢,我就替大家貼出來吧:

Installing Code::Blocks nightly build on Ubuntu

From CodeBlocks

Jump to: navigation, search

This is a quick guide to get Code::Blocks up and running on your Ubuntu based Linux distribution. It is also going to make sure you can develop wxWidgets applications on your box as well. Look at the bottom of this guide for a complete command line that will install all the packages in one operation.

First be sure you have the necessary software to compile and debug programs.

1. Install the compiler.

sudo apt-get install build-essential

2. Install the debugger.

sudo apt-get install gdb

You'll need to install wxWidgets to use Codeblocks. Revisions prior to revision 4051 use wxWidgets 2.6 and revisions from 4051 and after use wxWidgets 2.8.4. If you want to install a revision prior to revision 4051, make sure you have your universe and multiverse repositories enabled and install the following packages.

3. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks)

sudo apt-get install libwxgtk2.6-0

4. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)

sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common

(注:上面2個步驟非常重要,缺了gtklib后面的deb包安裝就會失敗)

5. (OPTIONAL) Install the wxWidgets documentation.

sudo apt-get install wx2.6-doc

(注:在下載wxWidgets系列庫的時候其實可以直接使用新立得軟件更新包管理器來 搜索wxWidgets字眼,然后從當中的列表中選擇最新的庫來裝.直接選就可以省掉上面一對麻煩的命令,其實上面的幾個步驟無非就是完成libgtk庫 和wxWidgets相關庫的安裝,這在新利得上搜索wxWidgets很容易選擇。)
To install wxWidgets 2.8.4 you need to be using Ubuntu 6.10 (Edgy Eft) or Ubuntu 7.04 (Feisty Fawn) and you need to add the wxWidget repository to your sources.list. You can install wxWidgets 2.8.4 on Ubuntu 6.06 (Dapper Drake), but the nightly builds are not made to run on Dapper.

1. Backup your current sources.list first for precaution.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. Open your sources.list in a text editor to edit it.

gksudo gedit /etc/apt/sources.list

3. Add the correct repository for the Ubuntu version you are running to the end of the file. The repository listed below is referenced on the wxWidgets.org download page and appears to be for the stable version.

deb http://apt.tt-solutions.com/ubuntu/ edgy main

or

deb http://apt.tt-solutions.com/ubuntu/ feisty main

4. Save and close the file.

5. Add the key for tt-solutions.com.

sudo wget http://www.tt-solutions.com/vz/key.asc
sudo apt-key add key.asc

Alternate wxWidgets repository. Some users of Code::Blocks have received critical errors related to libwxgtk when using the above repository packages. They were able to solve their problems by installing newer packages available from an alternate repository from wxWidgets.org. To use these packages make the following changes to the above directions:

Add deb http://apt.wxwidgets.org/ edgy-wx main or deb http://apt.wxwidgets.org/ feisty-wx main to your sources.list.

Download the gpg key using wget http://apt.wxwidgets.org/key.asc and install the same as above.

6. Update your sources.list and run upgrade to make sure everything is up-to-date.

sudo apt-get update
sudo apt-get dist-upgrade

7. Now you're finally ready to install wxWidgets 2.8.4.

sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common

8. Set wxWidgets 2.8 as default version for your machine. Select number for the wxgtk2.8 version.

sudo update-alternatives --config wx-config

Now go get the nightly build and install it. All dependencies should now be met.

1. Get the latest nigtly build of Code::Blocks from the nightly builds forum.

2. Install Code::Blocks.

sudo dpkg -i <Name_Of_Daily_Build.deb>

NOTE: Since revision 4281 and after, the nightly builds are made differently. Codeblocks is now packaged into separate Debian packages and the packages are archived together in a tar.gz file.

(編 者注:其實所謂的nightly build版本只是在version4281之前才有效,后來的的版本是不需要下載所謂的nightly&&deb版本,直接到官方網站下載deb包,里 頭有6個小包,直接使用后面的dpkg -i *.deb就可以了。這里頭千萬別被nighlt弄混了,直接無視就是了。)

1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.

tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz

(編者注:這里只是解壓deb的命令,也可以直接在IDE上右鍵選擇“解壓縮到此處。。。”即可)

2. Install all the packages at the same time.

sudo dpkg -i *.deb
(注:大功告成的語句)

The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.




NOTE: Here is a complete command line for the above steps. Watch for word wrap. Replace wx2.6 with wx2.8 when needed.


(編者注:這里只是提供一個替換wx2.6到最新版(目前為止)2.8時的命令)

sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc wx-common


Without optional steps:

sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx-common

也許大家要問了,如果是想自己用源碼從頭到尾進行編譯怎么辦?我這里也有一個解決方案,
原理和步驟基本上和上文類似,大家可以參考一下:

1. Linux平臺下編譯安裝wxGTK(以wxGTK-2.6.2 為例)
下載wxGTK-2.6.2.tar.gz(http://www.wxwidgets.org/)
tar zxvf wxGTK-2.6.2.tar.gz
cd wxGTK-2.6.2
./configure --enable-xrc --enable-monolithic --enable-unicode

make
make install

vi /etc/ld.so.conf
將/usr/local/lib加入后,運行ldconfig

可以通過以下操作的輸出檢查安裝是否正確
wx-config --prefix
wx-config --libs
which wx-config

2.下載Code::Block
通過svn+http下載code::blocks
安裝subversion,在 .subversion/servers 文件的global段設置代理服務器
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk

如果不需要設置代理服務器,則可以用
svn checkout svn://svn.berlios.de/codeblocks/trunk
直接下載代碼

3.編譯安裝Code::Block
直接運行bootsrtap可能會遇到宏AM_PATH_WXCONFIG 沒定義等錯誤

1) cp /usr/local/share/aclocal/wxwin.m4 /usr/share/aclocal/wxwin.m4
2)./bootstrap
./configure
make
make install

至此全部ok了 經測驗第一種方法完全可行,并且在我的Ubuntu8.04上順利啟動,哈哈,Ejoy it!

http://blog.csdn.net/xugang_2001/archive/2008/11/05/3230598.aspx
posted on 2009-01-11 16:56 thronds 閱讀(3268) 評論(6)  編輯 收藏 引用 所屬分類: C++技術Linux桌面技術

評論

# re: 轉載 ubuntu上關于Code::Blocks(8.02RC)的安裝全記錄 2010-07-09 09:52 MCCARTYDionne19
The custom research paper creating would not always be a kind of fun. The <a href="http://www.supremeessays.com/custom-term-paper-writing-service.html">custom term paper writing service</a> essays would cost a lot of time. Bright people will advice to <a href="http://www.supremeessays.com/buy-an-essay-online.html">buy an essay online</a>. I do opine that it is the most simple way.   回復  更多評論
  

# re: 轉載 ubuntu上關于Code::Blocks(8.02RC)的安裝全記錄 2010-07-09 10:22 university essay
Begin your research paper composing and do not get know how to finish it? You not have to be worried, simply buy custom term paper writing service Online and be sure that your essays papers online are written by distinguished writers.   回復  更多評論
  

# re: 轉載 ubuntu上關于Code::Blocks(8.02RC)的安裝全記錄 2010-08-08 00:15 humanities essays
Did not make up your mind whether to buy religion essays or to compose that your own? I could suggest to get term paper at the professional writing service, when you had no time.   回復  更多評論
  

# re: 轉載 ubuntu上關于Code::Blocks(8.02RC)的安裝全記錄 2010-08-23 22:13 essay writing services
Make composition alone, without relief assistance from others very difficult. And it is very necessary to prefer the decent priorities in life! We can support you prosper in publish essay writing services.  回復  更多評論
  

# essay. 2010-10-18 13:44 termpaper99@gmail.com
該網站是非常偉大,我想參觀這里,因為它內容豐富,從這里我得到的信息  回復  更多評論
  

# re: 轉載 ubuntu上關于Code::Blocks(8.02RC)的安裝全記錄 2012-09-07 14:34 resume writing
The customers count on this resume service cause they are very responsible! This company performs buy resume to fit the precise area of science you wish.  回復  更多評論
  

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲一区综合| 久久国产精品久久久久久| 欧美精品久久99| 亚洲美女在线一区| 亚洲精品欧美精品| 欧美人与禽猛交乱配| 亚洲少妇自拍| 午夜精品视频在线| 永久免费毛片在线播放不卡| 蜜臀久久99精品久久久画质超高清| 久久久精品国产免费观看同学| 亚洲成人资源| 91久久久亚洲精品| 久久精品国产精品亚洲精品| 久久精品最新地址| 亚洲精品偷拍| 中文一区在线| 欧美日韩成人综合天天影院| 亚洲欧美日韩精品久久| 午夜久久影院| 亚洲免费精品| 欧美一区二区在线免费观看| 亚洲激情欧美| 亚洲男人的天堂在线aⅴ视频| 国产亚洲精品激情久久| 欧美国产精品专区| 国产精品视频福利| 欧美黑人国产人伦爽爽爽| 欧美一区二区三区精品| 国产午夜精品视频免费不卡69堂| 欧美91精品| 久久精彩免费视频| 亚洲国内欧美| 亚洲欧美另类国产| 亚洲国产第一| 欧美有码视频| 亚洲一区二区三区免费在线观看| 久久精品视频亚洲| 亚洲欧美另类在线| 欧美大片在线看免费观看| 欧美在线不卡视频| 欧美女人交a| 欧美国产视频一区二区| 国产日韩精品一区观看| 日韩视频永久免费观看| 亚洲国产精品一区二区第四页av| 亚洲性图久久| 亚洲午夜一区二区| 欧美电影免费观看大全| 鲁大师成人一区二区三区| 国产精品区一区二区三区| 亚洲国产中文字幕在线观看| 国产视频精品xxxx| 一区二区三区www| 日韩视频在线观看国产| 免费观看日韩av| 久久久噜噜噜久噜久久| 国产欧美日本一区二区三区| aa级大片欧美三级| 亚洲伦理中文字幕| 欧美成人小视频| 欧美激情精品久久久久| 在线观看av一区| 久久婷婷人人澡人人喊人人爽| 久久国产精品99国产| 国产精品私拍pans大尺度在线| 一区二区三区四区蜜桃| 一区二区日韩精品| 欧美日韩免费网站| 99国产精品99久久久久久| 一区二区三区 在线观看视频| 欧美成人精品高清在线播放| 亚洲国产精品日韩| 一本久久a久久精品亚洲| 欧美激情中文不卡| 91久久线看在观草草青青| 日韩亚洲一区二区| 欧美日韩免费一区| 一本色道久久综合亚洲精品小说| 一区二区三区免费看| 国产精品久久久| 亚洲欧美精品suv| 久久一区二区三区四区| 亚洲二区精品| 欧美激情视频在线免费观看 欧美视频免费一| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲缚视频在线观看| 欧美激情无毛| 亚洲视频久久| 久久综合国产精品| 亚洲日本国产| 国产精品色婷婷| 久久久久99| 日韩亚洲一区二区| 欧美专区第一页| 亚洲精品乱码| 国产精品毛片| 欧美va日韩va| 亚洲免费婷婷| 亚洲国产成人久久综合一区| 亚洲女人天堂成人av在线| 狠狠狠色丁香婷婷综合久久五月| 欧美成人a视频| 亚洲综合好骚| 亚洲区国产区| 久久午夜视频| 亚洲免费在线观看| 亚洲国产精品久久久久秋霞影院 | 久久久久久网站| 亚洲人成人77777线观看| 国产精品视频在线观看| 免费成人在线视频网站| 亚洲小说区图片区| 亚洲欧洲久久| 免费日韩视频| 欧美一级淫片aaaaaaa视频| 欧美成人免费视频| 欧美一区二区三区另类| 亚洲欧洲一二三| 免费观看国产成人| 久久精品国产欧美亚洲人人爽| 亚洲精品孕妇| 亚洲高清激情| 国产亚洲aⅴaaaaaa毛片| 国产精品v欧美精品v日本精品动漫 | 在线一区二区日韩| 在线国产日韩| 国产一区久久| 国产视频亚洲| 国产精品欧美日韩一区| 欧美日韩国产另类不卡| 麻豆精品网站| 久久亚洲捆绑美女| 久久国产欧美日韩精品| 午夜精品国产| 亚洲欧美成人综合| 亚洲在线黄色| 亚洲男人av电影| 亚洲欧美日韩一区二区在线| 99精品99| 一区二区三区欧美| 亚洲视频观看| 亚洲免费在线电影| 午夜欧美电影在线观看| 午夜精品久久久久久久男人的天堂 | 久久激情一区| 久久天堂av综合合色| 久久久久久久久久久久久女国产乱 | 欧美风情在线| 欧美大片在线观看一区二区| 久久中文久久字幕| 久久在线免费观看视频| 另类尿喷潮videofree | 亚洲精品视频免费| 亚洲精选在线| 亚洲午夜未删减在线观看| 亚洲无人区一区| 亚洲欧美日本伦理| 欧美中文字幕精品| 麻豆精品视频在线观看| 欧美成人免费在线| 亚洲精品美女| 亚洲自拍偷拍色片视频| 欧美中文字幕| 欧美福利精品| 国产精品xxxxx| 国内揄拍国内精品久久| 亚洲国产成人av在线| 一本色道久久综合狠狠躁篇的优点| 亚洲免费成人av| 午夜精品三级视频福利| 久久综合激情| 日韩视频免费观看高清在线视频 | 亚洲精品免费在线播放| 亚洲调教视频在线观看| 欧美制服丝袜第一页| 美女视频黄 久久| 欧美性开放视频| 激情五月综合色婷婷一区二区| 91久久精品一区| 欧美一级大片在线观看| 欧美a级一区| 中日韩高清电影网| 麻豆av一区二区三区| 国产精品久久久| 亚洲激情电影在线| 欧美在线一二三| 亚洲精品资源美女情侣酒店| 欧美在线短视频| 欧美四级电影网站| 亚洲电影免费观看高清| 亚洲欧美日韩精品久久| 欧美激情第4页| 午夜久久电影网| 欧美视频日韩视频在线观看| 亚洲国产精品va在线看黑人动漫| 性久久久久久久久| 亚洲另类黄色| 免费人成网站在线观看欧美高清| 国产精品有限公司|