Always smiling like Tux

Source: Internet
Author: User
Tags wxwidgets
Like Tux, you will always smile-Linux Release Technology-Debian information. Here is the details. The system was finally upgraded from Sarge to Etch yesterday. The change was a little big and a little uncomfortable. The first feeling is beautiful, the next is not suitable, apt-setup command is gone, apt-update and base-config and so on is gone, the xserver-xfree86 is also incorporated into xserver-xorg. Firefox cannot be used either. I checked it on the Internet. It turned out that Debian did not include the company's registration subject in firefox for its spiritual concept, and re-Compile from the source code and rename it Iceweasel. This is also true. The most "pure" Linux in the world is Debian. Although some people say that there is nothing wrong with a single candidate, I think it is a matter of time. It is unknown whether it is good or bad. Maybe it is a chaotic start, there are conflicts between the open-source community and the Free Software Community. From a legal perspective, this is intolerable. Of course, this is true for the sake of concept. Otherwise, Debian may not be so attractive to users. With so many supporters, at least I like Debian in this "pure" word. Of course, Debian is the combination of Ian Murdock and his wife's name. I think this is wonderful. By the way, I will post the Free as in Freedom philosophy of GUN:

The freedom to run the program, for any purpose (freedom 0 ).
The freedom to study how the program works, and adapt it to your needs (freedom 1). Access to the source code is a precondition for this.
The freedom to redistribute copies so you can help your neighbor (freedom 2 ).
The freedom to improve the program, and release your improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a precondition for this.

Today, I compiled the CODE: BLOCKS. The good C/C ++ IED on the Linux platform didn't know much about it. I think it's not bad. I was planning to take a deeper look at vim. It's just a bit difficult to get on the road, and the trouble is coming. I'm also excited when I resign, interview, start-up, and change the city. My computer is not around. Two and a half months later, I forgot about it. Now it seems that I am too lazy to be confused. A large part of this is also why I think CODE: BLOCKS is good.

I have also used a kscope claim to be comparable to Source Insight before. Maybe I haven't used it in depth, but I think it is not so, and I think it is inaccurate to call cscope to redirect, I don't know if my configuration is incorrect. Because it only supports C, it is too lazy to get it. Of course, the current CODE: BLOCKS is also insufficient, but the update speed is fast and it will become very good.

For the compilation process, refer to the article Installing Code: Blocks from source on Linux. Here is a rough example of the compilation process.

First, download the source code: svn checkout svn: // svn.berlios.de/codeblocks/trunk.

Next, download the wxWidgets library, at least 2.8.6. *. I use 2.8.6.

The second step is to compile the wxWidgets library, which is required for installation, such as gtk + 2, glib2, and xml2. Install the missing Development Library as prompted. For the configure command, see./configure -- prefix =/opt/Libs/wxWidgets -- enable-xrc -- enable-monolithic -- enable-unicode. To understand the meaning of each option, see the configure help. unicode support is required. Make and make install.

Next, set the wx-config PATH. Under/opt/Libs/wxWidgets, add/opt/Libs/wxWidgets/bin to the PATH. Of course, you must add the library file directory to ldconfig. Modify/etc/ld. so. conf to add/opt/Libs/wxWidgets/lib, and add/opt/Libs/wxWidgets/lib to LD_LIBRARY_PATH.

The rest of the work is to generate the configure file of CODE: BLOCKS, run it, compile and install it. It seems that CODE: BLOCKS requires GCC at least 4.1.1 and Etch is 4.1.2, so this is naturally not a problem. Run the CODE: bootstrap under the BLOCKS directory. If there is such a warning: macro 'am _ OPTIONS_WXCONFIG 'not found in library warning (I have it anyway ), you can set the environment variable "ACLOCAL_FLAGS" in this way to fix: export ACLOCAL_FLAGS = "-I 'wx-config -- prefix'/share/aclocal ". Once and for all, run the command echo 'wx-config -- prefix'/share/aclocal>/usr/share/aclocal/dirlist. Like wxWidgets, execute configure, make, and make install. In the configure process, you can install the missing tools, libraries, and the like as prompted.

After everything is OK, you can enjoy CODE: BLOCKS. Haha. I still want to paste a few images, but I still don't need to map them on the CSDN BLOG. Forget it.

Oh, by the way, another advantage of Etch is that my hardware can automatically recognize it. My display, video card, and wireless network card can automatically identify the model, although I haven't used a wireless network adapter yet. I am too lazy to go over it. The wired network is also quite useful, and everyone may have this inertia. But when is it idle? I still want to use it. After finishing the job, I went out for a stroll. After, it was time for me to go out for a stroll. Life is bitter, but it will always smile like Tux, and smile like it.
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.