After some trial and error, I found that the
libemos-targets-release.cmake file caused metview
to link against libemosR64.a. I had a successful build by changing the
".a" references to ".so".
See attached file.
I still don't know what the actual problem is. Is the
libemos-targets-release.cmake file wrong
or is the metview build mechanism wrong?
Dave
--
John David Anglin [email protected]
--- /usr/lib/hppa-linux-gnu/cmake/libemos/libemos-targets-release.cmake.save
2018-10-28 20:39:11.545560417 -0400
+++ /usr/lib/hppa-linux-gnu/cmake/libemos/libemos-targets-release.cmake
2018-10-28 20:41:53.776720802 -0400
@@ -262,22 +262,22 @@
set_target_properties(emos_sp PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C;Fortran"
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
"eccodes;eccodes_f90;/usr/lib/hppa-linux-gnu/libpng.so;/usr/lib/hppa-linux-gnu/libz.so;/usr/lib/hppa-linux-gnu/libaec.so;/usr/lib/hppa-linux-gnu/libm.so;/usr/lib/hppa-linux-gnu/libopenjp2.so;/usr/lib/hppa-linux-gnu/libfftw3.so"
- IMPORTED_LOCATION_RELEASE "/usr/lib/hppa-linux-gnu/libemos.a"
+ IMPORTED_LOCATION_RELEASE "/usr/lib/hppa-linux-gnu/libemos.so"
)
list(APPEND _IMPORT_CHECK_TARGETS emos_sp )
-list(APPEND _IMPORT_CHECK_FILES_FOR_emos_sp
"/usr/lib/hppa-linux-gnu/libemos.a" )
+list(APPEND _IMPORT_CHECK_FILES_FOR_emos_sp
"/usr/lib/hppa-linux-gnu/libemos.so" )
# Import target "emos" for configuration "Release"
set_property(TARGET emos APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(emos PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C;Fortran"
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
"eccodes;eccodes_f90;/usr/lib/hppa-linux-gnu/libpng.so;/usr/lib/hppa-linux-gnu/libz.so;/usr/lib/hppa-linux-gnu/libaec.so;/usr/lib/hppa-linux-gnu/libm.so;/usr/lib/hppa-linux-gnu/libopenjp2.so;/usr/lib/hppa-linux-gnu/libfftw3.so"
- IMPORTED_LOCATION_RELEASE "/usr/lib/hppa-linux-gnu/libemosR64.a"
+ IMPORTED_LOCATION_RELEASE "/usr/lib/hppa-linux-gnu/libemosR64.so"
)
list(APPEND _IMPORT_CHECK_TARGETS emos )
-list(APPEND _IMPORT_CHECK_FILES_FOR_emos
"/usr/lib/hppa-linux-gnu/libemosR64.a" )
+list(APPEND _IMPORT_CHECK_FILES_FOR_emos
"/usr/lib/hppa-linux-gnu/libemosR64.so" )
# Import target "emos_sp_shared" for configuration "Release"
set_property(TARGET emos_sp_shared APPEND PROPERTY IMPORTED_CONFIGURATIONS
RELEASE)