DiscussionsIssue archiveInstallation and Building

Archived discussion

issue on building CadRay

Installation and BuildingTue, 02/11/2020 - 23:096 replies

Browse this forum
QuestionAuthor

Hallo everyone,

Im involved to build from sources  CadRay.

I've found some issue using OCCT rev 7.4.0  regarding some changes on material library.

Revision 7.3 does not work for missing library:

CMake Error at CMake/macros.cmake:105 (message):
OCCT TKRWMesh library not found

Please can someone help me to know the correct commit to use for building?

Thank you in advance 

Alessandro

 

Discussion

6 archived replies

Posts are displayed in their archived order.

01Commenter-1

> I've found some issue using OCCT rev 7.4.0  regarding some changes on material library.
> Revision 7.3 does not work for missing library:

The description is confusing - you are trying to build CADRays with OCCT 7.4.0 (which should work) or OCCT 7.3.0 (which should not)?

02Author

I'm sorry for the misunderstanding,

I tried to build with occ rev 7,3 and 7,4.

Unfortunately i got some  error in both cases.

But finally i'm managed to to build cadray using occt rev 7.4.0.

I had to comment  following lines in AisMesh.cxx

lines 237 to 240

I understood that these methods were  deleted in rev 7.4.

aBsdfMaterial[aMatIdx].SetAmbient  (1.0);
aBsdfMaterial[aMatIdx].SetDiffuse  (1.0);
aBsdfMaterial[aMatIdx].SetSpecular (1.0);
aBsdfMaterial[aMatIdx].SetEmissive (0.0);

thank you for the support

Alessandro

03Commenter-1

You are right!

> CAD Rays: 27 Jun 2019.
> OCCT 7.4.0: 1 October 2019.

I haven't realized that CAD Rays has been published before OCCT 7.4.0 release.
So, indeed, it relies on OCCT version inbetween, though fixing building issues with OCCT 7.4.0  is straightforward.

04Commenter-2

occ7.4 and 7.5,the method Graphic3d_MaterialAspect::SetAmbient is deleted, how can i to replace it?

05Commenter-1
06Commenter-2

I have the same problem,do you solve?