Coder Social home page Coder Social logo

Comments (5)

JoseDiazRohena avatar JoseDiazRohena commented on July 22, 2024

I think this may be due to an out of date cmake on my part.

from frut.

JoseDiazRohena avatar JoseDiazRohena commented on July 22, 2024

Wait. I think there is an issue in the docs. It says that "Reprojucer.cmake requires CMake version 3.4 minimum." However, the latest version of cmake I can find is 3.25.1, See: https://cmake.org/download/

from frut.

McMartin avatar McMartin commented on July 22, 2024

Hi @JoseDiazRohena,

Thanks for using FRUT!

FRUT indeed requires CMake 3.4 (which was released in November 2015), or a later version. The last version of CMake (3.25.1 as you found out) should work fine, though I haven't tested personally.

Based on the CMake error you shared above, Reproducer.cmake is trying to convert the version of your project (1.0.0r1) into an integer, by splitting on periods and using bit shifting. Unfortunately, 0r1 is not a valid number that can be bit shifted.

Does Projucer really accept a project version like 1.0.0r1? If it does, then you found a bug in Reprojucer.cmake, since it should reproduce how Projucer works. I'll have a look on my side to see what Projucer's behavior is.

I hope this helps!

from frut.

McMartin avatar McMartin commented on July 22, 2024

It seems that Projucer is fine with non-integers values in the project version because it uses juce::String::getIntValue, which returns the first integer in the string and ignores anything afterwards. This means that 0r1 is treated like 0 and the math expression (that contains the bit shifting) works fine.

As I wrote above, you found a bug in Reprojucer.cmake. Thanks for finding it and opening that issue!

I'll take care of fixing it as soon as I can.

from frut.

JoseDiazRohena avatar JoseDiazRohena commented on July 22, 2024

Ah! I'm glad to have helped 🫡.

from frut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.