View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0029341 | Open CASCADE | OCCT:Configuration | public | 2017-11-23 14:27 | 2019-07-19 11:55 |
| Reporter | Assigned To | apn | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Platform | Linux | OS | Debian 6.0 | ||
| Target Version | 7.4.0 | ||||
| Summary | 0029341: CASRROT variable defines badly while configure with CMAKE | ||||
| Description | 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. | ||||
| Tags | No tags attached. | ||||
| Test case number | Not needed | ||||
|
|
Andrey, Please discuss with NBV what option he define during CMake configuration |
|
2017-11-23 14:51 developer |
|
|
|
Example of corrected file "env.sh" is attached. With these changes, all works fine. |
|
|
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). |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-11-23 14:27 |
|
New Issue | |
| 2017-11-23 14:27 |
|
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 |
|
File Added: env.sh | |
| 2017-11-23 14:52 |
|
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 |