When CMake Meets Python

When CMake Meets Python

CMake is not unfamiliar to many who are familiar with C and C++. Today, we will look at a somewhat unusual application scenario: using CMake to manage and run Python applications. This approach can be effective in certain situations, such as when code generation is done in C++, and tool scripts are written in Python, … Read more

Introduction to Makefile Basics: From Compilation Novice to Automation Build Expert

Introduction to Makefile Basics: From Compilation Novice to Automation Build Expert

Introduction: Why Do We Need Makefile? In Windows IDEs, we can simply click the “Build” button to complete the compilation, but behind large projects often lies complex build logic. Makefile is the core tool for achieving automated builds in Linux/Unix environments, acting like a precise conductor that coordinates: Optimization of compilation order Incremental compilation (only … Read more

Using Makefile to Depend on Other Makefiles in Linux

Using Makefile to Depend on Other Makefiles in Linux

Hello everyone, I am the Intelligence Guy~ <span>$(MAKE) -C is very useful in building multiple packages, today I will detail its usage:</span> <span><span>1. Usage of $(MAKE) -C</span></span> <span>$(MAKE) -C</span> is a commonly used command combination in Makefile, which allows you to execute another Makefile in a specified directory. This is very useful when building complex … Read more

Introduction to CMake Basics

Introduction to CMake Basics

Introduction to CMake 1. Overview of CMake CMake is a project build tool that is cross-platform. Other popular project build tools include Makefile (which builds projects using the Make command). Most IDEs integrate make, such as: nmake for VS, GNU make for Linux, and qmake for Qt. If you write a makefile by hand, you … Read more

CMake Command Quick Reference: Comprehensive Overview of Common Commands

CMake Command Quick Reference: Comprehensive Overview of Common Commands

Click the blue text to follow the author 1. Introduction CMake is a cross-platform open-source build system generator. It does not directly build software but generates a build system for a specific platform based on the descriptions in the <span>CMakeLists.txt</span> file. The role of CMake is to decouple the build process from the compiler, operating … Read more

How to Install CMake on OpenWRT

How to Install CMake on OpenWRT

• OpenWRT’s opkg supports most software packages, but some specific domain packages still require source installation, such as the SRS server (streaming media server). Source programming typically requires CMake. This article attempts to compile and install CMake from source in OpenWRT system based on Host mode, summarizing the problems encountered and their solutions as follows. … Read more

CMake Documentation Reading Notes – Simple ‘Hello World’ Project

CMake Documentation Reading Notes - Simple 'Hello World' Project

First, install gcc-g++ and cmake. Taking CentOS as an example: yum install gcc-c++ yum install cmake First, create a main.cpp file that includes a main function, and create a CMakeLists.txt file. The purpose of the CMakeLists.txt file is to guide CMake in compiling the C++ program on the current operating system. main.cpp #include <iostream> int … Read more

Introduction to Make in Linux C

Introduction to Make in Linux C

From WeChat Official Account: One Linux Introduction to Make: Make is an engineering manager, which, as the name suggests, is used to manage a large number of files. The Make engineering manager is essentially an “automatic compilation manager“. The term “automatic” refers to its ability to automatically discover updated files based on file timestamps, thereby … Read more

BitBake – A Powerful Engine for Embedded Linux Build Systems

BitBake - A Powerful Engine for Embedded Linux Build Systems

BitBake is a powerful build tool primarily used for building embedded Linux systems, playing a core role in the Yocto Project. It is not just a simple build tool but a complete task execution engine capable of handling complex dependencies and build processes. Basic Concepts BitBake uses specific configuration files (.bb files) to describe how … Read more

Using CMake: A C++ Project Build Tool

Using CMake: A C++ Project Build Tool

Using CMake: A C++ Project Build Tool CMake is a popular cross-platform build system that generates standardized build files, allowing C++ projects to be easily compiled and managed across different operating systems and development environments. In this article, we will introduce the basic usage of CMake and how to use it to create a simple … Read more