(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 \ […]
Tag: mingw
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 […]
Qt6 for Windows environment construction (MinGW)
Author: One trip, two or three miles Personal WeChat ID: iwaleon WeChat public account: Efficient programmer In order to start developing with Qt, you need to set up a suitable development environment. Since our tutorial “QML in Detail” is based on Qt6, and so far, the latest version of Qt6 is Qt6.5, so we will […]
matlab calls C/C++ program, minGW does not support the solution of C++14 standard
Call the code written in c++ in matlab. The eigen library is used in the c++ code. The eigen library needs a compiler above c++ 14. Compile in matlab: mex CoorTransformer.cpp -IE:\git\eigen The eigen library reports that the minGW used by matlab does not support the c++14 standard, and only supports c++11. Solution: I am […]
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 […]
QT5 uses mingw64 and mingw32 to compile the math library GSL
QT5 uses mingw64 and mingw32 to compile the math library GSL 1. Tool preparation ? QT5.12.9 version, the gsl library of mingw64 compiled by myself before is used normally. In the process of upgrading and maintaining the subsequent version, it is necessary to use 32 bits. I wanted to compile it directly and use it […]
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 […]