hdf4/4.2.16-2

HDF4 is a data model, library, and file format for storing and managing data.
Recipe info
2023-12-27

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
hdf4/4.2.16-2

Using hdf4

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
hdf4/4.2.16-2
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("hdf4/4.2.16-2")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): hdf4
  • CMake target name(s): hdf4::hdf4
  • hdf => hdf4::hdf-static
    xdr => hdf4::xdr-static
    mfhdf => hdf4::mfhdf-static
    
  • pkg-config file name(s): hdf.pc
  • hdf => hdf4-hdf.pc
    xdr => hdf4-xdr.pc
    mfhdf => hdf4-mfhdf.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(hdf4 REQUIRED)
# ...
target_link_libraries(YOUR_TARGET hdf4::hdf4)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the hdf4 homepage listed above:

#include "hdf4/H4api_adpt.h"
#include "hdf4/atom.h"
#include "hdf4/bitvect.h"
#include "hdf4/cdeflate.h"
#include "hdf4/cnbit.h"
#include "hdf4/cnone.h"
#include "hdf4/crle.h"
#include "hdf4/cskphuff.h"
#include "hdf4/cszip.h"
#include "hdf4/df.h"
#include "hdf4/dfan.h"
#include "hdf4/dfgr.h"
#include "hdf4/dfi.h"
#include "hdf4/dfrig.h"
#include "hdf4/dfsd.h"
#include "hdf4/dfstubs.h"
#include "hdf4/dfufp2i.h"
#include "hdf4/dynarray.h"
#include "hdf4/glist.h"
#include "hdf4/h4config.h"
#include "hdf4/hbitio.h"
#include "hdf4/hchunks.h"
#include "hdf4/hcomp.h"
#include "hdf4/hcompi.h"
#include "hdf4/hconv.h"
#include "hdf4/hdatainfo.h"
#include "hdf4/hdf.h"
#include "hdf4/hdf2netcdf.h"
#include "hdf4/hdfi.h"
#include "hdf4/herr.h"
#include "hdf4/hfile.h"
#include "hdf4/hkit.h"
#include "hdf4/hlimits.h"
#include "hdf4/hntdefs.h"
#include "hdf4/hproto.h"
#include "hdf4/hqueue.h"
#include "hdf4/htags.h"
#include "hdf4/linklist.h"
#include "hdf4/local_nc.h"
#include "hdf4/mcache.h"
#include "hdf4/mfan.h"
#include "hdf4/mfdatainfo.h"
#include "hdf4/mfgr.h"
#include "hdf4/mfhdf.h"
#include "hdf4/mfhdfi.h"
#include "hdf4/mstdio.h"
#include "hdf4/netcdf.h"
#include "hdf4/tbbt.h"
#include "hdf4/types.h"
#include "hdf4/vg.h"
#include "hdf4/vgint.h"
#include "hdf4/xdr.h"