Developing Embedded Systems with C++: A Comprehensive Guide

Developing Embedded Systems with C++: A Comprehensive Guide

Writing embedded systems is indeed an interesting task. Unlike regular application development, we have to deal directly with the hardware and also worry about memory usage and real-time performance. As a veteran in embedded systems for over a decade, I find that developing embedded systems with C++ is quite cool. It allows us to utilize … Read more

C++ and Embedded Systems: Core Technologies for IoT Device Development

C++ and Embedded Systems: Core Technologies for IoT Device Development

C++ and Embedded Systems: Core Technologies for IoT Device Development Hello everyone, I’m Xiao Shao. Today, let’s talk about a very practical knowledge point in C++—smart pointers. In the world of C++, smart pointers are like our capable assistants in managing memory. They help us automatically manage memory, avoid memory leaks, and make our code … Read more

Getting Started with CMake for Large Projects

Getting Started with CMake for Large Projects

Most open-source storage systems are built on the Linux operating system. This article introduces storage technology while also covering some Linux content, focusing on practicality. It will be helpful for both application development and kernel understanding. When our project consists of thousands of files, manually writing a Makefile will be a nightmare. Fortunately, CMake helps … Read more

Integrating External Libraries in CMake

Integrating External Libraries in CMake

Hello, today we will delve into a very practical and challenging topic—Integrating External Libraries in CMake: How to Manage Third-Party Libraries Using find_package and ExternalProject. In most C++ projects, integrating external libraries is an indispensable part. Efficiently and elegantly managing these dependencies, especially during multi-platform builds, is a skill every developer needs to master. 1. … Read more

Mastering CMake Basics: Practical Compilation from Scratch

Mastering CMake Basics: Practical Compilation from Scratch

1. Introduction to CMake CMake is a cross-platform installation (compilation) tool that can describe the installation (compilation process) for all platforms using simple statements. It can output various makefiles or project files, and can test the C++ features supported by the compiler, similar to automake under UNIX. The configuration file for CMake is named CMakeLists.txt. … Read more

Creating Libraries with CMake: Official Tutorial Step 2

Creating Libraries with CMake: Official Tutorial Step 2

Previous Highlights: CMake Hello, World CMake Variables CMake Official Tutorial (Basic Project Setup) Following the previous article, we will start creating a library. This article corresponds to Step 2 of the official tutorial, and after reading it, you will gain the following knowledge: 1. Creating Library Programs 2. Controlling Compilation via Option Definitions 3. Defining … Read more

How to Write CMakeLists.txt Files?

How to Write CMakeLists.txt Files?

Click on the “Computer Vision Life” above to select “Star” Quickly get the latest content This article is adapted from 3D Vision Workshop. This article summarizes the method of writing CMakeLists.txt files on the linux platform. 1 General Modules at the Beginning 1.1 CMake Version Requirements cmake_minimum_required( VERSION 2.8 ) # Project file name loop_closure, … Read more

Getting Started with CMake: From Hello World to Complex Projects

Getting Started with CMake: From Hello World to Complex Projects

Hello, today we are going to delve into a topic that many people pay attention to but often do not take seriously—Getting Started with CMake: From Hello World to Complex Multi-Module Project Builds. Today, we will start from scratch and explore how to use CMake to build projects, making it a powerful assistant for managing … Read more

CMake From Beginner to Expert: A Modern C++ Build System Guide

CMake From Beginner to Expert: A Modern C++ Build System Guide

Click the blue text to follow us CMake From Beginner to Expert: A Modern C++ Build System Guide Hello everyone, I am an old coder! Today we will discuss the complex issue of building C++ projects. Are you still troubled by tedious compilation and linking? Still manually managing dependencies? Come on, let me introduce you … Read more

CMake: Detecting Environment

CMake: Detecting Environment

Introduction: Through previous studies, we have mastered the basic knowledge of CMake and C++. Although CMake is cross-platform, sometimes the source code is not entirely portable. To ensure that our source code can be cross-platform, configuring and/or building the code according to different platforms is an essential part of the project build process. ✦ Detecting … Read more