cmake/macros/macro_find_package.cmake
Hi All,Praveen, I'm getting this exact same error message when I try to compile my deal.II code. It's been a while since your post... do your recall how you solved it?I recently reinstalled deal.II via spack after upgrading macOS to Ventura 13.2. This is my error message:Consolidate compiler generated dependencies of target TuringPatterns
[ 50%] Linking CXX executable TuringPatterns
ld: library not found for -lhdf5-shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [TuringPatterns] Error 1
make[1]: *** [CMakeFiles/TuringPatterns.dir/all] Error 2
make: *** [all] Error 2
And the detailed.log shows:
# DEAL_II_WITH_HDF5 set up with external dependencies
# HDF5_VERSION = 1.10.7
# HDF5_DIR = /Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.0_spack/hdf5-1$
# HDF5_INCLUDE_DIRS = /Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.0_spa$
# HDF5_USER_INCLUDE_DIRS = /Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.$
# HDF5_LIBRARIES = hdf5-shared
The file "macro_find_package.cmake" Praveen mentioned in his original post doesn't exist in my installation. I don't know why spack didn't install the preferred version of hdf5 (1.12.2). I'm wondering whether I should install the preferred version or the most recent version (1.13.2) of hdf5 and try reinstalling deal.II? Could this solve the problem? Any suggestions would be really welcome. Thanks!Best,Ester
El dia dimecres, 17 d’agost de 2022 a les 10:19:40 UTC+2, Praveen C va escriure:
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/ae92d984-ea52-4a5e-8609-4123deff23b2n%40googlegroups.com.
Consolidate compiler generated dependencies of target step-1
[ 50%] Linking CXX executable step-1
ld: library not found for -lhdf5-shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [step-1] Error 1
make[1]: *** [CMakeFiles/step-1.dir/all] Error 2
make: *** [all] Error 2
/Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.0_spack/dealii-9.4.0-eyotztjepnxo24vrevovh6bdejcvs2u5/share/deal.II/detailed.log
/Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.0_spack/hdf5-1.10.7-6i6oulsc3hyehgkevx56xykhibxlmbmc/lib/libhdf5.dylib
In deal.II's configure files, which I found in the folder:
/Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.0_spack/dealii-9.4.0-eyotztjepnxo24vrevovh6bdejcvs2u5/lib/cmake/deal.II/
I replaced every instance of "hdf5-shared" with "/Users/ecomellas/spack/opt/spack/darwin-ventura-skylake/apple-clang-14.0.0_spack/hdf5-1.10.7-6i6oulsc3hyehgkevx56xykhibxlmbmc/lib/libhdf5.dylib". The files I ended up changing are:
deal.IIConfig.cmake
deal.IIFeatureConfig.cmake
deal.IITargets.cmake
And that's it. I compiled my deal.II codes again from scratch and now it works!
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/nodblNqEjd4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/2aef3f8a-83da-46d2-9482-634e691a4502%40Spark.