background picture of the home page

Think in Code

跨平台/架构编译

使用docker环境编译 使用alpine镜像,alpine系统包含各个系统架构的镜像,alpine使用的是musl libc alpine - Official Image | Docker Hub docker run可以通过--platform=linux/amd64指定镜像的架构(前提是镜像

thumbnail of the cover of the post

Windows程序使用管理员权限运行

1、获取rsrc go install github.com/akavel/rsrc@latest 在项目根目录中创建*.manifest文件(文件名没有过多局限,不过按照要求来也没错) <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

thumbnail of the cover of the post

cmake 创建Qt翻译

find_package(Qt5LinguistTools REQUIRED) file(GLOB_RECURSE TS_FILES translator/*.ts) qt5_create_translation(QM_FILES ${CMAKE_CURRENT_SOURCE_DIR} ${TS_F

thumbnail of the cover of the post

gcc docker 编译环境

使用docker gcc编译,静态链接运行时 编写Dockerfile FROM gcc:13 RUN apt update \ && apt install gcc clang make ninja-build cmake gdb git -y \ && apt clean 使用VSCod

thumbnail of the cover of the post