View Issue Details

IDProjectCategoryView StatusLast Update
0023344Open CASCADEOCCT:WOKpublic2012-09-05 17:54
ReportersanAssigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
PlatformWindowsOSVC++ 2010 
Summary0023344: Possibility to customize PRODUCT_PATH value outside generated custom.bat
DescriptionCurrent version of WOK under Windows puts hard-coded path to thrid-party prerequisites into generated custom.bat, e.g.:

set "PRODUCTS_PATH=D:/OCC/occt653products"

Moreover, the same hard-coded path is repeated many times when setting CSF_OPT_* environment variables.

This becomes inconvenient when it is necessary to move OCCT installation from one workstation to another or to distribute the pre-compiled OCCT installation with an application.
Of course, generated custom.bat could be dropped in such a case, but it sets some variables used by env.bat, so why reproduce all this stuff in another script? A simple correction seems enough:

if "%PRODUCTS_PATH%" == "" set "PRODUCTS_PATH=D:/OCC/occt653products"

and %PRODUCTS_PATH% should appear instead of the hard-coded path when setting CSF_OPT_* environment variables.

TagsNo tags attached.
Test case number

Activities

kgv

2012-07-25 08:51

developer   ~0021141

The environment variable PRODUCTS_PATH no more used directly in batch script. Instead it is used by TCL script 'wok_deps.tcl' to search 3rd-parties using pre-defined rules.

Do you suggest to perform automatic replacement of all PRODUCTS_PATH (as real path, not variable) occurrences in CSF_OPT_INC, CSF_OPT_LIB*, CSF_OPT_BIN* to PRODUCTS_PATH (as environment variable) during custom.bat/custom.sh generation?

san

2012-07-26 18:09

developer   ~0021166

Dear bugmaster,

After explanations by kgv, I see no reason to change anything in custom.bat generation procedure.
Thus please close the issue.

Issue History

Date Modified Username Field Change
2012-07-24 20:16 san New Issue
2012-07-24 20:16 san Assigned To => kgv
2012-07-25 08:51 kgv Note Added: 0021141
2012-07-25 08:51 kgv Assigned To kgv => san
2012-07-25 08:51 kgv Status new => feedback
2012-07-26 18:08 san Status feedback => assigned
2012-07-26 18:09 san Note Added: 0021166
2012-07-26 18:09 san Assigned To san => bugmaster
2012-07-26 18:09 san Status assigned => feedback
2012-09-05 17:54 bugmaster Status feedback => closed
2012-09-05 17:54 bugmaster Resolution open => no change required