Before using CPPPC, ensure that the following dependencies are installed on your Linux system:
Run the following command to install required dependencies
pip install -r requirements.txtCMake is required for building C++ projects. You can install it using the package manager for your distribution:
sudo apt-get update
sudo apt-get install cmakesudo dnf install cmakesudo pacman -S cmakeVerify the installation by checking the CMake version:
cmake --versionCPPPC relies on Python for its functionality. Most Linux distributions come with Python pre-installed. If not, you can install it using your package manager. For example, on Debian/Ubuntu-based systems:
sudo apt-get update
sudo apt-get install python3Verify the installation by checking the Python version:
python3 --versionYou have three choices, Alternative A: use Script, Alternative B: manual install through pipx, Alternative C: Manual install.
Run the setup.sh script located in the root dir. (Given that you've cloned the repo)
./setup.sh
# Follow guide until done... To manually install PyQt5 in a virtual environment through pipx, follow these steps:
- Install pipx:
python3 -m pip install --user pipx
python3 -m userpath append ~/.local/pipx/venvs- Install PyQt5 using pipx:
pipx install PyQt5Verify the PyQt5 installation:
python -c "import PyQt5.QtWidgets; print(PyQt5.QtWidgets.QApplication([]).exec_())"If no errors are displayed, PyQt5 is successfully installed.
To manually install PyQt5 in a virtual environment, follow these steps:
- Create virtual environemnt in a location in userspace, ex
~/.local/venvs:
python3 -m venv ~/.local/venvs- Add the newly created virtual environment to the userpath:
python3 -m userpath append ~/.local/pipx/venvs- Install PyQt5 python in that virtual environment:
~/.local/venv/bin/python3 -m pip install pyqt5Verify the PyQt5 installation:
~/.local/venv/bin/python3 -c "import PyQt5.QtWidgets; print(PyQt5.QtWidgets.QApplication([]).exec_())"If no errors are displayed, PyQt5 is successfully installed.