sudo apt-get update
sudo apt-get install libjpeg-dev libpng-dev \
libtiff-dev libavcodec-dev libavformat-dev \
libswscale-dev libv4l-dev libxvidcore-dev \
libx264-dev libatlas-base-dev
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.0.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.5.0.zip
unzip opencv.zip
unzip opencv_contrib.zip
mv opencv-4.5.0 opencv
mv opencv_contrib-4.5.0 opencv_contrib
mkdir -p opencv/build/ && cd opencv/build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_opencv_python3=ON \
-D WITH_CUDA=ON \
-D WITH_CUDNN=ON \
-D OPENCV_DNN_CUDA=ON \
-D ENABLE_FAST_MATH=1 \
-D CUDA_FAST_MATH=1 \
-D CUDA_ARCH_BIN=7.0 \
-D WITH_CUBLAS=1 \
-D OPENCV_ENABLE_NONFREE=ON \
-D OPENCV_GENERATE_PKGCONFIG=ON \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
-D BUILD_EXAMPLES=OFF ..
make -j4
sudo make install
I read through below example in cpprefernce
Jan 9, 2025# paho.c git clone https://github.com/eclipse/paho.mqtt.c cd paho.mqtt.c && mkdir build && cd build cmake \ -DPAHO_BUILD_STATIC=TRUE \ -DPAHO_WITH_SSL=FALSE \ -DPAHO_HIGH_PERFORMANCE=ON \ -DPAHO_ENABLE_TESTING=FALSE .. cmake --build . --config Release
Feb 22, 2023WesleyCh3n - NTU-IoT-Server hackmd-github-sync-badge Reference Manually MQTT Mosquitto docker run -d --ip 172.17.0.3 \ --restart unless-stopped \ -p 1883:1883 \
Dec 30, 2022Prepare pi-cross Pull the arch you need from pi-cross. In this example, aarch64, bullseye and g++ 10.2.0 are uesd for rpi 4 bullseye 64 bit os. docker pull wesleych3n/pi-cross:arm64-bullseye-10.2.0 Create helper script and grant it execution privilege docker run --rm wesleych3n/pi-cross:arm64-bullseye-10.2.0 > ./arm64-10.2.0 chmod +x ./arm64-10.2.0
Sep 13, 2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up