Compile BVLC/Caffe under msys2@mingw

(Refer to https://github.com/lemonsqueeze/mingw-caffe, the attempts on this project are written at the end of the article) 1. Prepare development environment Regarding the tools that need to be installed, the above article has made it very clear, so I will copy them below. pacman -S –needed git make patch diffutils pacman -S –needed \ mingw-w64-${MSYSTEM_CARCH}-cmake \ […]

use vscode mingw cmake on windows

Remember mingw to go to MingW-W64-builds under the official website and download this version x86_64-13.1.0-release-posix-seh-ucrt-rt_v11-rev1.7z posix is very important, the win32 version does not have thread support, and an error will be reported when using it. You can test whether it can run normally #include <thread> #include <mutex> #include <condition_variable> #include <iostream> std::thread second_workthread; std::mutex […]

Kafka TimingWheel principle is worth learning from

In Kafka, there are many requests that do not return immediately, and return after processing some asynchronous operations or waiting for certain conditions to be met. These requests generally have a timeout parameter, indicating that if the server does not meet the return conditions after the timeout time, , it is determined that the request […]

Build a streamlined version of the FreeGLUT library (use MinGW + VSCode + CMake gui to build the FreeGLUT library)

Build the FreeGLUT library using MinGW + VSCode + CMake gui Prerequisites Download MinGW Download VSCode Download CMake gui DownloadFreeGLUT Configuration process test Use MinGW + VSCode + CMake gui to build the FreeGLUT library Prerequisite Download MinGW Download address: MinGW Detailed download tutorials can be found online Download VSCode Download address: VSCode After the […]

MinGW-w64 installation detailed steps (c/c++ compiler gcc, g++ windows version, win10, win11 are available)

Article directory 1. Definition of MinGW 2. The main components of MinGW 3. Download and install MinGW-w64 3.1. Download, decompress and install the address 3.2, MinGW-w64 environment variable setting 4. Verify that MinGW is installed successfully 5. Write a simple code verification 6. Summary 1. Definition of MinGW MinGW (Minimalist GNU for Windows) is a […]

Build a C++ development environment based on VSCode under Windows (including the detailed process of integrating MinGW64 and CMake)

Recently I want to write C ++ , installed VisualStudio 2022, and tossed for a long time. For a person who is used to VSCode, the IDE always feels too cumbersome. So I searched various information on the Internet, pondered by myself, and built a C++ lightweight development environment based on VSCode and CMake under […]

Generation and deployment of dynamic libraries (.dll and .a files) under IDE/mingw (compared to .dll and .lib under MSVC)

Article directory overview problem generation DLL dynamic library based on mingw EXE executable program based on mingw \*.a files using the Qt library in the Makefile Who works under *.a files and *.dll under mingw episode What exactly is the \*.a file generated by mingw Why mingw’s dll can be used to compile and link […]