View Issue Details

IDProjectCategoryView StatusLast Update
0030308CommunityOCCT:Samplespublic2020-12-02 17:11
ReporterBenjaminBihler Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
PlatformLinuxOSDebian 6.0 
Product Version7.3.0 
Target Version7.5.0Fixed in Version7.5.0 
Summary0030308: Samples - Qt Tutorial Sample cannot be built on Linux
DescriptionThere 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.
Steps To ReproducePlease review
TagsNo tags attached.
Test case numberNot required

Activities

apn

2018-12-15 21:30

administrator   ~0081534

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.

BenjaminBihler

2019-01-07 12:03

developer   ~0081684

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

BenjaminBihler

2020-09-14 10:59

developer   ~0094700

I wonder why the issue has been closed. The first problem is solved, but the second problem still remains. Wouldn't it be easy to remove the dependency on unused libraries?

git

2020-09-15 16:13

administrator   ~0094854

Branch CR30308 has been created by inv.

SHA-1: 497614b74ad4f8021ffc3a73b1f383e269ab3d86


Detailed log of new commits:

Author: bugmaster
Date: Tue Sep 15 16:15:09 2020 +0300

    0030308: OCCT Qt Tutorial Sample Cannot Be Built on Linux

bugmaster

2020-09-19 17:20

administrator   ~0095070

Combination -
OCCT branch : IR-2020-09-18
master SHA - b0b766826118f74b9857a932b8cec8c52a25c492
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-09-18 SHA - a6486d839da1ba1383ef6cc1a1a446a172f494c7
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17528.97000000011 / 17378.390000000145 [+0.87%]
Products
Total CPU difference: 12127.32000000009 / 12079.540000000095 [+0.40%]
Windows-64-VC14:
OCCT
Total CPU difference: 18862.703125 / 18898.921875 [-0.19%]
Products
Total CPU difference: 13314.828125 / 13329.21875 [-0.11%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2020-09-20 11:13

administrator   ~0095119

Branch CR30308 has been deleted by inv.

SHA-1: 497614b74ad4f8021ffc3a73b1f383e269ab3d86

Related Changesets

occt: master 2fa0e902

2020-09-15 13:15:09

bugmaster

Details Diff
0030308: OCCT Qt Tutorial Sample Cannot Be Built on Linux Affected Issues
0030308
mod - samples/qt/Tutorial/Tutorial.pro Diff File

Issue History

Date Modified Username Field Change
2018-10-26 10:34 BenjaminBihler New Issue
2018-10-26 10:34 BenjaminBihler Assigned To => bugmaster
2018-11-26 12:52 bugmaster Assigned To bugmaster => apn
2018-11-26 12:52 bugmaster Status new => feedback
2018-12-15 21:30 apn Note Added: 0081534
2019-01-07 12:03 BenjaminBihler Note Added: 0081684
2019-07-19 18:59 apn Target Version 7.4.0 => 7.5.0
2020-09-11 16:35 utverdov Assigned To apn => inv
2020-09-11 16:45 utverdov Target Version 7.5.0 => 7.6.0
2020-09-11 17:09 bugmaster Assigned To inv => bugmaster
2020-09-14 10:49 bugmaster Status feedback => closed
2020-09-14 10:49 bugmaster Resolution open => no change required
2020-09-14 10:59 BenjaminBihler Note Added: 0094700
2020-09-14 10:59 BenjaminBihler Status closed => feedback
2020-09-14 10:59 BenjaminBihler Resolution no change required => reopened
2020-09-15 16:13 git Note Added: 0094854
2020-09-15 16:14 bugmaster Assigned To bugmaster => kgv
2020-09-15 16:14 bugmaster Status feedback => resolved
2020-09-15 16:14 bugmaster Steps to Reproduce Updated
2020-09-15 16:33 kgv Assigned To kgv => bugmaster
2020-09-15 16:33 kgv Severity major => minor
2020-09-15 16:33 kgv Status resolved => reviewed
2020-09-15 16:33 kgv Summary OCCT Qt Tutorial Sample Cannot Be Built on Linux => Samples - Qt Tutorial Sample cannot be built on Linux
2020-09-15 16:33 kgv Description Updated
2020-09-15 16:33 kgv Target Version 7.6.0 => 7.5.0
2020-09-19 15:43 bugmaster Test case number => Not required
2020-09-19 17:20 bugmaster Note Added: 0095070
2020-09-19 17:20 bugmaster Status reviewed => tested
2020-09-20 10:55 bugmaster Changeset attached => occt master 2fa0e902
2020-09-20 10:55 bugmaster Status tested => verified
2020-09-20 11:13 git Note Added: 0095119
2020-12-02 16:40 emo Fixed in Version => 7.5.0
2020-12-02 17:07 emo Resolution reopened => fixed
2020-12-02 17:11 emo Status verified => closed