Hi, bleyerj. after runing cmake -Denable-python-bindings=ON
and cmake -Denable-fenics-bindings=ON
in step4. Pycharm can not still identify mgis.
when installing this package, the terminal windows return the following details (just parts and sorry for uploading so many, i really do not know what mistakes happen.
step3: type cmake .
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ cmake .
– found python 3.6.9
– python include path /usr/include/python3.6m
– python libraries path /usr/lib/x86_64-linux-gnu
– python library python3.6m
– python interpreter /usr/bin/python3.6
– Trying to find libboost_python-py36
– Could NOT find Boost: missing: python-py36 (found /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version “1.72.0”, minimum required is “1.36.0”))
– Trying to find libboost_python36
– Boost library python found (Boost::python).
– python bindings support enabled
– enabling flag ‘Wno-conversion’
– enabling flag ‘Wall’
…
– enabling flag ‘fno-fast-math’
– enabling flag ‘ffast-math’
unknown option --python-version
Valid options are:
–all : request flags for all librairies.
–compiler-flags : return tfel recommended compiler flags.
–cppflags : return preprocessor flags.
–cxx-standard : print the version of the C++ standard used to compile TFEL.
–exceptions : request flags for TFELException.
–glossary : request flags for TFELGlossary.
–help : print this help message.
–include-path : return the path to the TFEL
headers.
–includes : return tfel include path.
–ldflags : return linking flags.
–library-dependency: return the dependencies of a TFEL
library.
–library-path : return the path to the TFEL
library.
–libs : return linking flags.
–licence : print tfel licences.
–major-number : print tfel major version.
–material : request flags for TFELMaterial.
–math : request flags for TFELMath.
–math-cubic-spline: request flags for TFELMathCubicSpline.
–math-kriging : request flags for TFELMathKriging.
–math-parser : request flags for TFELMathParser.
–mfront-profiling: request flags for libMFrontProfiling.
–minor-number : print tfel minor version.
–numodis : request flags for TFELNUMODIS.
–oflags : return tfel recommended optimisation flags with architecture specific flags.
–oflags0 : return tfel recommended optimisation flags without architecture specific flags.
–oflags2 : return some aggressive optimisation flags, possibly at the expense of numerical precision. This shall be added to --oflags
results.
–physical-constants: request flags for TFELPhysicalConstants.
–revision-number : print tfel revision version.
–system : request flags for TFELSystem.
–tests : request flags for TFELTests.
–unicode-support : request flags for TFELUnicodeSupport.
–utilities : request flags for TFELUtilities.
–version : print tfel version and svn revision.
–warning : return tfel recommended warnings.
– no tfel python bindings
– tfel version : 3.3.0
– tfel C++ standard : 11
– mfront : /usr/local/bin/mfront
– tfel-config : /usr/local/bin/tfel-config
– tfel-check : /usr/local/bin/tfel-check
– tfel include : /usr/local/include
– tfel libs : /usr/local/lib
– TFELTests : /usr/local/lib/libTFELTests.so
– TFELTests : /usr/local/lib/libTFELTests.so
– TFELException : /usr/local/lib/libTFELException.so
– TFELUtilities : /usr/local/lib/libTFELUtilities.so
– TFELMath : /usr/local/lib/libTFELMath.so
– TFELMaterial : /usr/local/lib/libTFELMaterial.so
– TFELPhysicalConstants : /usr/local/lib/libTFELPhysicalConstants.so
– doxygen documentation is not enabled
– Enabling generation of documentation based on jupyter-nbconvert
– jupyter-nbconvert: /home/zhiyi/.local/bin/jupyter-nbconvert
– Adding library : BehaviourTest (src/StandardElastoViscoPlasticityPlasticityTest11.cxx;src/StandardElastoViscoPlasticityPlasticityTest11-generic.cxx;src/FiniteStrainSingleCrystal.cxx;src/FiniteStrainSingleCrystal-generic.cxx;src/ParameterTest.cxx;src/ParameterTest-generic.cxx;src/BoundsCheckTest.cxx;src/BoundsCheckTest-generic.cxx;src/Gurson.cxx;src/Gurson-generic.cxx;src/Plasticity.cxx;src/Plasticity-generic.cxx;src/Norton.cxx;src/Norton-generic.cxx;src/Elasticity.cxx;src/Elasticity-generic.cxx)
– Configuring done
– Generating done
– Build files have been written to: /mnt/c/MFrontGenericInterfaceSupport-master
step4: type cmake -DPython_ADDITIONAL_VERSIONS=3.6
and cmake -Denable-python-bindings=ON
and cmake -Denable-fenics-bindings=ON
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ cmake -DPython_ADDITIONAL_VERSIONS=3.6
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
– found python 3.6.9
– python include path /usr/include/python3.6m
– python libraries path /usr/lib/x86_64-linux-gnu
– python library python3.6m
– python interpreter /usr/bin/python3.6
– Trying to find libboost_python-py36
– Could NOT find Boost: missing: python-py36 (found /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version “1.72.0”, minimum required is “1.36.0”))
– Trying to find libboost_python36
– Boost library python found (Boost::python).
– python bindings support enabled
– enabling flag ‘Wno-conversion’
– enabling flag ‘Wall’
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ cmake -Denable-python-bindings=ON
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
– found python 3.6.9
– python include path /usr/include/python3.6m
– python libraries path /usr/lib/x86_64-linux-gnu
– python library python3.6m
– python interpreter /usr/bin/python3.6
– Trying to find libboost_python-py36
– Could NOT find Boost: missing: python-py36 (found /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version “1.72.0”, minimum required is “1.36.0”))
– Trying to find libboost_python36
– Boost library python found (Boost::python).
– python bindings support enabled
– enabling flag ‘Wno-conversion’
– enabling flag ‘Wall’
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ cmake -Denable-fenics-bindings=ON
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
– found python 3.6.9
– python include path /usr/include/python3.6m
– python libraries path /usr/lib/x86_64-linux-gnu
– python library python3.6m
– python interpreter /usr/bin/python3.6
– Trying to find libboost_python-py36
– Could NOT find Boost: missing: python-py36 (found /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version “1.72.0”, minimum required is “1.36.0”))
– Trying to find libboost_python36
– Boost library python found (Boost::python).
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Checking for one of the modules ‘craypetsc_real;PETSc’
– Looking for sys/types.h
– Looking for sys/types.h - found
– Looking for stdint.h
– Looking for stdint.h - found
– Looking for stddef.h
– Looking for stddef.h - found
– Check size of PetscInt
– Check size of PetscInt - done
– Checking for one of the modules ‘crayslepc_real;SLEPc’
– python bindings support enabled
– FEniCS bindings support enabled
– enabling flag ‘Wno-conversion’
– enabling flag ‘Wall’
step5:type make
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ make
[ 2%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/ThreadPool.cxx.o
[ 5%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/ThreadedTaskResult.cxx.o
[ 8%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/LibrariesManager.cxx.o
[ 10%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/Markdown.cxx.o
/mnt/c/MFrontGenericInterfaceSupport-master/src/Markdown.cxx: In function ‘std::__cxx11::string mgis::utilities::get_heading_signs(mgis::size_type)’:
/mnt/c/MFrontGenericInterfaceSupport-master/src/Markdown.cxx:21:57: warning: unused parameter ‘l’ [-Wunused-parameter]
std::string get_heading_signs(const mgis::size_type l) {
^
[ 13%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/MatrixView.cxx.o
[ 16%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/Variable.cxx.o
[ 18%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/Hypothesis.cxx.o
[ 21%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/Behaviour.cxx.o
/mnt/c/MFrontGenericInterfaceSupport-master/src/Behaviour.cxx: In lambda function:
/mnt/c/MFrontGenericInterfaceSupport-master/src/Behaviour.cxx:190:7: warning: control reaches end of non-void function [-Wreturn-type]
}();
^
/mnt/c/MFrontGenericInterfaceSupport-master/src/Behaviour.cxx: In lambda function:
/mnt/c/MFrontGenericInterfaceSupport-master/src/Behaviour.cxx:222:7: warning: control reaches end of non-void function [-Wreturn-type]
}();
^
[ 24%] Building CXX object src/CMakeFiles/MFrontGenericInterface.dir/ChangeBasis.cxx.o
…
[ 75%] Linking CXX shared module behaviour.so
[ 75%] Built target py_mgis_behaviour
[ 78%] Building CXX object bindings/python/src/CMakeFiles/py_mgis.dir/mgis-module.cxx.o
[ 81%] Building CXX object bindings/python/src/CMakeFiles/py_mgis.dir/ThreadPool.cxx.o
[ 81%] Linking CXX shared module _mgis.so
[ 81%] Built target py_mgis
Scanning dependencies of target MFrontGenericInterface-FEniCS
[ 83%] Building CXX object bindings/fenics/src/CMakeFiles/MFrontGenericInterface-FEniCS.dir/Utils.cxx.o
[ 86%] Building CXX object bindings/fenics/src/CMakeFiles/MFrontGenericInterface-FEniCS.dir/NonLinearMaterial.cxx.o
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
/usr/include/eigen3/Eigen/src/Core/Matrix.h:178:7: required from ‘class Eigen::Matrix<double, -1, 1>’
/usr/include/dolfin/function/GenericFunction.h:82:49: required from here
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
[100%] Linking CXX shared library libMFrontGenericInterface-FEniCS.so
[100%] Built target MFrontGenericInterface-FEniCS
step6: make check
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ make check
[ 0%] Generating MGISSmallStrainFormulation3D.cpp, MGISSmallStrainFormulation3D.h
[ 1%] Generating MGISSmallStrainFormulation2D.cpp, MGISSmallStrainFormulation2D.h
Scanning dependencies of target MFrontGenericInterfaceFEniCSTestingUtilities
[ 2%] Building CXX object bindings/fenics/tests/src/CMakeFiles/MFrontGenericInterfaceFEniCSTestingUtilities.dir/FEniCSTestingUtilities.cxx.o
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
cc1plus: warning: this condition has identical branches [-Wduplicated-branches]
step7: sudo make install
zhiyi@DESKTOP-9ME6CPV:/mnt/c/MFrontGenericInterfaceSupport-master$ sudo make install
[ 40%] Built target MFrontGenericInterface
[ 75%] Built target py_mgis_behaviour
[ 81%] Built target py_mgis
[100%] Built target MFrontGenericInterface-FEniCS
Install the project…
– Install configuration: “”
– Up-to-date: /usr/local/share/doc/mgis/web/css
– Up-to-date: /usr/local/share/doc/mgis/web/css/main.css
– Up-to-date: /usr/local/share/doc/mgis/web/css/normalize.css
– Up-to-date: /usr/local/share/doc/mgis/web/css/slideshow.css
– Up-to-date: /usr/local/share/doc/mgis/web/img
– Up-to-date: /usr/local/share/doc/mgis/web/img/finite_strain_plasticity_solution.png
– Up-to-date: /usr/local/share/doc/mgis/web/img/fuel_rod_solution.png
– Up-to-date: /usr/local/share/doc/mgis/web/img/multiphase_kinematics.svg
– Up-to-date: /usr/local/share/doc/mgis/web/img/phase_change_law.svg
– Up-to-date: /usr/local/share/doc/mgis/web/img/solidification_front.gif
– Up-to-date: /usr/local/share/doc/mgis/web/img/Temperature_Castem_FEniCS.png
– Up-to-date: /usr/local/include/MGIS/Config-c.h
– Up-to-date: /usr/local/include/MGIS/Config.hxx
– Up-to-date: /usr/local/include/MGIS/Cste.hxx
– Up-to-date: /usr/local/include/MGIS/MatrixView.hxx
– Up-to-date: /usr/local/include/MGIS/MatrixView.ixx
– Up-to-date: /usr/local/include/MGIS/Raise.ixx
– Up-to-date: /usr/local/include/MGIS/Raise.hxx
– Up-to-date: /usr/local/include/MGIS/Span.hxx
– Up-to-date: /usr/local/include/MGIS/StringView.hxx
– Up-to-date: /usr/local/include/MGIS/StringView.ixx
– Up-to-date: /usr/local/include/MGIS/Variant.hxx
– Up-to-date: /usr/local/include/MGIS/ThreadPool.hxx
– Up-to-date: /usr/local/include/MGIS/ThreadPool.ixx
– Up-to-date: /usr/local/include/MGIS/ThreadedTaskResult.hxx
– Up-to-date: /usr/local/include/MGIS/ThreadedTaskResult.ixx
– Up-to-date: /usr/local/include/MGIS/Utilities/Markdown.hxx
– Up-to-date: /usr/local/include/MGIS/LibrariesManager.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/Hypothesis.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/Variable.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/BehaviourFctPtr.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/Behaviour.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/ChangeBasis.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/StateView.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/StateView.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/BehaviourData.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/BehaviourDataView.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/State.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/MaterialStateManager.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/MaterialDataManager.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/Integrate.hxx
– Up-to-date: /usr/local/include/MGIS/Behaviour/Integrate.ixx
– Installing: /usr/local/lib/libMFrontGenericInterface.so
– Up-to-date: /usr/local/share/mgis/cmake/MFrontGenericInterfaceConfig.cmake
– Installing: /usr/local/share/mgis/cmake/MFrontGenericInterfaceConfig-noconfig.cmake
– Installing: /usr/local/lib/python3.6/site-packages/mgis/_mgis.so
– Set runtime path of “/usr/local/lib/python3.6/site-packages/mgis/_mgis.so” to “”
– Installing: /usr/local/lib/python3.6/site-packages/mgis/behaviour.so
– Set runtime path of “/usr/local/lib/python3.6/site-packages/mgis/behaviour.so” to “”
– Up-to-date: /usr/local/lib/python3.6/site-packages/mgis/init.py
– Up-to-date: /usr/local/lib/python3.6/site-packages/mgis/fenics/init.py
– Up-to-date: /usr/local/lib/python3.6/site-packages/mgis/fenics/gradient_flux.py
– Up-to-date: /usr/local/lib/python3.6/site-packages/mgis/fenics/utils.py
– Up-to-date: /usr/local/lib/python3.6/site-packages/mgis/fenics/nonlinear_material.py
– Up-to-date: /usr/local/lib/python3.6/site-packages/mgis/fenics/nonlinear_problem.py