Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 2.48 KB

INSTALL-LINUX.md

File metadata and controls

72 lines (56 loc) · 2.48 KB

HOW TO INSTALL CODEQUERY IN LINUX

This INSTALL guide applies to Linux and Mac only

(For Windows, a SETUP EXE package will be provided)

HOW TO INSTALL IN LINUX?

Step 1: Install CMake (>2.7), sqlite3, Qt4 (>4.7) or Qt5 (>5.7) for Qt4 or Qt5, cscope (15.8a or higher), ctags. If you have Ubuntu, Linux Mint, Debian or Fedora installed, most of these should be obtainable through the package managers. Note that the cscope version on the Ubuntu repositories may not be the latest one. It's better to have the latest version of cscope installed.
CMake
sqlite3
Qt4 or Qt5
cscope
Exuberant ctags
Universal ctags
pycscope

In Ubuntu or Linux Mint or Debian, do the following (first line for Qt5 OR second line for Qt4):

sudo apt-get install g++ git cmake sqlite3 libsqlite3-dev qt5-default qttools5-dev-tools qttools5-dev cscope exuberant-ctags
sudo apt-get install g++ git cmake sqlite3 libsqlite3-dev qt4-dev-tools cscope exuberant-ctags

In Arch Linux or Manjaro or Apricity, do the following (first line for Qt5 OR second line for Qt4):

sudo pacman -S gcc git cmake sqlite qt5-base qt5-tools cscope ctags
sudo pacman -S gcc git cmake sqlite qt4 cscope ctags

Step 2: Download the repository as a ZIP file from github or clone git repository:
codequery@github

cd ~/myrepos
git clone https://github.com/ruben2020/codequery.git

Step 3: Unzip to a directory and change to that directory.

cd ~/myrepos/codequery

Step 4: Create a directory called build and change to it.

mkdir build
cd build

Step 5: Run cmake (first line for Qt5 OR second line for Qt4 OR third line for no GUI).

cmake -G "Unix Makefiles" -DBUILD_QT5=ON ..
cmake -G "Unix Makefiles" -DBUILD_QT5=OFF ..
cmake -G "Unix Makefiles" -DNO_GUI=ON ..

Step 6: Run make and make install.

make
sudo make install

If you want to install to an alternative directory instead of the default one, use the following:

cmake -DCMAKE_INSTALL_PREFIX="/home/johndoe/tools/" -G "Unix Makefiles" -DBUILD_QT5=ON ..
make
make install

Step 7: Please read HOWTO-LINUX to learn how to use this software.