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

CMake Compilation Tools and Project Building

CMake Compilation Tools and Project Building

Click on the above“Beginner’s Guide to Vision” to selectStar or “Pin” Important content delivered promptly Article Overview This article starts with the compilation process of C/C++ code, clarifying the relationship between Make and Makefile, CMake and CMakeLists, and finally provides examples from the syntax rules of CMakeLists to help everyone become familiar with how to … Read more

The -n Option of Make Command Does Not Work

The -n Option of Make Command Does Not Work

The make command provides the -n parameter for debugging makefiles. When make is run with the -n parameter, it only prints the commands that would be executed, but does not actually execute them. For example, with the following makefile, running make all -n will print the commands to be executed but will not actually execute … Read more

Master Makefile in 5 Minutes

Master Makefile in 5 Minutes

Photographer: Product Manager This Sichuan restaurant tastes quite good In a previous article titled “Daily Skill: Writing Makefile for Python Projects”, we discussed Makefile. Many students have left messages in the public account backend wanting to further understand how to write a Makefile. Thus, we have today’s article. If you are currently using macOS or … Read more