Sorry, I missed this line in the guide. But I still cannot get the right libcgns.so
I used the following command: cd git clone https://github.com/CGNS/CGNS.git git checkout e0faea6 cd CGNS/src export FC=mpifort export CC=mpicc ./configure \ --prefix=/opt/cgns \ --with-hdf5=/opt/hdf5 \ # hdf5_1_8_18 installed here --enable-lfs \ --enable-64bit \ --enable-shared \ --enable-parallel \ --enable-gcc \ --with-mpi and here is part of the make output: [root@localhost src]# make mkdir lib mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -o lib/cgns_error.o -c c gns_error.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -I/opt/hdf5/include -o l ib/cgns_internals.o -c cgns_internals.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -o lib/cgns_io.o -c cgns _io.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -I/opt/hdf5/include -I/u sr/include -o lib/cgnslib.o -c cgnslib.c mpifort -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -o lib/cgns_f.o -c cgns_f. F90 mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -Iadfh -I/opt/hdf5/inclu de -I/usr/include -o lib/ADFH.o -c adfh/ADFH.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -I/opt/hdf5/include -I/u sr/include -o lib/pcgnslib.o -c pcgnslib.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -Iadf -o lib/ADF_interfa ce.o -c adf/ADF_interface.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -Iadf -o lib/ADF_interna ls.o -c adf/ADF_internals.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -I/opt/hdf5/include -DLO WERCASE_ -o lib/cg_ftoc.o -c cg_ftoc.c mpicc -g -O2 -fPIC -I. -DBUILD_HDF5 -DBUILD_PARALLEL -I/opt/hdf5/include -DLO WERCASE_ -o lib/cgio_ftoc.o -c cgio_ftoc.c mpicc -shared -Wl,-rpath,/opt/cgns/lib:/root/CGNS/src/lib -o lib/libcgns.so lib /cgns_error.o lib/cgns_internals.o lib/cgns_io.o lib/cgnslib.o lib/ cgns_f.o lib/ ADFH.o lib/pcgnslib.o lib/ADF_interface.o lib/ ADF_internals.o lib/cg_ftoc.o lib/ cgio_ftoc.o strip lib/libcgns.so cd tools && make ... However, linking to libhdf5.so is still missing: [root@localhost src]# ldd ./lib/libcgns.so linux-vdso.so.1 => (0x00007ffffb76c000) libmpi.so.20 => /usr/lib64/libmpi.so.20 (0x00007fc0bcf07000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc0bcce5000) libc.so.6 => /lib64/libc.so.6 (0x00007fc0bc951000) libopen-rte.so.20 => /usr/lib64/libopen-rte.so.20 ( 0x00007fc0bc6d0000) libopen-pal.so.20 => /usr/lib64/libopen-pal.so.20 ( 0x00007fc0bc3e5000) librt.so.1 => /lib64/librt.so.1 (0x00007fc0bc1dd000) libm.so.6 => /lib64/libm.so.6 (0x00007fc0bbf59000) libutil.so.1 => /lib64/libutil.so.1 (0x00007fc0bbd55000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc0bbb51000) /lib64/ld-linux-x86-64.so.2 (0x00007fc0bd4b5000) as Abe's reply <https://groups.google.com/d/msg/pyfrmailinglist/qp5r3nlsONQ/EerLEgH1EQAJ> suggested, I have tried to use cmake and ccmake. It is not working because of missing HDF5_DIR which is required to find hdf5-config.cmake. (I have updated cmake/ccmake in CentOS 6 to latest) On Friday, January 13, 2017 at 11:46:30 AM UTC+8, Freddie Witherden wrote: > > On 12/01/2017 06:24, CatDog wrote: > > I am running into some confusions about the CGNS lib. > > The CGNS 3.3.0 is too much newer than my CentOS 6. So I have to compile > > it with hdf5 (and szip, I am not sure if it is necessary). However, > > after that, when I tried to import CGNS grid. > > As per the user guide you need CGNS >= 3.3 (develop branch post commit > e0faea6). Please ensure that the version you are compiling is indeed > post commit e0faea6. > > Regards, Freddie. > > > -- You received this message because you are subscribed to the Google Groups "PyFR Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. Visit this group at https://groups.google.com/group/pyfrmailinglist. For more options, visit https://groups.google.com/d/optout.
