Skip to content

TITAN2D make issues #10

@lichen666

Description

@lichen666

Hello All,
I am installing titan2d using Ubuntu 18.04 LTS on Windows 10.I encountered some problems, some of which I have solved, but there are still some problems I can't solve.When i compiled Titan2d using

make -j

it was giving me error which says:

lh@DESKTOP-R0338SE:~/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi$ make -j6
Making all in src
make[1]: Entering directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src'
Making all in header
make[2]: Entering directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/header'
make  all-am
make[3]: Entering directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/header'
make[3]: Leaving directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/header'
make[2]: Leaving directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/header'
Making all in gisapi
make[2]: Entering directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/gisapi'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/gisapi'
Making all in useful
make[2]: Entering directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/useful'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/useful'
Making all in preproc
make[2]: Entering directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/preproc'
mpic++ -DHAVE_CONFIG_H -I. -I../../../../titan2d/src/preproc -I../../src/header   -DUSE_MPI -DMPICH_IGNORE_CXX_SEEK  -I/home/lh/TITAN2D/titan_wsp/hdf5/include -I/usr/include/gdal -I../../../../titan2d/src/preproc/../gisapi -I../../../../titan2d/src/preproc/../useful -std=c++11 -O3 -fopenmp -MT libtitan_preprocess_a-preprocess.o -MD -MP -MF .deps/libtitan_preprocess_a-preprocess.Tpo -c -o libtitan_preprocess_a-preprocess.o `test -f 'preprocess.C' || echo '../../../../titan2d/src/preproc/'`preprocess.C
mpic++ -DHAVE_CONFIG_H -I. -I../../../../titan2d/src/preproc -I../../src/header   -DUSE_MPI -DMPICH_IGNORE_CXX_SEEK  -I/home/lh/TITAN2D/titan_wsp/hdf5/include -I/usr/include/gdal -I../../../../titan2d/src/preproc/../gisapi -I../../../../titan2d/src/preproc/../useful -std=c++11 -O3 -fopenmp -MT libtitan_preprocess_a-createfunky.o -MD -MP -MF .deps/libtitan_preprocess_a-createfunky.Tpo -c -o libtitan_preprocess_a-createfunky.o `test -f 'createfunky.C' || echo '../../../../titan2d/src/preproc/'`createfunky.C
In file included from ../../../../titan2d/src/preproc/../header/hpfem.h:40:0,
                 from ../../../../titan2d/src/preproc/../header/integrators.h:19,
                 from ../../../../titan2d/src/preproc/../header/titan_simulation.h:27,
                 from ../../../../titan2d/src/preproc/preprocess.C:33:
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TiScale::h5write(H5::CommonFG*, std::__cxx11::string) const’:
../../../../titan2d/src/preproc/../header/properties.h:91:33: error: ‘class H5::CommonFG’ has no member named ‘createGroup’
         H5::Group group(parent->createGroup(group_name));
                                 ^
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TiScale::h5read(const H5::CommonFG*, std::__cxx11::string)’:
../../../../titan2d/src/preproc/../header/properties.h:103:33: error: ‘const class H5::CommonFG’ has no member named  ‘openGroup’
         H5::Group group(parent->openGroup(group_name));
                                 ^
In file included from ../../../../titan2d/src/preproc/../header/hpfem.h:40:0,
                 from ../../../../titan2d/src/preproc/../header/integrators.h:19,
                 from ../../../../titan2d/src/preproc/../header/titan_simulation.h:27,
                 from ../../../../titan2d/src/preproc/preproc.h:28,
                 from ../../../../titan2d/src/preproc/createfunky.C:33:
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TiScale::h5write(H5::CommonFG*, std::__cxx11::string) const’:
../../../../titan2d/src/preproc/../header/properties.h:91:33: error: ‘class H5::CommonFG’ has no member named ‘createGroup’
         H5::Group group(parent->createGroup(group_name));
                                 ^
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TiScale::h5read(const H5::CommonFG*, std::__cxx11::string)’:
../../../../titan2d/src/preproc/../header/properties.h:103:33: error: ‘const class H5::CommonFG’ has no member named  ‘openGroup’
         H5::Group group(parent->openGroup(group_name));
                                 ^
In file included from ../../../../titan2d/src/preproc/../header/hpfem.h:40:0,
                 from ../../../../titan2d/src/preproc/../header/integrators.h:19,
                 from ../../../../titan2d/src/preproc/../header/titan_simulation.h:27,
                 from ../../../../titan2d/src/preproc/preprocess.C:33:
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TimeProps::h5write(H5::CommonFG*, std::__cxx11::string) const’:
../../../../titan2d/src/preproc/../header/properties.h:584:33: error: ‘class H5::CommonFG’ has no member named ‘createGroup’
         H5::Group group(parent->createGroup(group_name));
                                 ^
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TimeProps::h5read(const H5::CommonFG*, std::__cxx11::string)’:
../../../../titan2d/src/preproc/../header/properties.h:606:33: error: ‘const class H5::CommonFG’ has no member named  ‘openGroup’
         H5::Group group(parent->openGroup(group_name));
                                 ^
In file included from ../../../../titan2d/src/preproc/../header/hpfem.h:40:0,
                 from ../../../../titan2d/src/preproc/../header/integrators.h:19,
                 from ../../../../titan2d/src/preproc/../header/titan_simulation.h:27,
                 from ../../../../titan2d/src/preproc/preproc.h:28,
                 from ../../../../titan2d/src/preproc/createfunky.C:33:
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TimeProps::h5write(H5::CommonFG*, std::__cxx11::string) const’:
../../../../titan2d/src/preproc/../header/properties.h:584:33: error: ‘class H5::CommonFG’ has no member named ‘createGroup’
         H5::Group group(parent->createGroup(group_name));
                                 ^
../../../../titan2d/src/preproc/../header/properties.h: In member function ‘void TimeProps::h5read(const H5::CommonFG*, std::__cxx11::string)’:
../../../../titan2d/src/preproc/../header/properties.h:606:33: error: ‘const class H5::CommonFG’ has no member named  ‘openGroup’
         H5::Group group(parent->openGroup(group_name));
                                 ^
../../../../titan2d/src/preproc/preprocess.C: In function ‘void Write_data(int, int, int, int, int, NodePreproc*, ElementPreproc**, BoundaryPreproc*, unsigned int*, unsigned int*, double*, double*, char**, double*, double*)’:
../../../../titan2d/src/preproc/preprocess.C:652:43: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
         FILE *fp = fopen_bin(filename, "w");
                                           ^
Makefile:493: recipe for target 'libtitan_preprocess_a-createfunky.o' failed
make[2]: *** [libtitan_preprocess_a-createfunky.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:465: recipe for target 'libtitan_preprocess_a-preprocess.o' failed
make[2]: *** [libtitan_preprocess_a-preprocess.o] Error 1
make[2]: Leaving directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src/preproc'
Makefile:356: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lh/TITAN2D/titan_wsp/titan2d_bld/iccoptompmpi/src'
Makefile:382: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

By the way,I found some error in the tutorial

../../titan2d/configure --prefix=`pwd` --with-gdal=$TITAN_GDAL --with-hdf5=$TITAN_HDF5 \
--with-swig=$TITAN_SWIG PYTHON=$TITAN_PYTHON/bin/python2.7\
--enable-mpi --enable-openmp CXX=mpic++ CXXFLAGS=-O3 --disable-java-gui

We need to add a space after python 2.7

../../titan2d/configure --prefix=`pwd` --with-gdal=$TITAN_GDAL --with-hdf5=$TITAN_HDF5 \
--with-swig=$TITAN_SWIG PYTHON=$TITAN_PYTHON/bin/python2.7 \
--enable-mpi --enable-openmp CXX=mpic++ CXXFLAGS=-O3 --disable-java-gui

Otherwise, an error will be reported #9

error: Python interpreter is too old

And we need to rename README.md to README
Otherwise,when we input

aclocal;autoheader;autoconf;automake --add-missing --copy

it would report an error

lh@DESKTOP-R0338SE:~/TITAN2D/titan_wsp/titan2d$ aclocal;autoheader;autoconf;automake --add-missing --copy
Makefile.am: error: required file './README' not found
/usr/share/automake-1.15/am/java.am: warning: JAVAROOT was already defined in condition ENABLE_JAVA_GUI, which is included in condition TRUE ...
gui/Makefile.am:16:   while processing 'dist_noinst_JAVA'
gui/Makefile.am:14: ... 'JAVAROOT' previously defined here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions