View Issue Details

IDProjectCategoryView StatusLast Update
0029341Open CASCADEOCCT:Configurationpublic2019-07-19 11:55
ReporternbvAssigned Toapn  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
PlatformLinuxOSDebian 6.0 
Target Version7.4.0 
Summary0029341: CASRROT variable defines badly while configure with CMAKE
DescriptionI 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.
TagsNo tags attached.
Test case numberNot needed

Attached Files

  • env.sh (4,294 bytes)

Activities

bugmaster

2017-11-23 14:31

administrator   ~0072442

Andrey,

Please discuss with NBV what option he define during CMake configuration

nbv

2017-11-23 14:51

developer  

env.sh (4,294 bytes)

nbv

2017-11-23 14:52

developer   ~0072444

Example of corrected file "env.sh" is attached. With these changes, all works fine.

apn

2019-07-19 11:54

administrator   ~0085786

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).

Issue History

Date Modified Username Field Change
2017-11-23 14:27 nbv New Issue
2017-11-23 14:27 nbv Assigned To => bugmaster
2017-11-23 14:31 bugmaster Note Added: 0072442
2017-11-23 14:31 bugmaster Assigned To bugmaster => apn
2017-11-23 14:31 bugmaster Status new => assigned
2017-11-23 14:51 nbv File Added: env.sh
2017-11-23 14:52 nbv Note Added: 0072444
2019-07-19 11:54 apn Note Added: 0085786
2019-07-19 11:55 apn Test case number => Not needed
2019-07-19 11:55 apn Status assigned => closed
2019-07-19 11:55 apn Resolution open => no change required