General Workflow for Houdini HDK C++ Development (AI-Assisted Version)

General Workflow for Houdini HDK C++ Development (AI-Assisted Version)

πŸ› οΈ General Workflow for Houdini HDK C++ Development (AI-Assisted Version) Core Concept: AI writes logic, CMake manages builds, VS writes code, Houdini verifies results. Phase One: Setup and Skeleton Do not start from scratch; establish a standardized directory structure. 1. Create Folder Structure Create a project directory on your development drive (e.g., D drive): Plaintext … Read more

Introduction to CMake Build System – Complete Guide to CPack Packaging: Cross-Platform Installer Creation

Introduction to CMake Build System - Complete Guide to CPack Packaging: Cross-Platform Installer Creation

Introduction Have you ever encountered the following issues: β€’ Not knowing how to distribute the compiled program to users β€’ Manually copying files to system directories, which is prone to errors β€’ Different platforms require different packaging methods, leading to high maintenance costs β€’ Users are unsure how to uninstall after installation β€’ Lack of … Read more

A Mysterious Error in Zephyr Configuration

During the configuration of Zephyr, one often encounters inexplicable errors. the toolchain is unable to build a dummy C file. Feeling helpless, right? No one to help you? Solution: 1 Check the CMake version, use the recommended version, and avoid using a version that is too high; if it is too high, uninstall and reinstall. … Read more

Qt6 CMake: Automatic Packaging and Deployment of QWidgets

Hi~ This is Weekly Qt, dedicated to sharing valuable Qt knowledge.This section demonstrates how to deploy a Qt Widgets application through a simple C++ Qt project example. It provides a detailed introduction to using the deployment features of Qt’s extended CMake.01 Project StructureThe basic structure of the project is as follows: BuildWidgetAppAndDeploy/β”œβ”€β”€ CMakeLists.txtβ”œβ”€β”€ main.cppβ”œβ”€β”€ mainwindow.cppβ”œβ”€β”€ … Read more

CMakeLists.txt Syntax (Part II)

CMakeLists.txt Syntax (Part II)

1. Steps 1. Create src Directory Project Directory Create a subdirectory src to place the project source code. 2. Write CMakeLists.txt In the src Directory of the Project Source Code, write CMakeLists.txt (a CMakeLists.txt needs to be created for any subdirectory). ADD_EXECUTABLE(testNew1 test.c) 3. CMakeLists.txt in the Project Directory project(HelloARM C)ADD_SUBDIRECTORY(src bin) 4. Create build … Read more

Compilation and Build Tools for C Language

Compilation and Build Tools for C Language

The C language can be used to write operating systems, drivers, and applications. When developing with C, we first write the source code, then compile and link the dependent libraries, and finally generate an executable program. Taking the gcc compiler as an example, as shown in the figure below: In actual projects, there will be … Read more

CMake: Recording Project Version from a File

CMake: Recording Project Version from a File

Introduction: The purpose of this content is similar to the previous article, but the starting point is different. Our plan is to read version information from a file instead of setting it in CMakeLists.txt. The goal of storing the version in a separate file is to allow other build frameworks or development tools to use … Read more

A Simple Guide to Using CMake

A Simple Guide to Using CMake

πŸ‘‰ Official Tutorial: https://cmake.org/cmake/help/latest/guide/tutorial/index.html Why do we need CMake? Although we already have Make, why should we use CMake? 1. Cross-platform support: It works not only on Linux but also on Windows, macOS, and other platforms. 2. Easy configuration: Describe the build process with simple scripts, avoiding the need to repeatedly write complex Makefiles. 3. … Read more

Setting Up GD32 Development Environment on Windows Using VSCode and CMake

Setting Up GD32 Development Environment on Windows Using VSCode and CMake

Setting Up GD32 Development Environment on Windows Using VSCode and CMake I previously set up the GD32 development environment in a Linux environment, but since I often use Windows, I made some improvements based on the original setup to enable compiling, downloading, and debugging microcontroller programs on Windows. See the following tweets for details: Building … Read more

Understanding CMake: Core Principles and Basic Syntax

Understanding CMake: Core Principles and Basic Syntax

1. Core Principles of CMake CMake is not a build tool (like <span>make</span> or <span>ninja</span>), but rather a build system generator, such as generating Makefiles. Its core working principle can be summarized in the following three steps: 1. Configuration: β€’ You write a script file named <span>CMakeLists.txt</span> that describes your project structure, source files, dependencies, … Read more