I’m trying to use the HDF5 libary for a project in OF.
I would like to end up with an addon wrapping the main functionalities (write/read, create dataset, create group… )
I’m stuck on trying to get the libary working in OF (I’m in latest Xcode, latest OF)
So far I have downloaded the binary files here:
And tried the platform:
Linux 2.6 (32-bit)
Compilers: gcc, g++, gfortran 4.1.2
These are the errors i get:
ld: warning: ignoring file openFrameworks/addons/ofxHDF5/libs/HDF5Lib/lib/osx/libhdf5_cpp.a, file was built for archive which is not the architecture being linked (i386): openFrameworks/addons/ofxHDF5/libs/HDF5Lib/lib/osx/libhdf5_cpp.a Undefined symbols for architecture i386: "vtable for H5::DataSpaceIException", referenced from: H5::DataSpaceIException::DataSpaceIException(H5::DataSpaceIException const&) in ofxHDF5.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
I don’t understand why it is ignoring the lib file… do i have to compile the entire library to get the right architecture?
I have little experience with compilers and the process of creating addons… I haven’t found much documentation on how to deal with all the compiler errors I’m getting… but I really would like to know how to do that.
To me, the task of creating an addon wrapping some library it seems like a big wall, really hard to climb. I’m sure that there are many people in my situation. Where they can run OF and addons but once they want something else they find the same wall.
I would like to share my experience so that others can find some answers here.