Menu

#27 'fatal error' during compiling

v1.0_(example)
open
nobody
1
2019-06-09
2019-06-03
No

Dear Dragan

I use Ubuntu 18.04 and have installed DAE Tools as follows:

  1. activate new enviroment with python=3.6 in ubuntu 18.04 manchine.
  2. Install dependencies
    "conda install numpy scipy matplotlib pyqt lxml pandas h5py openpyxl"
    "conda install -c menpo vtk=7"
    "pip install pygraphviz pymetis mayavi"
  3. "~/Downloads/daetools-1.9.0-gnu_linux$ python setup.py install"
  4. "~/Downloads/daetools-1.9.0-gnu_linux$ svn checkout svn://svn.code.sf.net/p/daetools/code daetools"
  5. "~/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk$sh install_dependencies_linux.sh"
  6. "~/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk$sh compile_libraries.sh {boost, boost_static, ref_blas_lapack, etc} => I compiled the libraries, boost, boost_static, ref_blas_lapack, etc, one after another; because, it gives me error when I type "sh compile_libraries.sh all". the last part of error is captured:

[...]
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

DEAL_II_COMPONENT_MESH_CONVERTER
DEAL_II_COMPONENT_PARAMETER_GUI
DEAL_II_C_FLAGS
DEAL_II_WITH_MUMPS

-- Build files have been written to: /home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk/deal.II

[*] Done!

compile_libraries.sh: 584: cd: can't cd to boost

  1. After compiling the libraries one after another, I type in terminal as
    "~/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk$sh compile.sh all", then 'fatal error' occurs, please see the last part messages below:

[...]
make[1]: Entering directory '/home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk/fmi_ws'
rm -f release/dllmain.o release/auxiliary.o release/fmi_component.o release/daetools_fmi_cs.o
rm -f ~ core .core
make[1]: Leaving directory '/home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk/fmi_ws'
make: Leaving directory '/home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk'

[*] Compiling the project...

make: Entering directory '/home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk'
cd Config/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk/Config/Config.pro CONFIG+=release CONFIG+=silent CONFIG+=shellCompile customPython=/usr/bin/python -spec linux-g++ ) && make -f Makefile
make[1]: Entering directory '/home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk/Config'
mkdir -p -p ../daetools-package/daetools/solibs/Linux_x86_64/lib
mkdir -p -p ../daetools-package/daetools/solibs/Linux_x86_64/bin
mkdir -p -p ../daetools-package/daetools/solibs/Linux_x86_64/py27
mkdir -p -p ../daetools-dev/Linux_x86_64/bin
mkdir -p -p ../daetools-dev/include
mkdir -p -p ../daetools-dev/Linux_x86_64/lib
mkdir -p -p ../daetools-dev/Linux_x86_64/py27
compiling config.cpp
compiling dllmain.cpp
compiling stdafx.cpp
config.cpp:17:10: fatal error: boost/property_tree/ptree.hpp: No such file or directory

include <boost property_tree="" ptree.hpp=""></boost>

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
Makefile:367: recipe for target 'release/config.o' failed
make[1]: *** [release/config.o] Error 1
make[1]: Leaving directory '/home/chanbum/Downloads/daetools-1.9.0-gnu_linux/daetools/trunk/Config'
Makefile:58: recipe for target 'sub-Config-make_first-ordered' failed
make: *** [sub-Config-make_first-ordered] Error 2

It seems to me that the script, go to "trunk/Config/" directory and try to compile; yet, the script cannot carry out

include <boost property_tree="" ptree.hpp="">, in config.cpp.</boost>

Should I modify qmake flag?
It would be really great if you can help me to solve this problem.

Best regards
Chanbum

Discussion

  • ciroki

    ciroki - 2019-06-03

    Hi Chanbum,

    There are many changes since 1.9.0, incompatible and unfinished. Just checkout revision 755 and it should be fine.

    Cheers
    Dragan

     
  • Chanbum Park

    Chanbum Park - 2019-06-03

    Thank you for quick response!
    Could you explain about "revision 755"? sorry about my naive question..

    Best regards
    Chanbum

     
  • ciroki

    ciroki - 2019-06-04

    Hi,
    No problem, you're welcome.
    Just use svn checkout -r 755 svn://svn.code.sf.net/p/daetools/code daetools" to get revision 755. This is the version 1.9.0. Or, you can download the zip archive from http://www.daetools.com/downloads.html.

    Cheers
    Dragan

     
  • Anonymous

    Anonymous - 2019-06-06

    Hi Dragan

    Thank you for your comments. However, I couldn't make it again.

    The procedure I did this time as follows:

    1. I got the source code via "svn checkout -r 755 svn://svn.code.sf.net/p/daetools/code daetools" and followed the same precedure as decrived above.

    2. "sh compile_libraries.sh all"

    3. "sh compile.sh all", it gives me error that
      adouble.h:44:10: fatal error: OpenCS/opencs.h: No such file or directory
      #include <opencs opencs.h="">
      ^~~~~~~~~~~~~~~~~
      compilation terminated.</opencs>

    Is OpenCS/opencs.h compulsory?

    Best regards
    Chanbum

     
  • ciroki

    ciroki - 2019-06-08

    Hi Chanbum,

    No problem.
    The compilation requires some headers which are located in OpenCS/build/include directory so compilation of OpenCS is required. Just do the following:

    sh compile_libraries.sh opencs
    

    after sh compile_libraries.sh all.
    This should actually be included in the all option. Thank you for discovering it. I'll add it to the documenation too.

    Cheers
    Dragan

     
  • Anonymous

    Anonymous - 2019-06-09

    Hi Dragan

    Thank you for your comments.

    I have deleted the packages and tried to install again from scrach. I faced error during compiling libraries (especially deal.ii). Here is my precedure as follows:

    1. svn checkout -r 755 svn://svn.code.sf.net/p/daetools/code daetools"
    2. cd daetools/trunk/
    3. sh install_dependencies_linux.sh
    4. sh compile_libraries.sh boost ref_blas_lapack umfpack idas superlu superlu_mt bonmin nlopt coolprop trilinos deal.ii

    Then, it gives me error during compiling dael.ii that:
    [...]
    home/chanbum/daetools/trunk/deal.II/include/deal.II/base/utilities.h:677:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
    ++first;
    ^~
    /home/chanbum/daetools/trunk/deal.II/include/deal.II/base/utilities.h:678:15: note: here
    case 2:
    ^~~~
    /home/chanbum/daetools/trunk/deal.II/include/deal.II/base/utilities.h:681:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
    ++first;
    ^~
    /home/chanbum/daetools/trunk/deal.II/include/deal.II/base/utilities.h:682:15: note: here
    case 1:
    ^~~~
    [ 73%] Built target obj_numerics_release
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2

    The same error occurs, when I compile from daetools-1.9.0-gnu_linux.tar.gz file.

    I thought that I can compile deal.ii previously. I don't know why deal.ii is not compiled..

    Secondly, it says in the "Getting DAE Tools" page,
    "After compilation, the shared libraries will be located in trunk/daetools-package/daetools/solibs directory."

    When I compile individual libraries, for instance compiling boost by typing "sh compiling_libraries.sh boost", I couln't find any files in the directory (After compilation, the shared libraries will be located in trunk/daetools-package/daetools/solibs), only "init.py" and Linux_x86_64 directory.

    Do I miss some intermediate steps to compile the libraries? By the way, when I type "sh compile_libraries.sh ipopt", it says, "Unrecognized solver: ipopt". Is that related?

    Best regards
    Chanbum

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB