Install code: blocks on the Red Hat Linux platform

Source: Internet
Author: User
Tags gtk
The address of this article: http://blog.csdn.net/useway "Java programmers, work that thing" post some of the previous little experience, very elementary, hope to just get started with the programmer to help. This is a C ++ ide. Code: blocks it is open-source and can run on Windows or Linux on a cross-platform basis. It also supports MACOs, this tool is very useful. I personally feel that it is like Java's jcreator and a small and easy-to-use IDE.
For Windows, you don't need to talk about it. Simply set it up. Let's talk about the installation on Linux.
1. Install GTK + on Linux
If you do not select GTK + in the development tool when installing the Red Hat program, you can use a CD to install the program. It is convenient to use the add and delete functions of the Red Hat program.
If there is no CD, then you can only download to the http://www.gtk.org, and installed, install GTK + is more complex, here is not much to say.
Note that GTK + is a required component and cannot be installed without wxgtk. 2. Compile and install wxgtk on Linux platform (taking wxGTK-2.6.2 as an example)
Download wxgtk-2.6.2.tar.gz, where the http://www.wxwidgets.org is located.
After the download, enter the following command to install: Tar zxvf wxGTK-2.6.2.tar.gz
CD wxGTK-2.6.2
./Configure -- enable-XRC -- enable-monolithic -- enable-Unicode
Make
Make install if no error message is displayed, the installation is smooth and the compilation process is slow. 3. The library file path points to the correct path
Because the path is not specified when wxgtk is installed, wxgtk is mounted to/usr/local/lib. If it points to the path,
This step can be omitted after the "-Prefix =/usr" parameter is added.
Path to the library file: VI/etc/lD. So. conf
At the end of the file, enter:
/Usr/local/lib
After adding, run:
/Sbin/ldconfig4. Installation Verification
You can use the following output to check whether the installation is correct:
WX-config -- prefix
WX-config -- libs
Which WX-config 5. Download Code: Block
Download it at http://www.codeblocks.org/downloads/
: Http://ncu.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-8.02-src.tar.bz2
Download and enter the following command to install: Tar jxf codeblocks-8.02-src.tar.bz2
CD codeblocks-8.02
./Configure-Prefix =/usr
Make
Make install if no error message is displayed, the installation is smooth and the compilation process is slow. 6. Start and create shortcuts
Right-click the desktop, select "create initiator", and enter the following path:/usr/bin/codeblocks. After creating a shortcut, double-click the new icon to start CB, as follows:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.