cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

Failed to build on MSYS2 MINGW64 #2310

Open ghost opened 1 year ago

ghost commented 1 year ago
$ ninja
[1/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/BandedMatrix.cpp.obj
[2/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Base64.cpp.obj
[3/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Buffer.cpp.obj
[4/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Area.cpp.obj
[5/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/BSplineFit.cpp.obj
[6/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/BSpline.cpp.obj
[7/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Camera.cpp.obj
[8/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/CameraUi.cpp.obj
FAILED: CMakeFiles/cinder.dir/src/cinder/CameraUi.cpp.obj
C:\msys64\mingw64\bin\c++.exe -DFT2_BUILD_LIBRARY -DFT_DEBUG_LEVEL_TRACE -DNOMINMAX -DUNICODE -D_CRT_SECURE_NO_WARNINGS -D_LIB -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN32_WINNT=0x0601 -IC:/msys64/home/Administrator/Cinder/include/jsoncpp -IC:/msys64/home/Administrator/Cinder/include/tinyexr -IC:/msys64/home/Administrator/Cinder/include/imgui -IC:/msys64/home/Administrator/Cinder/src/linebreak -IC:/msys64/home/Administrator/Cinder/src/oggvorbis/vorbis -IC:/msys64/home/Administrator/Cinder/src/r8brain -isystem C:/msys64/home/Administrator/Cinder/include -isystem C:/msys64/home/Administrator/Cinder/include/oggvorbis -isystem C:/msys64/home/Administrator/Cinder/src/AntTweakBar -isystem C:/msys64/home/Administrator/Cinder/include/freetype -isystem C:/msys64/home/Administrator/Cinder/include/msw/zlib -isystem C:/msys64/home/Administrator/Cinder/include/msw -std=c++17  -g -MD -MT CMakeFiles/cinder.dir/src/cinder/CameraUi.cpp.obj -MF CMakeFiles\cinder.dir\src\cinder\CameraUi.cpp.obj.d -o CMakeFiles/cinder.dir/src/cinder/CameraUi.cpp.obj -c C:/msys64/home/Administrator/Cinder/src/cinder/CameraUi.cpp
In file included from C:/msys64/home/Administrator/Cinder/include/cinder/Display.h:30,
                 from C:/msys64/home/Administrator/Cinder/include/cinder/app/Window.h:28,
                 from C:/msys64/home/Administrator/Cinder/include/cinder/CameraUi.h:28,
                 from C:/msys64/home/Administrator/Cinder/src/cinder/CameraUi.cpp:26:
C:/msys64/home/Administrator/Cinder/include/cinder/msw/CinderWindowsFwd.h:64:9: error: '_Null_terminated_' does not name a type
   64 | typedef _Null_terminated_ CHAR *NPSTR, *LPSTR, *PSTR;
      |         ^~~~~~~~~~~~~~~~~
[9/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/CinderAssert.cpp.obj
[10/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/CinderMath.cpp.obj
[11/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Channel.cpp.obj
[12/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Color.cpp.obj
[13/272] Building CXX object CMakeFiles/cinder.dir/src/cinder/Clipboard.cpp.obj
C:/msys64/home/Administrator/Cinder/src/cinder/Clipboard.cpp:283:31: warning: multi-character character constant [-Wmultichar]
  283 |         bi.bV5CSType        = LCS_sRGB;
      |                               ^~~~~~~~
ninja: build stopped: subcommand failed.