Individual libraries seem to build nicely, the final CADET build seems to be unable to find the components, but I expect some fundamental mistake. I have used all export calls prior to the build:
I’d also suggest to install Intel TBB for parallelization. Unfortunately, this is missing in the BUILD-OSX.md instructions file. You don’t need to compile it. Just get a release from it’s GitHub repository.
In order to further debug why CMake doesn’t find HDF5, please post the directory structure of /Users/Andy/Desktop/CADET/Libs/hdf5.
Similarly, if you want to use UMFPACK as well, please also post the structure of /Users/Andy/Desktop/CADET/Libs/suitesparse.
If you only want to use CADET via Matlab (not recommended), you can disable some parts of the software:
I have attached the directory structures for hdf5 and suitsparse. Hopefully there is something simple there. I’ve also now downloaded the TBB source and placed it in the Libs directory. Upon running cmake specifying LAPACK as you suggested TBB is not found. Updated cmake output also attached.
This looks much better. The HDF5 directory structure is a little bit weird, but we can account for that.
I’ve downloaded TBB release 2020_U3 (file tbb-2020.3-mac.tgz) and, after extraction, get a folder tbb-2020.3-mac, which contains the subfolders tbb and pstl. I assume that you’ve copied tbb-2020.3-mac into CADET/Libs.
That’s weird. It should definitely not lose HDF5 since the changed CMake code is executed after HDF5 has been found. Please make sure that you’re following the procedure in this reply. Also, clear the build directory before executing the cmake command.
If you’re running CMake version 3.17 or greater, please run
I think the problem was actually that my default command line version of CMake had been 3.14. Ensuring 3.18 was evoked has permitted the build. Thanks!
This may be a question for a separate thread, but if I now try to run the breakthroughLangmuirSingle.m example, the MEX interface appears to fail as I get an empty simulator object i.e. without a create() method.
on the CadetMex.mexmaci64 file in the bin folder of the Matlab interface.
Then, copy the libtbb_preview.dylib file from /Users/Andy/Desktop/CADET/Libs/tbb-2020.3-mac/tbb/lib to the bin folder where CadetMex.mexmaci64 is located.