Code Monkey home page Code Monkey logo

Comments (6)

phcerdan avatar phcerdan commented on May 22, 2024 3

I can reproduce this with gcc 9.1.
To fix it, just set option in CMake to not use isystem from imported targets, I found the reference in the CMake maillist here:

cmake ../src -DCMAKE_NO_SYSTEM_FROM_IMPORTED:BOOL=TRUE 

This is the first time I faced this in CMake, probably has to do with the way (non standard?) OpenVDB is importing targets.

from openvdb.

OpenVDB-DevTeam avatar OpenVDB-DevTeam commented on May 22, 2024 1

Since /usr/include/ is searched by default, you can set *_INCL_DIR to some nonexistent directory, or to an existing directory that contains no headers. Or just change -isystem to -I, if you don't mind seeing lots of compiler warnings.

from openvdb.

frispete avatar frispete commented on May 22, 2024

Thanks for the trick @phcerdan, same happens here for llvm builds on openSUSE Tumbleweed (a rolling release). Here's the public build: https://build.opensuse.org/package/live_build_log/home:frispete:blender/openvdb/openSUSE_Tumbleweed/x86_64
BTW, the build triggers (a few too) many warnings due to some openexr/tbb deprecations.

A further note on packaging: it happens, that the library base is not /usr/lib for some 64bit distributions.
check the less than optimal %prep section of: https://build.opensuse.org/package/view_file/home:frispete:blender/openvdb/openvdb.spec?expand=1

from openvdb.

anil100391 avatar anil100391 commented on May 22, 2024

Shouldn't the usage of concerned cmake flag be mentioned in README building section?

from openvdb.

syoyo avatar syoyo commented on May 22, 2024

More proper fix may be removing ${IlmBase_INCLUDE_DIR}/../
in

https://github.com/AcademySoftwareFoundation/openvdb/blob/master/cmake/FindIlmBase.cmake#L325

(and do same thing for FindOpenEXR.cmake)

This path is expanded to /usr/include/OpenEXR/.. in apt installed OpenEXR(IlmBase) on Ubuntu 18.04.

I have confirmed OpenVDB compiles fine at least on Ubuntu 18.04 by deleting these include paths.

from openvdb.

Hideman85 avatar Hideman85 commented on May 22, 2024

Same issue on master commit f077a14
The fix -DCMAKE_NO_SYSTEM_FROM_IMPORTED:BOOL=TRUE works but can't compile without

from openvdb.

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.