Install Qt 5.12.5:
Jetson Nano (JetPack 5.x):
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install qt5-default
sudo apt-get install qtcreator
sudo apt-get install qtdeclarative5-dev
sudo apt-get install libqt5serialport5 libqt5serialport5-dev
sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5
Raspberry Pi 4 (Raspbian):
sudo apt update && sudo apt upgrade -y && \
sudo apt install -y \
qtbase5-dev qtchooser qt5-qmake qttools5-dev-tools \
qtdeclarative5-dev qtquickcontrols2-5-dev qtmultimedia5-dev \
qtnetwork5-dev qtwebsockets5-dev qtwebengine5-dev \
qt5-sql libqt5sql5-mysql libqt5sql5-psql \
qtcharts5-dev qt3d5-dev \
qtserialport5-dev qtpositioning5-dev qtsensors5-dev \
qtcreator && \
sudo ln -s /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake /usr/bin/qmake && \
qmake -v
Ubuntu:
sudo apt install -y qtbase5-dev qtchooser qt5-qmake qttools5-dev-tools
wget https://download.qt.io/archive/qt/5.12/5.12.12/qt-opensource-linux-x64-5.12.12.run
chmod +x qt-opensource-linux-x64-5.12.12.run
./qt-opensource-linux-x64-5.12.12.run
Install OpenCV:
Jetson Nano:
Create file OpenCV-4-5-5.sh and copy the content of this file:https://raw.githubusercontent.com/Qengineering/Install-OpenCV-Jetson-Nano/main/OpenCV-4-5-5.sh
Run it
sh OpenCV-4-5-5.sh
Raspberry Pi 3:
Create file OpenCV-3-3-1.sh and copy the content of this file:
https://gist.githubusercontent.com/gaborvecsei/ad216f214731441bd66a34ae9a2dc3f3/raw/e9e3b222c148894560f5123080fe9e52a3de1c09/install_opencv_raspberry_pi_3b.sh
Run it
sh OpenCV-3-3-1.sh
Raspberry Pi 4:
sudo apt update && sudo apt upgrade -y && \
sudo apt install -y build-essential cmake git pkg-config \
libjpeg-dev libtiff-dev libpng-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev v4l-utils \
libxvidcore-dev libx264-dev libgtk2.0-dev libgtk-3-dev \
libatlas-base-dev gfortran python3-dev python3-numpy \
libopencv-dev python3-opencv && \
python3 -c "import cv2; print(cv2.__version__)"
Ubuntu
sudo apt install -y libopencv-dev python3-opencv
Install Delta X Software 1.2.7:
1. Download the Source Code from GitHub
Clone the project repository to your Raspberry Pi using the following commands:
git clone https://github.com/deltaxrobot/Delta-X-Software.gitcd Delta-X-Software
2. Open the Project in Qt Creator
-
Launch Qt Creator:
-
In Qt Creator:
- Select "Open Project".
- Navigate to the
Delta-X-Software
folder and open theDeltaRobotSoftware.pro
file.
3. Configure the Project
- Kit: Ensure the appropriate Kit is selected (e.g.,
Desktop
orGCC
). - Build Configuration: Choose Debug or Release depending on your needs.
4. Build and Run the Project
- Build the Project: Click the "Build" button (hammer icon) to compile the project.
- Run the Application: Once the build is successful, click the "Run" button (green triangle icon) to execute the application.
5. Optional: Run from the Command Line
- Navigate to the build directory.
- Execute the application:
./DeltaRobotSoftware