View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033858 | Open CASCADE | OCCT:Configuration | public | 2024-12-19 21:00 | 2024-12-20 13:11 |
Reporter | oan | Assigned To | dpasukhi | ||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Summary | 0033858: Configuration - Don't use absolute paths in the run scripts | ||||
Description | When OCCT is compiled somewhere outside the workstation where it is supposed to be used, e.g. by CI/CD, it becomes impossible to start DRAWEXE on target workstation, because all paths in env.{bat|sh} and custom.{bat|sh} are hardcoded with absolute paths corresponding to the file system of the machine where it was compiled. This causes necessity to modify run scripts manually every time a new build is ready. Usually, structure of the distribution looks like: 3rdparty -> freeimage -> ... -> occt i.e. all dependencies are located right on the same level with occt itself or nearby. It is good to have some CMake option that allows usage of relative paths, e.g. variable pointing to some directory relative to occt's installation dir or CASROOT, or functionality comparing 3RDPARTY_DIR and INSTALL_DIR allowing to use relative path automatically if INSTALL_DIR corresponds to 3RDPARTY_DIR. Among these two options, the second way looks better, because on Windows it is impossible to use relative paths pointing to a drive with another letter. The following variables are influenced: - CASROOT in env.{bat|sh} - e.g. on Linux it's absolute, but should be the same as aScriptPath as on Windows. - THIRDPARTY_DIR in env.{bat|sh} (look more suitable if it points to "%CASROOT%/.." by default) both of the above variables should be modifiable via custom_<ver>.{bat|sh} only and do not change inside env.{bat|sh} depending on the build configuration. - All 3rdparty variables in custom_<ver>.{bat|sh}: behavior of this file seems to be undefined, at least on Windows - sometimes THIRDPARTY_DIR is used, sometimes explicit absolute paths. | ||||
Tags | No tags attached. | ||||
Test case number | |||||