DebianLenny: Compile wxWidgets and Code: Blocks

Source: Internet
Author: User
Tags wxwidgets
DebianLenny: Compile wxWidgets and Code: Blocks -- Debian information for the Linux release. For more information, see the following. To study cross-platform development, select wxWidgets and Code: Blocks, compile the latest SVN version of wxGTK and Code: Blocks (no Code :: the reason for Blocks 8.02 is that the current SVN version fixes a large number of bugs in 8.02, and uses the latest SVN version, and reports problems encountered during use. It is also the Code :: blocks Development Support) is inevitable.

Both compilation in Ubuntu went smoothly, but when the Debian Lenny system was used for compilation, CB encountered a problem:

Codeblocks: error while loading shared libraries: libcodeblocks. so.0: cannot open shared object file: No such file or directory

This error causes CB to be unable to start. Try to copy the corresponding file to the/usr/local/bin directory where the codeblocks main program is located (or Windows thinking), and still make an error. After searching for information, we found that we only need to add the directory of libcodeblocks. so.0 to the environment variable.

Sudo/etc/ld. so. conf # compile the file
/Usr/local/lib # Add the row to the end of the file
Sudo ldconfig # reconfigure
In this way, the Code: Blocks can be started normally.
Below is a simple record of the compilation steps:
Compile wxWidgets:
Create a subdirectory buildgtk under the wxGTK source code directory, enter the directory, and run:
../Configure -- disable-shared -- disable-debug -- enable-unicode -- enable-monolithic -- with-opengl -- enable-xrc
Sudo make install
Sudo ldconfig
Compile Code: Blocks:
(A) download the source code
Svn checkout svn: // svn.berlios.de/codeblocks/trunk ~ /Sources/CodeBlocks
(B) Compile
Export ACLOCAL_FLAGS = "-I 'wx-config -- prefix'/share/aclocal"
./Bootstrap
./Configure
Make
Sudo make install
(C )? Load
Sudo make uninstall
(D) recompile
Make clean
Make distclean
Make clean-bin
Make clean-zipfiles
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.