FRENSIE installing and compiling error

  • Thread starter Thread starter emilmammadzada
  • Start date Start date
  • Tags Tags
    Error
AI Thread Summary
The user encountered errors while trying to compile the FRENSIE code, specifically related to running CMake directly instead of using the provided frensie.sh script. The initial error indicated issues with Boost support configuration, and subsequent attempts to run frensie.sh resulted in warnings about missing source directories and an error preventing installation in the source directory. The discussion highlighted the need to correctly set various path variables in the frensie.sh script, including those for HDF5, MOAB, and Boost. Users were advised to follow the build instructions carefully to avoid these errors. Proper configuration of the script is essential for successful compilation.
emilmammadzada
Messages
129
Reaction score
19
TL;DR Summary
FRENSIE installing and compiling error
When i want compiling to Frensie code , app gave me this error
emil@DESKTOP-:~/FRENSIE-pub/build$ cmake ..
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- The Fortran compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP_Fortran: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "4.0.0")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.18", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.7")
-- Found NumPy: version "1.16.6" /home/emil/.local/lib/python2.7/site-packages/numpy/core/include
-- Found Boost: /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.72.0") found components: test_exec_monitor
CMake Error at cmake/EnableBoostSupport.cmake:25 (IF):
if given arguments:

"EQUAL" "RELEASE"

Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:170 (ENABLE_BOOST_SUPPORT)-- Configuring incomplete, errors occurred!
See also "/home/emil/FRENSIE-pub/build/CMakeFiles/CMakeOutput.log".
 
Engineering news on Phys.org
You are not supposed to run cmake yourself!, you are supposed to copy and run the script frensie.sh to configure. That runs cmake. It's in the folder scripts, but follow the build instructions.
 
  • Like
Likes emilmammadzada
Alex A said:
You are not supposed to run cmake yourself!, you are supposed to copy and run the script frensie.sh to configure. That runs cmake. It's in the folder scripts, but follow the build instructions.
I did the same, it gave an error
emil@DESKTOP-:~/FRENSIE-pub/build$ l
frensie.sh*
emil@DESKTOP-:~/FRENSIE-pub/build$ ./frensie.sh
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
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.CMake Error: The source directory "/home/emil/FRENSIE-pub/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
 
Did you do build instruction 5,
"change the variables in the script to reflect the desired system paths (if the basic build instructions where use for a package the PACKAGE_PREFIX variable can be left blank in the script)."
 
  • Like
Likes emilmammadzada
Alex A said:
Did you do build instruction 5,
"change the variables in the script to reflect the desired system paths (if the basic build instructions where use for a package the PACKAGE_PREFIX variable can be left blank in the script)."
How should I change the variables in that file? Is it in the CmakeList.txt file?
 

Attachments

Edit this section in the script,
Code:
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=
DOXYGEN_PREFIX_PATH=
FRENSIE_SRC=
FRENSIE_INSTALL=
XSDIR_PATH=

Not everything is required.
 
  • Like
Likes emilmammadzada
Alex A said:
Edit this section in the script,
Code:
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=
DOXYGEN_PREFIX_PATH=
FRENSIE_SRC=
FRENSIE_INSTALL=
XSDIR_PATH=

Not everything is required.
I have added the fensie.sh.App give me this error
[emil@DESKTOP-:~/FRENSIE-pub/build$ ./frensie.sh
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMake Error at cmake/EnforceOutOfSourceBuild.cmake:20 (MESSAGE):
This project cannot be installed in the source directory.
Call Stack (most recent call first):
CMakeLists.txt:32 (ENFORCE_OUT_OF_SOURCE_BUILD)-- Configuring incomplete, errors occurred!
See also "/home/emil/FRENSIE-pub/build/CMakeFiles/CMakeOutput.log".]
[
EXTRA_ARGS=$@
HDF5_PREFIX_PATH=
MOAB_PREFIX_PATH=
DAGMC_PREFIX_PATH=
BOOST_PREFIX_PATH=/usr/include/boost
MPI_PREFIX_PATH=
ROOT_PREFIX_PATH=
SWIG_PREFIX_PATH=/usr/bin/swig
DOXYGEN_PREFIX_PATH=/usr/bin/doxygen
FRENSIE_SRC=/home/emil/FRENSIE-pub/build
FRENSIE_INSTALL=/home/emil/FRENSIE-pub
XSDIR_PATH=/home/emil/FRENSIE-pub/packages/data/xsdir]
 
Last edited:
Back
Top