FRUT icon indicating copy to clipboard operation
FRUT copied to clipboard

[Windows / MSVC] Issues while building a basic JUCE example

Open GammaSigma1234 opened this issue 10 months ago • 1 comments

I tried using FRUT with a very simple officiale JUCE tutorial, namely the Animation Geometry. I chose this particular example because I am testing FRUT, and I wanted to use the simplest JUCE project possible in order to avoid incompatibilities and issues.

In the end I managed to build and run Animation Geometry, but during the whole process, while following the FRUT guide, I got a warning and an error:

  1. Warning: during the "We first build and install FRUT with CMake" step, when launching cmake --build . --target install --parallel, I got this message:
Project_With_FRUT\FRUT\cmake\tools\PListMerger\main.cpp(141,33): warning C4996: 'juce::XmlElement::createDocument': This has been deprecated in favour of the toString method. [Project_With_FRUT\FRUT\build\cmake\tools\PListMerger\PListMerger.vcxproj]
  1. Error: when building the project (Animation Geometry), I got this message:
error C1128: number of sections exceeded object file format limit: compile with /bigobj

I solved the compilation error by adding this instruction near the top of the newly generated CMakeLists.txt:

if(MSVC)
    add_compile_options(/bigobj)
endif()

I'm building on a Windows 10 machine, using MSVC compiler (installed with Windows SDK 10.0.22621.0) and CMake version 3.23.1. With the aforementioned correction, I was able to correctly build and launch the Geometry Animation tutorial.

GammaSigma1234 avatar Apr 27 '24 20:04 GammaSigma1234