
Thu, 01/08/2015 - 10:56
Hello,
I have recently updated from OCCT 6.7.9 to OCCT 6.8.0, and according to the release notes, I had to do the following change (since it seems Graphic3D.hxx no longer exists):
From this:
==================================================================================================
#include
Create a Graphic Driver from the default Aspect_DisplayConnection
Handle(Aspect_DisplayConnection) aDisplayConnection;
Handle(Graphic3d_GraphicDriver) myGraphicDriver = Graphic3d::InitGraphicDriver(aDisplayConnection);
==================================================================================================
To this:
=============================================================================================
#include
Handle(Aspect_DisplayConnection) aDisplayConnection = new Aspect_DisplayConnection();
Handle(OpenGl_GraphicDriver) myGraphicDriver = new OpenGl_GraphicDriver(aDisplayConnection);
===================================================================================================
After making such change I am getting the following compiling errors:
error LNK2019: unresolved external symbol "public: __cdecl OpenGl_Context::OpenGl_Context(class Handle_OpenGl_Caps const &)" (??0OpenGl_Context@@QEAA@AEBVHandle_OpenGl_Caps@@@Z) referenced in function "public: void __cdecl OpenGl_Context::`default constructor closure'(void)" (??_FOpenGl_Context@@QEAAXXZ)
and
error LNK2019: unresolved external symbol "public: __cdecl OpenGl_GraphicDriver::OpenGl_GraphicDriver(class Handle_Aspect_DisplayConnection const &,unsigned int)" (??0OpenGl_GraphicDriver@@QEAA@AEBVHandle_Aspect_DisplayConnection@@I@Z) referenced in function "public: void __cdecl CamadaNegocio::CriarJanelaVisualizacao(char * const)" (?CriarJanelaVisualizacao@CamadaNegocio@@QEAAXQEAD@Z)
I use a Win 8.1 64-bit system, programming with VS 13 Express for Win Desktop. Any clues as to why Im getting these errors?
Thanks in advance,
Rodrigo
Thu, 01/08/2015 - 15:29
Hi Rodrigo,
Do you add the dependency: TKOpenGl.lib?
Thu, 01/08/2015 - 16:21
Hello eryar,
I did not have TKOpenGl.lib on my list of dependencies. Adding it solved the problem, and my program now runs perfectly.
Thank you very much for your help! In the future I will be careful to check for that.
Tue, 03/15/2016 - 04:33
Hi I am facing same issue
Added LIBS += C:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc10\lib\TKOpenGl.lib
still I am getting
error: Graphic3d.hxx: No such file or directory
#include <Graphic3d.hxx>
Please help me