News | People | Our Github

Compiling Chromium

 

After you obtain the source (here) and extract the files, it is almost ready to be compiled.
The files will be put into a directory called "cr-X.Y" (X.Y being the version). A simple change or two is required before compiling:

The first change will be in the cr-X.Y/config/Linux.mk file.
For our RedHat systems, the name for the python binary is python2.2.
Simply change the line "PYTHON = python" to "PYTHON = python2.2".

The next change in optional, depending on whether you wish to have DMX support or not. If you have DMX installed with libraries and headers in the proper place, then you can enable DMX support.
To enable DMX support, open the file cr-X.Y/options.mk and change "USE_DMX=0" to "USE_DMX=1".

Now, type "make" in the main directory. The binaries will be placed in cr-X.Y/bin/Linux/ and the libraries in cr-X.Y/lib/Linux/. You will need to add the binaries directory to your PATH environment variable and add the libraries directory to your LD_LIBRARY_PATH environment variable.

csh example:

tar -xzf cr-X.Y.tar.gz
vi cr-X.Y/config/Linux.mk
vi cr-X.Y/options.mk
make
setenv CR_PATH /home/user/cr-X.Y
setenv LD_LIBRARY_PATH $CR_PATH/lib/Linux
set path ($path $CR_PATH/bin/Linux)