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

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包安裝就會失?。?/font>

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 閱讀(3204) 評論(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>
              欧美日韩精品福利| 欧美亚洲在线播放| 欧美在线国产精品| 亚洲卡通欧美制服中文| 欧美一级淫片播放口| 一区二区高清| 99re在线精品| 亚洲一区二区三区午夜| 一本大道av伊人久久综合| 在线视频国产日韩| 亚洲人成人一区二区在线观看| 国产精品v亚洲精品v日韩精品 | 久久久久久久久久看片| 狠狠综合久久av一区二区小说 | 99国产精品99久久久久久| 亚洲青色在线| 欧美国产日本| 亚洲国产一区二区三区在线播| 亚洲精品自在在线观看| 亚洲特级毛片| 免费在线观看日韩欧美| 欧美性猛交一区二区三区精品| 国产精品日本一区二区| 亚洲国产成人高清精品| avtt综合网| 免费永久网站黄欧美| avtt综合网| 久久久蜜桃一区二区人| 欧美日韩国产精品成人| 久久久久久一区二区| 亚洲人成网站777色婷婷| 国产精品99久久久久久人| 国产精品一二三四区| 午夜精品久久久| 欧美另类亚洲| 亚洲精品乱码久久久久久蜜桃91| 久久精品男女| 亚洲欧美国产精品va在线观看| 欧美华人在线视频| 亚洲精品国产精品久久清纯直播| 亚洲欧美日韩在线不卡| 免播放器亚洲| 在线观看欧美成人| 欧美成人中文字幕在线| 欧美一级淫片播放口| 国产有码在线一区二区视频| 亚洲午夜精品| 西西裸体人体做爰大胆久久久| 国产精品久久99| 久久激情婷婷| 免费影视亚洲| 一区二区久久久久| 一区二区三区黄色| 国产日韩精品久久久| 久久亚洲精品一区二区| 国产一区二区三区日韩| 欧美日韩精品免费| 午夜欧美精品| 免费亚洲一区| 欧美呦呦网站| 欧美大片免费看| 亚久久调教视频| 亚洲欧美国产另类| 国产一区二区三区在线播放免费观看| 免费成人高清视频| 国产精品高潮呻吟久久av黑人| 久久成人精品| 欧美日本精品一区二区三区| 欧美一区二区三区免费视| 久久综合电影| 久久疯狂做爰流白浆xx| 欧美精品久久久久久久久老牛影院| 一本不卡影院| 99精品视频一区| 美女主播一区| 六月天综合网| 久久xxxx| 欧美在线一二三四区| 欧美涩涩视频| 99riav1国产精品视频| 亚洲精品日韩激情在线电影| 午夜精品999| 亚洲欧美在线一区二区| 亚洲欧美制服另类日韩| 国产精品久久久久久亚洲毛片| 亚洲国产成人午夜在线一区| 国产亚洲第一区| 久久狠狠婷婷| 91久久久久久国产精品| 一个色综合av| 国产一区二区毛片| 一区二区av| 欧美一区二区三区四区在线| 国内精品嫩模av私拍在线观看| 亚洲欧美精品| 欧美3dxxxxhd| 一本久久a久久免费精品不卡| 欧美成人亚洲成人日韩成人| 久久精品国产99国产精品| 欧美国产精品一区| 亚洲综合第一| 日韩亚洲欧美成人| 国产精品久久久久久久久动漫| 亚洲国产清纯| 日韩一级视频免费观看在线| 午夜视黄欧洲亚洲| 日韩一级黄色av| 欧美搞黄网站| 久久精品国产第一区二区三区最新章节| 激情综合网激情| 国产一区日韩欧美| 欧美精品一级| 久久亚洲一区| 久久综合电影一区| 午夜久久久久久| 一区二区电影免费在线观看| 欧美成人免费va影院高清| 久久男人av资源网站| 久久久国产精品一区| 亚洲欧美日韩在线播放| 亚洲欧美视频一区二区三区| 日韩午夜三级在线| 在线视频你懂得一区| 亚洲天堂av在线免费| 宅男精品导航| 亚洲综合日韩在线| 午夜精品久久一牛影视| 性久久久久久久| 欧美gay视频| 亚洲精品视频二区| 亚洲图片欧美一区| 美女久久一区| 国产精品久久久久久久一区探花 | 亚洲欧美中文字幕| 午夜精品99久久免费| 最新成人av在线| 一本久道久久久| 欧美不卡激情三级在线观看| 久久综合伊人77777麻豆| 老司机一区二区| 一区二区三区日韩精品| 久久国产精品99精品国产| 欧美大成色www永久网站婷| 一本一道久久综合狠狠老精东影业 | 亚洲精品视频一区| 午夜伦欧美伦电影理论片| 欧美激情视频网站| 欧美成人国产| 亚洲精品视频免费观看| 亚洲福利在线视频| 久久久午夜精品| 亚洲精品一区二区网址| 美女黄网久久| 美女网站在线免费欧美精品| 黄色精品一区二区| 毛片基地黄久久久久久天堂| 欧美主播一区二区三区美女 久久精品人 | 欧美黄污视频| 久久精品一区二区| 国产一区视频在线看| 美女免费视频一区| 久久亚洲私人国产精品va媚药| 亚洲第一毛片| 亚洲理伦在线| 国产精品丝袜白浆摸在线| 亚洲一区二区三区高清| 亚洲一区黄色| 亚洲成人原创| 亚洲国内精品在线| 亚洲精品一级| 国产精品女人毛片| 久久天天躁狠狠躁夜夜爽蜜月| 久久精品论坛| 一本色道久久综合狠狠躁篇怎么玩| 91久久亚洲| 好吊妞**欧美| 一区二区三区高清在线| 国产亚洲精品一区二区| 亚洲精品乱码久久久久久日本蜜臀| 欧美精品乱人伦久久久久久| 久久久久久久91| 国产精品欧美一区喷水| 欧美黄色视屏| 狠狠狠色丁香婷婷综合激情| 日韩一级精品| 亚洲国产日韩欧美一区二区三区| 亚洲永久在线| 亚洲国产一区在线| 欧美一区二视频在线免费观看| 一区二区三区视频观看| 欧美精品一区二区三区很污很色的 | 欧美激情精品久久久久久免费印度 | 欧美激情一区二区三区全黄| 久久精品综合一区| 国产综合在线看| 欧美一级视频一区二区| 欧美在线一级视频| 国产日韩欧美日韩大片| 亚洲一区二区高清| 久久成人免费|