open-source-parsers / jsoncpp

A C++ library for interacting with JSON.
Other
8.06k stars 2.63k forks source link

I cannot figure out how to build this on MinGW32 #1525

Closed LEOcab closed 8 months ago

LEOcab commented 8 months ago

Describe the bug I can't build the library either as outlined in the front page (using vcpkg) or with CMake as outlined in the wiki.

To Reproduce Steps to reproduce the behavior:

  1. Install MSYS2
  2. Open MinGW32 shell
  3. Install both the x86 and x64 toolchains
  4. Follow the rest of the provided instructions

Expected behavior THE LIBRARY SHOULD BUILDDDDDDD.

Desktop (please complete the following information):

Additional context

Output while trying the vcpkg method: (ran from vcpkg directory) `$ ./vcpkg install jsoncpp --host-triplet=x64-mingw-static --triplet=x86-mingw-dynamic Computing installation plan... The following packages will be built and installed: jsoncpp:x86-mingw-dynamic@1.9.5#2

error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output. `

I can't show the output I got with the CMake method provided by the wiki because it's too long, but it seems to be mostly undefined references to items beginning with std::__cxx11::. I'm guessing I have to specify C++11 somewhere but I have no clue how.

Somebody help please? I just want to build this so I can use it on a project but it feels like rocket science. I just need an include folder, a lib folder, and a bin folder with 32-bit MinGW binaries. I don't need any package management