[MBDyn-users] [private] Re: compiling MBDyn-1.4.3 with NetCDF-4.2

Rix, Patrick Patrick.Rix at repower.de
Wed Aug 29 13:03:46 CEST 2012


Pierangelo,

thank you for your exhaustive answers to my many questions !

..configure now correctly detects & passes the NetCDF-test for NetCDF-4.2 (as long as the 'netcdf.h' file was copied into 'netcdfcpp.h' before) !


NetCDF Version 4.2 is available at <http://www.unidata.ucar.edu/downloads/netcdf>

The netCDF C library and utilities, version 4.2.1.1 :
<http://www.unidata.ucar.edu/downloads/netcdf/netcdf-4_2_1_1>

The netCDF legacy and netCDF-4 C++ libraries :
<http://www.unidata.ucar.edu/downloads/netcdf/netcdf-cxx>


Best regards,
Patrick.


-----Ursprüngliche Nachricht-----
Von: Pierangelo Masarati [mailto:masarati at aero.polimi.it]
Gesendet: Dienstag, 28. August 2012 17:32
An: Rix, Patrick
Betreff: [private] Re: [MBDyn-users] compiling MBDyn-1.4.3 with NetCDF-4.2

Patrick,

I don't have that version of NetCDF, so I blindly fixed the problem in
configure according to your instructions.  It's now in the MBDyn 1.5.0
ready for release,

<https://www.aero.polimi.it/masarati/Download/mbdyn/mbdyn-1.5.0.tar.gz>

Maybe you could check yourself?  All you need to do is unpack, run
configure and see if NetCDF is correctly detected.

Thanks, p.

On 08/28/2012 03:15 PM, Rix, Patrick wrote:
> 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.



--
Pierangelo Masarati
Associate Professor
Dipartimento di Ingegneria Aerospaziale
Politecnico di Milano

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


More information about the MBDyn-users mailing list