[Python-cgns-main] Fwd: Re: PythonCGNS
Status: Alpha
Brought to you by:
boroli
From: Oliver B. <oli...@we...> - 2013-01-22 08:29:09
|
On 01/21/2013 06:50 PM, Oliver Borm wrote: > Hi, > > well I have not yet used the pythonCGNS module with cgns v3.0. So I > can only guess, that the cgns library (so file) is compiled with hdf5 > support but not linked to the hdf5 library itself. Thus there are > missing symbols. So either you link the cgns library itself to the > hdf5 library, or you link the pythonCGNS module library additionally > against the hdf5 library. Therefore you'll need to adapt the setup.py > file. Try to change the following item in line 48 > > libraries=["cgns","hdf5"] > > This is not tested, so maybe the syntax or the library is different. > Please report any success or failure to the mailing list. Hi Thanks for reporting the problem. Are you using RPM based distributions ? If yes, I could provide you with CGNS and python-CGNS rpms if you are interested. We have been using python-CGNS with CGNS 3 without any problem for quite a while. I never took some time to communicate these rpms to the Web... (and CGNS spec file is not included in the python-CGNS sourceforge) but I know I should ! But, as it has been mentioned by Oliver, you have to compile the CGNS library with linking against HDF5. So, if you type "ldd libcgns.so", you should see a dependence against HDF5, like this : >ldd /usr/lib64/cgns/lib/libcgns.so linux-vdso.so.1 => (0x00007fffbeb7c000) libhdf5.so.7 => /usr/lib64/libhdf5.so.7 (0x00007f31cb315000) libc.so.6 => /lib64/libc.so.6 (0x00007f31caf82000) libz.so.1 => /lib64/libz.so.1 (0x00007f31cad6c000) libm.so.6 => /lib64/libm.so.6 (0x00007f31caae7000) /lib64/ld-linux-x86-64.so.2 (0x000000395fe00000) Best regards Lionel > > Thx, > Oliver > > Am 15.01.2013 03:28, schrieb Jorge Sancho Ponce: >> Hello Oliver, >> >> First thank you for leading python-cgns code, which is very useful >> for us to import our meshes into >> Eilmer3(http://www.mech.uq.edu.au/cfcfd/eilmer3.html). >> >> Python-cgnslinked with cgns version 2.5 worked correctly, but now >> with 3.1 and hdf5 give us this error when executing the tutorials: >> >> "ImportError: /usr/local/lib/libcgns.so.3.1: undefined symbol: >> H5T_NATIVE_SCHAR_g" >> >> Seems that cgns library works ok by itself, since runs tests in hdf5 >> format. Sorry for our lack of knowledge, do you know where this error >> may be pointing? >> >> >> thank you very much >> jorge sancho >> postgraduate student >> Centre for hypersonics, UQ > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > > > _______________________________________________ > Python-cgns-main mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-cgns-main |