Personal tools
You are here: Home Forum How to use Salome? Question about tutorial

Question about tutorial

Up to How to use Salome?

Question about tutorial

Posted by Pavel Vashchenkov at December 26. 2016

Hi.

I'm trying to go step by step by tutorial (building of ATOMIC module).

Version of Salome: 7.8.0, Universal binaries for Linux, installed in /usr/local/Salome-7.8.0/

1. I guess, there is an error in tutorial:

on page 8 there is a line:

cmake –DCMAKE_BUILD_TYPE=<Mode> -DCMAKE_INSTALL_PREFIX=${ATOMIC_ROOT_DIR} ../${ATOMIC_SRC_DIR}

"../" has to be removed in the last argument.

 

2. After commands cmake && make I get the message:

make[2]: *** No rule to make target '/scratch/palmco/salome/prerequisites/build/Paraview-v501_EDFEDFp1-py2710-hd1814-gr2380-dox1831-xml2290-qt484-cm302-gl2ps138/lib/libvtkRenderingLOD-pv5.0.so.1', needed by 'src/ATOMICGUI/libATOMIC.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:158: src/ATOMICGUI/CMakeFiles/ATOMIC.dir/all] Error 2

I can't understand where cmake gets so strange path: /scratch/palmco/salome/prerequisites/build/Paraview-v501_EDFEDFp1-py2710-hd1814-gr2380-dox1831-xml2290-qt484-cm302-gl2ps138/lib/

If I delete all appearances with "/scratch/palmco/" from files where it is, everything is make'ing and installing successfully. But it's annoying to remove these lines every time. Could you explain what to do to cmake works correct?

They are in files:

./src/ATOMICGUI/CMakeFiles/ATOMIC.dir/link.txt

./src/ATOMICGUI/CMakeFiles/ATOMIC.dir/DependInfo.cmake

./src/ATOMICGUI/CMakeFiles/ATOMIC.dir/flags.make

./src/ATOMICGUI/CMakeFiles/ATOMIC.dir/build.make

./src/ATOMICGUI/cmake_install.cmake

 

Re: Question about tutorial

Posted by Roman NIKOLAEV at December 26. 2016

Hello  Pavel,

 

The matter is that Universal binaries package is not intended to development process. The main goal of this package is an execution of the application. To developing a custom SALOME module it is necessary a bit modify installed universal binaries package, namely: replace all hard coded path (like /scratch/palmco/salome/prerequisites/build/...) in the CMake configuration files in ParaView, hdf5, med, PyQt4, sphinx and sip third-party SALOME products (they are located in the prerequisites sub-folder).

 

Regards,

Roman.

Re: Question about tutorial

Posted by Pavel Vashchenkov at January 08. 2017

Roman,

Thank you for the answer. Changes of configuration files helped.

Powered by Ploneboard
Document Actions