Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu下Code::Blocks开发环境配置

Code::Blocks是一款功能强悍的C、C++ IDE,工具小巧灵活、跨平台、支持SVN、代码高亮、格式化、国际化(软件界面语言可定制为中文)、强大的调试环境。本文主要介绍CodeBlock的安装与配置(Ubuntu 10.10环境下)整个过程。一、安装过程:1》安装基本编译环境
sudo apt-get install build-essential
sudo apt-get install gdb2》安装codeblock
sudo apt-get install codeblocks
sudo apt-get install codeblocks-dbg
sudo apt-get install wxformbuilder
还有个codeblocks-contrib其实安装的是wxSmith,我还是喜欢wxfb,所以就没有安装。3》安装wxWidgets
sudo apt-get install libwxbase2.8
sudo apt-get install libwxbase2.8-dev
sudo apt-get install libwxgtk2.8-0
sudo apt-get install libwxgtk2.8-dev
sudo apt-get install libwxgtk2.8-dbg
sudo apt-get install wx-common
sudo apt-get install wx2.8-headers
sudo apt-get install wx2.8-i18n
还有wx2.8-examples和wx2.8-doc想看文档的可以装上二、CodeBlock的配置:1》基本编译运行环境的配置:这里笔者先以Qt4的开发配置为例,Qt是一个跨平台的C++应用程序框架,具有少编程、多创造、尽使用的特点,个人感觉功能比较强大,API使用比MFC简单,对Linux编程感兴趣的不妨试试(当然Linux下编程选择还是比较广泛的,OpenGL、wxWidgets、GTK等)。Qt4的安装过程如下:sudo apt-get install libqt4-dev libqt4-debug libqt4-gui libqt4-sqlqt4-dev-tools qt4-doc qt4-designer qt4-qtconfig启动CodeBlock,接下来,新建一个Qt4的工程(这里不作演示),如下:当然,如果不作任何配置,此工程编译当然是通不过(找不到头文件等,有兴趣可以自己试试),下面进行全局的编译、链接环境配置,Settings->Compile and Debugger settings,在Search directories选项夹Compile子选项夹里添加路径/usr/include,这样程序编译的时候就可以遍历搜索该文件夹,一般情况下头文件都在这个文件夹下(Qt4也不例外),同理,Linker里添加/usr/lib。这时编译运行该工程便会通过,出现Demo程序的运行结果(一个只包含“Quit”按钮的窗口)。
  • 1
  • 2
  • 3
  • 下一页
Ubuntu 12.04 下安装Code::BlocksUbuntu下Code::Blocks + wxWidgets 2.9.3开发环境搭建相关资讯      Code::Blocks  Code::Blocks安装过程  Code::Blocks Ubuntu 
  • Code::Blocks 16.01 正式版发布  (02月05日)
  • Ubuntu下Code::Blocks无法编译 /  (09/12/2014 21:19:54)
  • 如何在CentOS上安装并汉化Code::  (02/27/2014 18:02:59)
  • Kubuntu 14.10 下安装Code::Blocks  (04/18/2015 05:00:59)
  • Ubuntu 13.04 配置Codeblocks中的  (03/29/2014 15:35:05)
  • Code::Blocks 13.12 正式发布  (12/30/2013 09:07:53)
本文评论 查看全部评论 (0)
表情: 姓名: 字数