Git Product home page Git Product logo

Comments (12)

rimmartin avatar rimmartin commented on August 11, 2024

I'll test on Windows with hdf5 1.10. It builds on windows with 1.8.15

from hdf5.node.

NINI1988 avatar NINI1988 commented on August 11, 2024

It's under linux.

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

https://github.com/HDF-NI/hdf5.node/blob/master/src/reference.hpp#L100
is compiling with 1.10.1 and 1.10.0-patch1 on my ubuntu. My c++ compiler is v8.0.0

what could be making the difference. My hdf5 libs are compiled; not system installs. The travis-ci system installed hdf5 lib is defaulting to 1.8 I believe

from hdf5.node.

NINI1988 avatar NINI1988 commented on August 11, 2024

I'll look tomorrow to see if I found a difference.

from hdf5.node.

NINI1988 avatar NINI1988 commented on August 11, 2024

I tried it with g++-7 and g++-8 which doesn't fix the problem.

The problem is in /usr/include/hdf5/serial/H5version.h:

#if !defined(H5Rdereference_vers)
  #define H5Rdereference_vers 1
#endif /* !defined(H5Rdereference_vers) */

When H5Rdereference_vers is undefined it uses H5Rdereference1 as default.

So a workaround is to use H5Rdereference2 directly:

#if  H5_VERSION_GE(1,10,0)
      H5Rdereference2(locId, H5P_DEFAULT, (H5R_type_t)args[1]->Int32Value(), (void *)obj->objectId);
#else
      H5Rdereference(locId, (H5R_type_t)args[1]->Int32Value(), (void *)obj->objectId);
#endif

I use sudo apt install libhdf5-dev to install hdf5.

But I don't know why it work elsewhere except me?

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

Yea it would be nice to know; I'll put in the work around if we don't find it.

Something that is bothering me is the extra defaults for the hdf5 native home:
https://github.com/HDF-NI/hdf5.node/blob/master/binding.gyp#L20

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

and you have home as --hdf5_home_linux='/usr/lib/x86_64-linux-gnu/hdf5/serial' so the
/usr/include/hdf5/serial/H5version.h shouldn't be picked up

are versions mixing?

from hdf5.node.

NINI1988 avatar NINI1988 commented on August 11, 2024

include is a link:
/usr/lib/x86_64-linux-gnu/hdf5/serial/include -> /usr/include/hdf5/serial

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

ah is that how they install it! links always catch me

from hdf5.node.

NINI1988 avatar NINI1988 commented on August 11, 2024

I didn't found a fix for this, and this crashes my ci builds.
Could you add the workaround?

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

yep I'll add it

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

give it a test

from hdf5.node.

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.