Skip to content

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

Open
@GammaSigma1234

Description

@GammaSigma1234

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions