Fading Coder

One Final Commit for the Last Sprint

Building C and C++ Projects with CMake: A Practical Guide

Build Systems: Make versus CMakeWhile GCC serves as the standard compiler suite for C, C++, and other languages, manually invoking compilation commands becomes unwieldy for projects containing numerous source files. Build automation tools like GNU Make solve this by processing rule-based instruction...

Cross-Compiling Android Shared Libraries Using CMake

Building an Android Shared Library with CMake CMake can produce .so binaries for Android using either the NDK via dedicated variables or the provided toolchain file. Both approaches require an NDK installation. The following sections describe minimal configurations. 1. Configuring with NDK Variables...

Customizing Application Icons and Packaging Qt Projects for Windows

Configuring Icons in Qt 6.7.2 on Windows Using CMake Setting the Executable Icon Prepare an icon file named app_icon.ico. Create a resource script file named icon_resource.rc with the following content: IDI_ICON1 ICON "app_icon.ico" Add app_icon.ico and icon_resource.rc to your Qt Resource...

Minimal CMakeLists.txt with Essential Project Directives

A self-contained CMakeLists.txt for a small C++ project typically looks like this: cmake_minimum_required(VERSION 3.10) set(REPO_ROOT "/home/dev/project/source") project("sample") include_directories(${REPO_ROOT}/headers) link_directories(${REPO_ROOT}/external) aux_source_directo...

Resolving CMake Build Errors When Integrating OpenCV with Qt Projects

Environment Configuration Before proceeding, ensure the following environment variables are properly configured: E:\cmake\bin E:\OpenCV\opencv\build\x64\vc15\bin F:\Qt\Tools\mingw730_64\bin F:\Qt\5.12.4\mingw73_64\bin Issue 1: Missing Build Program CMake Error: CMake was unable to find a build progr...

Building MoveIt 1 from Source on Ubuntu with ROS Noetic

Ensure the system runs Ubuntu 20.04 LTS alongside ROS Noetic. Initialize dependency tracking and update core packages before proceeding: sudo rosdep init && rosdep update sudo apt update && sudo apt full-upgrade sudo apt install -y python3-wstool python3-catkin-tools python3-rosdep r...

Cross-Platform Build Orchestration Using CMake

CMake operates as a high-level build system generator that abstracts compiler-specific configurations. It enables development teams working across different languages or compiler toolchains to produce unified executables and shared libraries through a single declarative workflow. The core configurat...

Compilation and Configuration of OpenCV 3.3.0 with Qt 5.9.1, CMake 3.18.5 and Visual Studio 2015

Pre-configuration Preparation Install Visual Studio 2015, Qt 5.9.1 and CMake 3.18.5, then extract the OpenCV 3.3.0 source package to a local directory. Configure the required system environment variables before proceeding with compilation. If you use the CMake executable installer, check the "A...

Upgrade CMake on Ubuntu/Debian: Install a Newer Release and Fix Common Build Errors

When a project fails with "CMake 3.8 or higher is required" (or similar), your system’s CMake is too old. Below are two ways to install a newer CMake and how to resolve common issues during the process. 1. Check the current CMake version cmake --version 2. Remove the distribution CMake (op...