Skip to content

Cannot compile Flann's HDF5 on Ubuntu Vivid and above #6296

@vrabaud

Description

@vrabaud
  • OpenCV version: 3.x
  • Host OS: Linux (Ubuntu 15.10 and above)

In which part of the OpenCV library you got the issue?

  • flann and opencv_contrib/hdf5

Expected behaviour

  • it can compile

Actual behaviour

  • crash

Additional description

This is normal as the headers have changed in newer versions of hdf5.
Before, you have /usr/include/hdf5.h (cf http://packages.ubuntu.com/trusty/amd64/libhdf5-dev/filelist).
In vivid and above, you have: /usr/include/hdf5/serial/hdf5.h (cf http://packages.ubuntu.com/vivid/amd64/libhdf5-dev/filelist)

Code example to reproduce the issue / Steps to reproduce the issue

Please try to give a full example which will compile as is.

#include "<opencv2/flann/hdf5.h>-"

int main()
{
    return 0;
}

I believe this would be for @cbalint13 who contributed to HDF5 in opencv_contrib.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions