MantisBT - Community
View Issue Details
0030308Community[OCCT] OCCT:Samplespublic2018-10-26 10:342019-07-19 18:59
BenjaminBihler 
apn 
normalmajor 
feedbackopen 
LinuxDebian 6.064 bit
[OCCT] 7.3.0 
[OCCT] 7.5.0 
0030308: OCCT Qt Tutorial Sample Cannot Be Built on Linux
There are two problems when trying to build the Tutorial sample:

1. In my file .../bin/custom_gcc_64.sh the environment variables are set only condionally and the conditions are not true. If I comment out the lines

if [ "$1" == "d" ]; then
if [ "$2" == "64" ]; then

and the respective "fi" lines, then at least the environment variables are correctly set.

2. The file Tutorial.pro references the libraries freeimageplus, tbb and tbbmalloc which are not available here. Is this necessary?

After fixing both, the sample can be built.
No tags attached.
Issue History
2018-10-26 10:34BenjaminBihlerNew Issue
2018-10-26 10:34BenjaminBihlerAssigned To => bugmaster
2018-11-26 12:52bugmasterAssigned Tobugmaster => apn
2018-11-26 12:52bugmasterStatusnew => feedback
2018-12-15 21:30apnNote Added: 0081534
2019-01-07 12:03BenjaminBihlerNote Added: 0081684
2019-07-19 18:59apnTarget Version7.4.0* => 7.5.0

Notes
(0081534)
apn   
2018-12-15 21:30   
OCCT Qt samples can be successfully built in Release and Debug modes.

Following conditions in custom_gcc_64.sh
if [ "$1" == "d" ]; then
  if [ "$2" == "64" ]; then

OR

if [ "$1" == "" ]; then
  if [ "$2" == "64" ]; then

give opportunity to build and run OCCT in both modes from the same directory (folders bin and bind).
So if OCCT was build in Release mode, just run OCCT_SAMPLES_DIR/qt/Tutorial/make.sh (QTDIR should be defined).
For Debug version: "make.sh d" (and "run.sh d" to launch sample).
Paths to freeimageplus, tbb and tbbmalloc are defined in OCCT_DIR/bin/custom_gcc_64.sh.
(0081684)
BenjaminBihler   
2019-01-07 12:03   
Dear apn,

thank you. You are right with your first comment, adding "d" as argument solves the problem.

As for the second comment, I have seen the possibility to define the paths to freeimageplus, tbb and tbbmalloc. The problem is that the Tutorial sample on Unix systems is unconditionally linked to these libraries. But this is not necessary, the libraries seem to be not needed. If this impression is correct I would propose to remove this dependecy.

Benjamin