MantisBT - Community
View Issue Details
0030521Community[OCCT] OCCT:Samplespublic2019-02-26 11:592019-03-04 12:20
[OCCT] 7.3.0 
[OCCT] 7.4.0* 
0030521: OCCT Qt Samples Cannot Be Built With MSYS or MSYS2
When using MinGW-w64 on Windows, it may be preferrable to use MSYS2 ( [^]) 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 "", "" and "". Script "" contains the line
source ${aSamplePath}/../../../" $*;
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.
No tags attached.
Issue History
2019-02-26 11:59BenjaminBihlerNew Issue
2019-02-26 11:59BenjaminBihlerAssigned To => bugmaster
2019-03-02 23:10kgvNote Added: 0082535
2019-03-04 12:20BenjaminBihlerNote Added: 0082575

2019-03-02 23:10   
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.
2019-03-04 12:20   
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?