Code Monkey home page Code Monkey logo

Comments (4)

tck42 avatar tck42 commented on May 27, 2024

Attached patch got it compiling for me, though I'm having GL issues (old graphics card) so I can't tell if this is a proper fix (or I'd just PR it). Can you please test it and let me know?

isnan.patch.txt

from libfive.

tck42 avatar tck42 commented on May 27, 2024

Disregard, sorry. Different issue.

from libfive.

iffsid avatar iffsid commented on May 27, 2024

I got the following two errors for the same file (evaluator.cpp).

../kernel/src/eval/evaluator.cpp: In constructor ‘Evaluator::Evaluator(const Tree*, const mat4&)’:
../kernel/src/eval/evaluator.cpp:49:17: error: ‘align’ is not a member of ‘std’
                 std::align(alignment, sizeof(Clause) * count, buf, bytes));
                 ^
../kernel/src/eval/evaluator.cpp: In function ‘void clause(Opcode, const float*, const float*, float*, size_t)’:
../kernel/src/eval/evaluator.cpp:197:32: error: ‘isnan’ was not declared in this scope
             out[i] = isnan(a[i]) ? b[i] : a[i];
                                ^

It turns out gcc-4.9 has a bug in that it's missing std::align (issue here), so I replaced the call with the fix supplied in the end of that thread.

As for the isnan error, you can just replace it with std::isnan.

The patch for both changes is available here.

Edit: @sethalves has a pull request patching these changes (with appropriate compiler directives) in #8.

from libfive.

mkeeter avatar mkeeter commented on May 27, 2024

I've brought in @sethalves 's patches and it looks like @poppingtonic has gotten past this stage (and is having different issues in #11).

from libfive.

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.