MantisBT - Open CASCADE
View Issue Details
0029341Open CASCADE[OCCT] OCCT:Configurationpublic2017-11-23 14:272019-07-19 11:55
nbv 
apn 
normalminor 
closedno change required 
LinuxDebian 6.064 bit
 
[OCCT] 7.4.0 
Not needed
0029341: CASRROT variable defines badly while configure with CMAKE
I build OCCT with CMAKE in Debug mode.

As result, the following fragment of "env.sh"-file is obtained:

aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; 
fi; aScriptPath="$PWD";

# ----- For compatability with external application using CASROOT -----
if [ "${CASROOT}" == "" ]; then
  export CASROOT="/usr/local"
fi

...


As result, CASRROT variable is not defined correctly. Therefore, launching DRAW is impossible.


P.S.

On Windows-platform, all is OK.
No tags attached.
? env.sh (4,294) 2017-11-23 14:51
https://tracker.dev.opencascade.org/
Issue History
2017-11-23 14:27nbvNew Issue
2017-11-23 14:27nbvAssigned To => bugmaster
2017-11-23 14:31bugmasterNote Added: 0072442
2017-11-23 14:31bugmasterAssigned Tobugmaster => apn
2017-11-23 14:31bugmasterStatusnew => assigned
2017-11-23 14:51nbvFile Added: env.sh
2017-11-23 14:52nbvNote Added: 0072444
2019-07-19 11:54apnNote Added: 0085786
2019-07-19 11:55apnTest case number => Not needed
2019-07-19 11:55apnStatusassigned => closed
2019-07-19 11:55apnResolutionopen => no change required

Notes
(0072442)
bugmaster   
2017-11-23 14:31   
Andrey,

Please discuss with NBV what option he define during CMake configuration
(0072444)
nbv   
2017-11-23 14:52   
Example of corrected file "env.sh" is attached. With these changes, all works fine.
(0085786)
apn   
2019-07-19 11:54   
env.sh is generated from env.install.sh.in. So it contains following condition:
if [ "${CASROOT}" == "" ]; then
  export CASROOT="@INSTALL_DIR@"
fi
It's necessary to define INSTALL_DIR correctly on Linux (not to default value /usr/local/ because there are maybe problems during install procedure due to write access to linux usr folder).