MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029410Community[OCCT] OCCT:DRAWpublic2018-01-02 21:532018-01-02 21:55
Reporterabv 
Assigned Toapn 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0029410: DRAW - make DRAWEXE usable without environment settings
DescriptionHistorically DRAW depends on environment variables and thus can be launched successfully only by the script which sets these variables according to the current setting (draw.bat or draw.sh).

This is not convenient: it is expected that executable (DRAWEXE) should be able to run correctly if started directly, without any pre-set variables.

To achieve this, we need to find good replacement of environment variables for two kinds of paths:

1. Paths to DRAW plugin binaries. Now command pload searches for these using standard paths supported by dlopen() on Linux / macOS or LoadLibrary() on Windows. If this is not the case (e.g. OCCT is installed to /usr/local on macOS), pload fails.

2. Paths to Tcl scripts and other resources. Now these paths are expected to be defined by a bunch of environment variables. There is some fallback code trying to find paths in the absence of variables, but these fallbacks are made on DRAW is running over sources (search OCCT code for "src/DrawResources"). This is not the case when OCCT is installed with "make install".

The most straightforward approach is to extend fallback code to perform search in default locations, starting from location of the current binary. However, more universal approach should be preferred if it exists.
Steps To ReproduceOn Linux or macOS:

1. Build OCCT using CMake and run make install

2. Start DRAWEXE directly
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-01-02 21:53 abv New Issue
2018-01-02 21:53 abv Assigned To => apn
2018-01-02 21:55 abv Steps to Reproduce Updated View Revisions


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker