Common Syntax of CMake (Strings)

Common Syntax of CMake (Strings)

Previous Highlights:CMake Hello, WorldCMake VariablesCMake Official Tutorial (Basic Project Setup)CMake Official Tutorial (Library Creation)CMake Official Tutorial (Usage Requirements)CMake Official Tutorial (Installation and Testing)CMake Common Syntax (if Statements)CMake Common Syntax (Cache Variables)CMake Common Syntax (Environment Variables)CMake Common Syntax (Mathematical Calculations) In mainstream programming languages, strings are a fundamental and core data type, which is crucial, and … Read more

CMake Tutorial

CMake Tutorial

1. Introduction to CMake CMake is a cross-platform build tool, which can generate: Makefile for Linux/Unix Project files for <span>Visual Studio</span> on Windows Project files for <span>Xcode</span> on macOS without manually writing build scripts for different platforms. 2. Installing CMake Windows: Download the installer from cmake.org/download Linux: <span>sudo apt install cmake</span> (Debian/Ubuntu) macOS: <span>brew install … Read more

Different Linking Methods for CMake Libraries

Different Linking Methods for CMake Libraries

1. Different Libraries Have Different Linking Methods OpenCV uses ${OpenCV_LIBS} target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS}) protobuf uses ${PROTOBUF_LIBRARIES} target_link_libraries(${PROJECT_NAME} ${PROTOBUF_LIBRARIES}) jpeg-turbo uses the target name libjpeg-turbo::turbojpeg-static target_link_libraries(${PROJECT_NAME} libjpeg-turbo::turbojpeg-static) 2. How to Determine Which Method to Use Generally, the following methods can be used: Check the CMake file for usage instructions. (Well-written CMake files usually include usage instructions) Look … Read more

In-Depth Understanding of GCC Certification: The Key to the Gulf Market

In-Depth Understanding of GCC Certification: The Key to the Gulf Market

In the wave of global trade, countries have established various product certification standards to protect the rights of their consumers and maintain market order. For companies looking to enter the Gulf Cooperation Council (GCC) member states market, GCC certification is an indispensable “key”. This article will provide a detailed introduction to the steps and related … Read more

GCC Certification for Bicycles in the USA: 16 CFR 1512 Testing

GCC Certification for Bicycles in the USA: 16 CFR 1512 Testing

The U.S. Consumer Product Safety Commission (CPSC) has decided to publish new requirements for electric bicycles under 16 CFR part 1512 in the Federal Register, after fully considering comments from the industry and consumers. This standard officially took effect in December. Electric bicycles (also known as e-bikes) are two-wheeled vehicles used by individuals, which enhance … Read more

Documenting a Crash Issue Caused by Missing Return in High Version GCC

Documenting a Crash Issue Caused by Missing Return in High Version GCC

1. Problem Phenomenon The code that runs normally on CentOS 7 crashes when compiled and run on CentOS 8. 2. Troubleshooting Process The crash occurred at a location in the test case that should not have been reached, so I first commented out that part of the code. It then crashed again after reaching the … Read more

Academician Gao Wen, Chairman of GCC SAC: Building a National Highway for AI Computing Power to Make It as Convenient as Electricity

Academician Gao Wen, Chairman of GCC SAC: Building a National Highway for AI Computing Power to Make It as Convenient as Electricity

Gao Wen, a representative of the National People’s Congress, an academician of the Chinese Academy of Engineering, and the director of the Pengcheng National Laboratory, mentioned in an interview that the construction of the computing power network includes three core elements: large-scale core computing power, super optical networks, and computing power scheduling systems. The ideal … Read more

GCC 15 Compiler Nears Completion: COBOL and Itanium Join, ALGOL Exits

GCC 15 Compiler Nears Completion: COBOL and Itanium Join, ALGOL Exits

Introduction: The 15th version of the GNU Compiler Collection is set to be released, during which some changes will be locked. GCC (GNU Compiler Collection) 15 is being updated as planned, and a new front end for COBOL is being introduced. This upgrade will also bring significant improvements to the development of C and C++. … Read more

Detailed Explanation of GCC Certification in the United States

Detailed Explanation of GCC Certification in the United States

1. What is GCC Certification? GCC stands for General Certificate of Conformity. It is a written general conformity certificate that manufacturers and importers of general use products (i.e., non-children’s products) must issue based on reasonable testing, as stipulated by the U.S. Consumer Product Safety Improvement Act (CPSIA). Manufacturers and importers of general use products subject … Read more

Linux | GCC Compilation Guide

Linux | GCC Compilation Guide

01 Why learn embedded Linux and embedded microcontrollers? Because AI will not be able to replace them in the next decade. GCC, which stands for GNU Compiler Collection, is a compilation suite that supports various computer architectures such as X86, ARM, and MIPI. The GCC that we use is included by default in Ubuntu.GCC options … Read more