-lopencv_hdf can not find

Hi,
I get -lopencv_hdf can not find error while compiling application.
I am compiling opencv4.3.0 with it’s contrib pack. i could not get hdf module configured in and hence could not compile hdf.a library. i do not know what definitions i have to write and include in which files to achieve hdf library
compiled in.
i could compile hdf5 library by copying hdf5 1.8 in to contrib and configure followed by compiling to get hdf5.a library. please guide me