Compile and install gccxml in Linux-Linux Enterprise Application-Linux server application information. For more information, see. Gccxml uses cmake to generate makefile. Therefore, to compile gccxml, we must first compile and install cmake.
First, download the source code of cmake on the cmake website and compile it:
./Bootstrap
Make
Sudo make install
By default, cmake will be installed in the/usr/local/directory. You can set this installation path when running bootstrap. To view how to configure it, use:
./Bootstrap -- help: Compile gccxml and obtain the latest gccxml source code through cvs. The version of the pre-compiled package on the website is too old. It seems that it is only 0.6, and the current version is 0.9. Therefore, you must use the source code to compile the package.
First, cd into your home directory.
Cvs-d: pserver: anoncvs@www.gccxml.org:/cvsroot/GCC_XML login
(Just press enter when prompted for a password)
Follow this command by checking out the source code:
Cvs-d: pserver: anoncvs@www.gccxml.org:/cvsroot/GCC_XML co gccxml
In this way, a gccxml directory exists in your home directory, but instead of entering this directory, cmake should generate a set of directories for compilation based on your environment, therefore, we should create a gccxml-build directory in the main directory for compilation.
$ Mkdir gccxml-build
$ Cd gccxml-build
$ Cmake ../gccxml
$ Make
$ Sudo make install
Similarly, gccxml will be installed to the/usr/local/directory by default, including two binary execution files, installed to/usr/local/bin, and a bunch of configuration files for different compilers, under the/usr/local/share/gccxml-0.9 directory.
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