CMake Variables: Master Common Variables and Environment Variables

CMake Variables: Master Common Variables and Environment Variables

1. CMake Variable Reference and Definition (1) Use ${} to reference variables. In statements like IF, use the variable name directly without ${}. (2) Custom variables can be defined implicitly and explicitly. For example, the PROJECT command implicitly defines <projectname>_BINARY_DIR and <projectname>_SOURCE_DIR. Explicitly defining variables can be done using the SET command. For example: SET(HELLO_SRC … Read more

Understanding GCC From a Java Programmer’s Perspective

Understanding GCC From a Java Programmer's Perspective

Source | Low Concurrency Programming Author | Flash Player As a Java programmer, I always forget the basic usage of gcc and am not very familiar with it. Today, this article records the basic knowledge of gcc in the simplest way. The Compilation Process Write a hello.c code. #include <stdio.h> #define STR "hello world\n" void … Read more

The Dance of Compilation: C/C++ and GCC Collaboration

The Dance of Compilation: C/C++ and GCC Collaboration

On the modern stage of computing, programming languages are like dancers, while compilers are the choreographers guiding them from behind the scenes. Every piece of code written is like a carefully designed dance. On this stage, C language and GCC (GNU Compiler Collection) are a classic duo. Together, they perform a magnificent dance of compilation, … Read more

Common Linux GCC Commands

Common Linux GCC Commands

(Click the public account above to quickly follow) Source: ggjucheng Link: http://www.cnblogs.com/ggjucheng/archive/2011/12/14/2287738.html 1 Introduction The meaning of GCC is just GNU C Compiler. After so many years of development, GCC now supports not only C language; it also supports Ada, C++, Java, Objective C, Pascal, COBOL, and even functional and logic programming languages like Mercury, … Read more

Building Root Filesystem with Buildroot

Building Root Filesystem with Buildroot

1. General Steps for Building Root Filesystem with Buildroot Buildroot is a framework for building embedded Linux systems, which can automate the configuration, compilation of the kernel, u-boot, and root filesystem. Here is a basic step-by-step guide for generating a root filesystem using Buildroot: 1. Install Buildroot: First, you need to install Buildroot on your … Read more

Embedded Development | Methods to Improve MCU Code Compilation Speed

Embedded Development | Methods to Improve MCU Code Compilation Speed

Follow+Star Public Account, don’t miss wonderful content Author | strongerHuang WeChat Public Account | strongerHuang Programmers doing software development hate one thing, which is the slow code compilation speed. Code for one minute, compile for ten minutes, who can stand that? Today, let’s talk about some common operations or methods to improve compilation speed in … Read more

Setting Up Embedded Linux Qt Environment

Setting Up Embedded Linux Qt Environment

This article introduces how to configure the Qt runtime environment on an embedded Linux development board and perform Qt program running tests. 1 Compiling tslib I have used tslib previously for testing the touchscreen, and here I will record the compilation process. Download the source code of tslib library: https://github.com/libts/tslib/tags Copy the downloaded source code … Read more

Detailed Steps to Compile OpenWrt Firmware with Luci Interface

Detailed Steps to Compile OpenWrt Firmware with Luci Interface

If you want to master the OpenWrt system, you should learn to compile OpenWrt firmware yourself, and even learn to add your own small features to the OpenWrt system. Many people have encountered situations where the OpenWrt firmware they compiled does not have a web interface, so they start trying various methods to find the … Read more

OpenWRT Basic Custom Image Compilation

OpenWRT Basic Custom Image Compilation

Compiling a dedicated OpenWRT image OpenWRT is almost essential for enthusiasts, but due to the need for additional environment configuration and the high failure rate of compilations, most people choose to download the generic images provided by the official sources. However, as a technology enthusiast, there is always a demand for customized images, especially for … Read more