Follow these steps carefully to ensure all dependencies are installed correctly for this project.
- Python Version: You will need Python 3.11
-
Check if Python is already installed:
- Open a terminal (Command Prompt on Windows, Terminal on macOS/Linux).
- Type the following command and press Enter:
python --version
- If Python is installed, you will see the version number. Ensure it is 3.9 or higher.
-
If Python is not installed or the version is outdated:
- Download the installer from the official Python website: https://www.python.org/downloads/.
- Run the installer.
- Important: During installation, make sure to check the box that says "Add Python to PATH".
-
Create a Virtual Environment (Optional but Recommended):
- In your project directory, run the following commands:
python -m venv venv
- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- In your project directory, run the following commands:
-
Install Required Packages:
- Make sure you are in the project directory where the
requirements.txtfile is located. - Run the following command to install all the required Python packages:
pip install -r requirements.txt
- If you encounter any issues installing
ur_rtde, use the following command:pip install ur-rtde --use-pep517
- Make sure you are in the project directory where the
-
Install Homebrew (if not already installed):
- Homebrew is a package manager for macOS. Open Terminal and run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Follow the on-screen instructions to complete the installation.
- Homebrew is a package manager for macOS. Open Terminal and run:
-
Install Stockfish:
- After Homebrew is installed, run:
brew install stockfish
- After Homebrew is installed, run:
-
Download Stockfish:
- Open Terminal and run the following commands to download and extract Stockfish:
wget https://stockfishchess.org/files/stockfish-ubuntu-x86-64.zip unzip stockfish-ubuntu-x86-64.zip
- Open Terminal and run the following commands to download and extract Stockfish:
-
Move Stockfish to a System Directory:
- Move the Stockfish binary to
/usr/binso that it can be accessed from anywhere:sudo mv stockfish-ubuntu-x86-64 /usr/bin/stockfish
- Move the Stockfish binary to
-
Download Stockfish:
- Go to the Stockfish download page: https://stockfishchess.org/download/.
- Download the latest version of Stockfish for Windows.
-
Add Stockfish to System PATH:
- Follow this guide to add Stockfish to your system PATH: How to Add Executables to Your PATH in Windows.
-
Install CMake:
- Use Homebrew to install CMake:
brew install cmake
- Use Homebrew to install CMake:
-
Install Boost Libraries:
- Run the following command:
brew install boost
- Run the following command:
-
Install Tkinter:
- Tkinter is required for graphical user interfaces. Install it using Homebrew:
brew install tcl-tk
- Add Tcl/Tk to your PATH by appending the following line to your
~/.zshrcfile:echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.zshrc
- Reload your shell configuration:
source ~/.zshrc
- Ensure Tcl/Tk is correctly added to your PATH:
echo $PATH | grep --color=auto tcl-tk
- Set environment variables for compilation:
export LDFLAGS="-L/usr/local/opt/tcl-tk/lib" export CPPFLAGS="-I/usr/local/opt/tcl-tk/include" export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"
- Test Tkinter installation:
python -m tkinter -c "tkinter._test()"
- Tkinter is required for graphical user interfaces. Install it using Homebrew:
-
Install Boost Libraries:
- Use the following command to install all Boost libraries:
sudo apt-get install libboost-all-dev
- Use the following command to install all Boost libraries:
-
Install CMake:
- Install CMake using:
sudo apt install cmake
- Install CMake using:
-
Install Tkinter:
- Install Tkinter for Python 3:
sudo apt-get install python3-tk
- Install Tkinter for Python 3:
-
Install Additional Libraries:
- Install additional dependencies for RTDE (Real-Time Data Exchange):
sudo apt-get install libusb-1.0-0-dev libudev-dev sudo apt-get update sudo apt install librtde librtde-dev
- Install additional dependencies for RTDE (Real-Time Data Exchange):
-
Install Boost:
-
Download Boost:
- Visit the Boost download page: Boost download page.
- Download the latest version (e.g.,
boost_1_77_0.zip).
-
Extract Boost:
- Extract the ZIP file to a directory such as
C:\local\boost_1_77_0.
- Extract the ZIP file to a directory such as
-
Set Environment Variables:
- Open the Start Menu, search for "Environment Variables", and select "Edit the system environment variables".
- Click "Environment Variables" in the System Properties window.
- Under "System variables", click "New" and add:
- Variable name:
BOOST_ROOT - Variable value:
C:\local\boost_1_77_0
- Variable name:
- Click "OK" to save the new variable.
-
Build Boost Libraries:
- Open Command Prompt as Administrator.
- Navigate to the Boost directory:
cd C:\local\boost_1_77_0
- Run the bootstrap script:
bootstrap.bat
- Build the libraries:
.\b2
-
-
Install CMake:
-
Download CMake:
- Visit the CMake download page.
- Download the Windows installer (e.g.,
cmake-3.21.3-windows-x86_64.msi).
-
Install CMake:
- Run the installer and follow the prompts.
- Ensure you select the option to "Add CMake to the system PATH for all users".
-
Verify Installation:
- Open Command Prompt and check the installation:
cmake --version
- You should see the version number of CMake.
- Open Command Prompt and check the installation:
-
-
Install Tkinter:
- Install Tkinter via pip:
pip install tk
- Install Tkinter via pip: