Learning Open CASCADE | Compiling Source Code Based on Visual Studio 2022

Learning Open CASCADE | Compiling Source Code Based on Visual Studio 2022

Click the above “Mechanical and Electronic Engineering Technology” to follow us 1. Introduction The Open CASCADE (OCC) platform is a CAD/CAE/CAM software platform developed by the French company Matra Datavision, and it is one of the most important geometric modeling software platforms in the world. The open-source OCC object library is an object-oriented C++ library … Read more

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

Getting Started with CMake: From Basic C Code to Embedded Project Management

Getting Started with CMake: From Basic C Code to Embedded Project Management

Hello everyone, welcome to <span>LiXin Embedded</span>. Today we will talk about CMake, a powerful tool that makes cross-platform builds easy and helps you manage your projects efficiently. Why Do We Need CMake? If you are just starting to learn C++, you might be used to using an IDE like Visual Studio, VS Code, or CLion. … Read more

Compilation Tools: GCC, GNU, MinGW, MSVC, Make, CMake, Ninja

Compilation Tools: GCC, GNU, MinGW, MSVC, Make, CMake, Ninja

1. Starting with Hello World: How Does a Program Become an Executable File? Let’s start with the simplest C program: On Linux, to run this code, we need to use GCC to turn it into a program that the machine can execute. This process consists of 4 steps: Preprocessing (<span>hello.c</span> → <span>hello.i</span>): Handling preprocessing directives … Read more

Ignition-CMake2: The Swiss Army Knife for C++ Projects

Ignition-CMake2: The Swiss Army Knife for C++ Projects

Ignition-CMake2: The Swiss Army Knife for C++ Projects Ignition-CMake2 is a tool library specifically designed to simplify the build process for C++ projects. It acts like a “Swiss Army Knife,” providing C++ developers with a variety of convenient tools and modules to help them manage their projects more efficiently. While it is primarily used in … Read more

Compiling Fluent UDF Using GCC

Compiling Fluent UDF Using GCC

The latest versions of Fluent (such as Fluent 2025R1) come with a built-in clang compiler, allowing UDF compilation without the need to install Visual Studio. However, using GCC for UDF compilation has several advantages, including: (1) GCC compiles quickly and provides detailed debugging information. (2) It is convenient to compile and debug code using tools … Read more

Introduction to the Core Component of OpenWrt: libubox (1)

Introduction to the Core Component of OpenWrt: libubox (1)

During the project development process, many applications require common I/O operations, data structures, and algorithms. If each application needs to rewrite these functionalities, it will inevitably reduce development efficiency and increase the possibility of code instability. Therefore, many large projects develop basic libraries or services for other applications to use. These components are referred to … Read more

Common Syntax in CMake (Functions)

Common Syntax in CMake (Functions)

Previous exciting content:CMake Hello, WorldCMake VariablesCMake Official Tutorial (Basic Project Setup)CMake Official Tutorial (Creating Libraries)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)CMake Common Syntax (Strings)CMake Common Syntax (Lists)CMake Common Syntax (Loops)CMake Common Syntax (Macros) Functions in CMake … Read more

Using CMake to Reference Your Own Developed Third-Party Library

Using CMake to Reference Your Own Developed Third-Party Library

Summary Developing your own library in C++ is quite convenient, but making it usable for others can be a bit challenging. It requires understanding the CMake toolset. This article may seem simple, but I spent three days working on this issue. Perhaps I am a bit slow, and with limited learning ability, I will strengthen … Read more