Visualization Library is a C++ middleware for high-performance 2D and 3D graphics applications based on OpenGL 1.x-4.x supporting Windows, Linux and Mac OS X.
The patch is very simple, I just put the wxWidgets related header files before the vl related header files, because the wxWidgets header files may already set the unicode preprocessor correctly.
Hi, I'm building this library with such cmake option below, note that wxWidgets gui option is
ON
. I am using this library under msys2:When I run the command
mingw32-make.exe
I got such build error:
You can see, it looks like the ANSI (non-Unicode) version of the Windows API is used.
To solve this issue, I have such patch:
The patch is very simple, I just put the wxWidgets related header files before the vl related header files, because the wxWidgets header files may already set the unicode preprocessor correctly.
BTW: the wx library version 3.2.2.1 is already installed by the
pacman
command under msys2, see here: Package: mingw-w64-x86_64-wxwidgets3.2-msw - MSYS2 Packages