A Complete Guide to Using CMake

A Complete Guide to Using CMake

Scan to FollowLearn Embedded Together, Learn Together, Grow Together Hello everyone, I previously shared some articles related to makefiles: Make Command Tutorial | A Hands-On Guide to Makefile Linux Kernel Makefile Execution Process Some General Makefile Templates Today, I am sharing an article about CMake, which can generate local Makefiles without having to write complex … Read more

CMake Compilation Tool and Project Building

CMake Compilation Tool and Project Building

Follow the public account “CV Research Society“ Set it as “Starred“, heavy content delivered to you first! Article Guide This article starts with the compilation process of C/C++ code, clarifying the relationship between Make and Makefile, CMake and CMakeLists, and finally providing examples based on the syntax rules of CMakeLists to help everyone become familiar … Read more

Differences and Connections Between CMake, NMake, and QMake

Differences and Connections Between CMake, NMake, and QMake

This article is reproduced from Zhihu, the link and author information are as follows. Author: Hui Chang Ge Link: https://www.zhihu.com/question/27455963/answer/89770919 Source: Zhihu Copyright belongs to the author. For commercial reproduction, please contact the author for authorization, and for non-commercial reproduction, please indicate the source. I often forget these concepts, even after reading them several times, … Read more

Getting Started with CMake: HelloWorld Bin

Getting Started with CMake: HelloWorld Bin

Starting a new series on CMake today, the latest release is on the platform, welcome to join and get first-hand resources. Each issue will be driven by examples and directories, learning step by step, feel free to bookmark and share. Generating Executable Files Assuming we only have a .cc file. Create a CMakeLists.txt file in … Read more

CMake Practical Guide (Part One)

CMake Practical Guide (Part One)

Click the blue text above to follow us Introduction Previously, we introduced the use of Autotools; today we will look at how to use CMake. CMake is a project build tool, similar to Autotools. It can be simply understood as a tool that helps us generate Makefiles for easier compilation. Usage Example (1) Create main.c, … Read more

CMake Learning Summary (Part 1)

CMake Learning Summary (Part 1)

Good evening everyone, and I wish you all a happy Dragon Boat Festival. Today, I would like to share with you the project management tool CMake. There is no prior introduction to the Makefile project management tool (to be honest, these two are quite similar; CMake ultimately generates a Makefile, but the syntax of CMake … Read more

DYNAMIXEL Servos: Mixed C/C++ Programming with Keil and Makefile

DYNAMIXEL Servos: Mixed C/C++ Programming with Keil and Makefile

Introduction This is a servo motor with decent performance… mainly it’s expensive. Believing that expensive means good, they bought several XM430-W210 servos to build a robotic arm. First, they controlled the servos through the ROS interface, which worked fine. However, due to the poor real-time performance of ROS itself, they began the porting journey. The … Read more

Mastering GNU Make: From Beginner to Expert

GNU Make: From Beginner to Expert Translated from: https://interrupt.memfault.com/blog/gnu-make-guidelines GNU Make is a popular and commonly used program for building C language software. It is used to build the Linux kernel and other commonly used GNU/Linux programs and software libraries. Most embedded software developers will use GNU Make at some point in their careers, either … Read more

Controlling Exported Functions in Linux Shared Libraries

Click the blue text above to follow directly! Convenient for next reading. If this helps you, please give it a thumbs up or a like, thank you~ Article First Published Official Account – Pou Guangming On the third day of diligently working on a business trip in Shanghai…… The previous article introduced the rules for … Read more

The Relationship Between Makefile, Kconfig, and .config in Linux Kernel

The Relationship Between Makefile, Kconfig, and .config in Linux Kernel

When compiling the Linux kernel, we often execute some commands in the top-level directory of the Linux kernel. Taking RK3288 as an example, commands such as: make firefly-rk3288-linux_defconfig, make menuconfig, make firefly-rk3288.img, make zImage, etc. are used. Without getting into the specifics of these commands, let’s raise a few questions. (1) Given the vastness of … Read more