View Issue Details

IDProjectCategoryView StatusLast Update
0030521CommunityOCCT:Samplespublic2023-09-29 17:48
ReporterBenjaminBihler Assigned To 
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version7.3.0 
Target VersionUnscheduled 
Summary0030521: OCCT Qt Samples Cannot Be Built With MSYS or MSYS2
DescriptionWhen using MinGW-w64 on Windows, it may be preferrable to use MSYS2 (https://www.msys2.org/) as a command line interpreter, because it feels like Unix and supports the MinGW-w64 toolchains very well.

However, building the Qt samples does not work with MSYS2. One of the main reasons is that the shell scripts are missing in the install folder. For example the folder samples/qt/Tutorial contains the scripts "env.sh", "custom.sh" and "make.sh". Script "env.sh" contains the line
source ${aSamplePath}/../../../env.sh" $*;
but this line will fail, since the respective "env.h" file in the install folder is not present. Yet, the batch file "env.bat" has been installed. Is this like that, because the installation has happened on a Windows system?

If it could be changed, that all .sh scripts are also installed on Windows systems, then MSYS2 could probably be used to build the samples which would bring a real benefit for MinGW-w64 users.
TagsNo tags attached.
Test case number

Activities

kgv

2019-03-02 23:10

developer   ~0082535

Existing .sh scripts within OCCT are not expected to be executed on Windows, even when bash interpretor is installed - so that you would need adopting them for Windows before usage.

BenjaminBihler

2019-03-04 12:20

developer   ~0082575

I know. But perhaps only little adoption might suffice. If .sh scripts similar to the Linux target were installed and users want to use bash and minor additional adoptions were necessary for Windows, then could the users also do the adoption themselves?

Issue History

Date Modified Username Field Change
2019-02-26 11:59 BenjaminBihler New Issue
2019-02-26 11:59 BenjaminBihler Assigned To => bugmaster
2019-03-02 23:10 kgv Note Added: 0082535
2019-03-04 12:20 BenjaminBihler Note Added: 0082575
2019-07-19 19:22 apn Target Version 7.4.0 => 7.5.0
2020-09-11 16:45 utverdov Target Version 7.5.0 => 7.6.0
2021-09-09 23:07 kgv Target Version 7.6.0 => 7.7.0
2022-10-24 10:43 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:06 dpasukhi Target Version 7.8.0 => Unscheduled
2023-09-29 17:48 vglukhik Assigned To bugmaster =>