View Issue Details

IDProjectCategoryView StatusLast Update
0024316Open CASCADEOCCT:DRAWpublic2014-03-11 18:39
ReporterabvAssigned Toabv 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
PlatformWindowsOSVC++ 2010 
Product Version6.7.0 
Target Version6.7.0Fixed in Version6.7.0 
Summary0024316: Make building with different versions of Tcl easier
DescriptionTcl is different from other third-party libraries used by OCCT in that it uses version number of the package name as part of the name of its shared library. Hence, library name to be linked with OCCT depends on Tcl version used.

Currently Tcl library name is hard-coded in WOK scripts, which causes problem (at least on Windows with MSVC, you have to change name of the library in properties of the generated project files) if you have different version of Tcl.

It is highly desirable to have Tcl library name defined automatically for actual Tcl being used. With MSVC, it is possible using #pragma comment statement.
TagsNo tags attached.
Test case number

Relationships

related to 0024713 closedkgv WOK compilation fails on tcl8.6 

Activities

abv

2013-11-05 13:48

manager   ~0026454

Fixes pushed to branch CR24316 in WOK repository and CR0-abv-IR-2013-11-01 in OCCT repository, please review

kgv

2013-11-05 14:03

developer   ~0026457

I have no objections against the patch, although only Windows platform has been modified.

I consider using "-framework Tcl, -framework Tk" on Mac OS X platform and detection of tcl85 on Linux platform, since 8.6 is not yet mainstream - in dedicated patch.

Related Changesets

occt: master 6a0964c2

2013-11-05 05:48:27

abv


Committer: abv Details Diff
0024316: Make building with different versions of Tcl easier

On Windows with MSVC Tcl library is linked using #pragma statement instead of using project properties, to allow easy switch between Tcl versions. In gendoc.bat, tclsh.exe is called instead of tclsh86.exe, to avoid dependency on hard-coded Tcl version.

Tcl-dependent code (unused functions) removed from QABugs package.
Affected Issues
0024316
mod - gendoc.bat Diff File
mod - src/Draw/Draw.cxx Diff File
mod - src/QABugs/QABugs_11.cxx Diff File
mod - src/QABugs/QABugs_13.cxx Diff File
mod - src/QABugs/QABugs_3.cxx Diff File
mod - src/QABugs/QABugs_4.cxx Diff File
mod - src/QADraw/QADraw.cxx Diff File
mod - src/TKQADraw/EXTERNLIB Diff File
mod - tests/bugs/vis/buc60661 Diff File

Issue History

Date Modified Username Field Change
2013-11-05 08:15 abv New Issue
2013-11-05 08:15 abv Assigned To => mkv
2013-11-05 13:48 abv Note Added: 0026454
2013-11-05 13:48 abv Assigned To mkv => kgv
2013-11-05 13:48 abv Status new => resolved
2013-11-05 14:03 kgv Note Added: 0026457
2013-11-05 14:03 kgv Assigned To kgv => bugmaster
2013-11-05 14:03 kgv Status resolved => reviewed
2013-11-06 11:07 abv Changeset attached => occt master 6a0964c2
2013-11-06 11:07 abv Assigned To bugmaster => abv
2013-11-06 11:07 abv Status reviewed => verified
2013-11-06 11:07 abv Resolution open => fixed
2013-12-19 13:51 bugmaster Status verified => closed
2013-12-19 13:58 bugmaster Fixed in Version => 6.7.0
2014-03-11 18:39 kgv Relationship added related to 0024713