[MBDyn-users] compiling MBDyn-1.4.3 with NetCDF-4.2

Rix, Patrick Patrick.Rix at repower.de
Tue Aug 28 15:15:25 CEST 2012


Hi Pierangelo,

Trying to re-compile  MBDyn-1.4.3  after having updated my Cygwin installation to 1.7.16-1  I found some problem in the configure script with the NetCDF library not being recongnized any more. The reason was, that with the update a newer version of NetCDF (4.2.1-1) was installed [along with the required HDF5-1.8.9-1] and with NetCDF-4.2 there is no longer a  'netcdfcpp.h'  header file present for which MBDyn's configure script is testing.
It seems that with NetCDF-4.2 all the declarations and definitions for the C++ NetCDF interface were moved into the  'netcdf.h'  header file.

The solution / work-around was simply to copy  'netcdf.h'  into  'netcdfcpp.h'  in my  /usr/include/  such that configure finds again the expected header file and to correct the name of the new NetCDF-4.2 C++ library being looked for which is  'libnetcdf_c++4.dll.a'  on my Cygwin system (instead of 'libnetcdf_c++.dll.a' before).  To achieve this I changed in configure the line

try_NETCDF_LIBS="-lnetcdf_c++ -lnetcdf"

  to

try_NETCDF_LIBS="-lnetcdf_c++4 -lnetcdf"

Then configure successfully passed the test and correctly recognized and linked in the NetCDF library again.
I'm not sure how the situation looks like on Linux but I assume it applies similarly.

Best regards,
Patrick.

________________________________
Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte umgehend den Absender und l?schen Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe der in dieser E-Mail enthaltenen Daten ist nicht gestattet. Wie Sie wissen, kann die Sicherheit von ?bermittlungen per E-Mail nicht gew?hrleistet werden, E-Mails k?nnen missbr?uchlich unter fremdem Namen erstellt oder ver?ndert werden. Aus diesem Grund bitten wir um Verst?ndnis daf?r, dass wir zu Ihrem und unserem Schutz die rechtliche Verbindlichkeit der vorstehenden Erkl?rungen ausschlie?en m?ssen. Diese Regelung gilt nur dann nicht, wenn wir mit Ihnen eine anderweitige schriftliche Vereinbarung ?ber die Einhaltung von Sicherheits- und Verschl?sselungsstandards getroffen haben.

This e-mail contains confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. As you know, the security of e-mail transmissions can not be guaranteed. E-mails can be misused to be written or modified under false names. For that reason, we ask you to understand the necessity for us to rule out the legal obligation of the above statement, for your protection and ours. This regulation is only invalid if we have concluded a special written agreement with you about the compliance with security and encryption standards.

REpower Systems SE * Sitz: Hamburg * Vorstand: Andreas Nauen (Vorsitz), Matthias Schubert, Marcus A. Wassenberg, Vinod R. Tanti * Aufsichtsratsvorsitzender: Tulsi Tanti * Registergericht: AG Hamburg (Mitte) HRB Nr.: 118644
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20120828/35f3e285/attachment.html>


More information about the MBDyn-users mailing list