Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for assistance #29

Open
comely13 opened this issue Jul 6, 2023 · 0 comments
Open

Request for assistance #29

comely13 opened this issue Jul 6, 2023 · 0 comments

Comments

@comely13
Copy link

comely13 commented Jul 6, 2023

I'm facing difficulties while compiling. I'm using Open Cascade version 7.4.0, and I'm getting an error during the compilation process:
`..\eryar-IsoAlgo3d-master\occView.cpp: In member function 'void OccView::init()':
..\eryar-IsoAlgo3d-master\occView.cpp:110:51: error: invalid conversion from 'short int* const' to 'Standard_ExtString {aka const char16_t*}' [-fpermissive]
myViewer = new V3d_Viewer(GetGraphicDriver(), (short* const)"viewer");
^~~~~~~~~~~~~~~~~~~~~~
In file included from ..\eryar-IsoAlgo3d-master\occView.cpp:38:0:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/V3d_Viewer.hxx:447:19: note: initializing argument 2 of 'V3d_Viewer::V3d_Viewer(const opencascade::handle<Graphic3d_GraphicDriver>&, Standard_ExtString, Standard_CString, Standard_Real, V3d_TypeOfOrientation, const Quantity_Color&, V3d_TypeOfVisualization, Graphic3d_TypeOfShadingModel, Standard_Boolean, Standard_Boolean)'
Standard_EXPORT V3d_Viewer (const Handle(Graphic3d_GraphicDriver)& theDriver,
^~~~~~~~~~
..\eryar-IsoAlgo3d-master\occView.cpp:110:73: warning: 'V3d_Viewer::V3d_Viewer(const opencascade::handle<Graphic3d_GraphicDriver>&, Standard_ExtString, Standard_CString, Standard_Real, V3d_TypeOfOrientation, const Quantity_Color&, V3d_TypeOfVisualization, Graphic3d_TypeOfShadingModel, Standard_Boolean, Standard_Boolean)' is deprecated: This constructor is deprecated [-Wdeprecated-declarations]
myViewer = new V3d_Viewer(GetGraphicDriver(), (short* const)"viewer");
^
In file included from ..\eryar-IsoAlgo3d-master\occView.cpp:38:0:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/V3d_Viewer.hxx:447:19: note: declared here
Standard_EXPORT V3d_Viewer (const Handle(Graphic3d_GraphicDriver)& theDriver,
^~~~~~~~~~
..\eryar-IsoAlgo3d-master\occView.cpp:128:41: error: no matching function for call to 'AIS_InteractiveContext::SetDisplayMode(AIS_DisplayMode)'
myContext->SetDisplayMode(AIS_Shaded);
^
In file included from ..\eryar-IsoAlgo3d-master\occView.h:24:0,
from ..\eryar-IsoAlgo3d-master\occView.cpp:32:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:316:24: note: candidate: void AIS_InteractiveContext::SetDisplayMode(Standard_Integer, Standard_Boolean)
Standard_EXPORT void SetDisplayMode (const Standard_Integer theMode,
^~~~~~~~~~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:316:24: note: candidate expects 2 arguments, 1 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:321:24: note: candidate: void AIS_InteractiveContext::SetDisplayMode(const opencascade::handle<AIS_InteractiveObject>&, Standard_Integer, Standard_Boolean)
Standard_EXPORT void SetDisplayMode (const Handle(AIS_InteractiveObject)& theIObj,
^~~~~~~~~~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:321:24: note: candidate expects 3 arguments, 1 provided
..\eryar-IsoAlgo3d-master\occView.cpp: In member function 'void OccView::dragEvent(int, int)':
..\eryar-IsoAlgo3d-master\occView.cpp:385:53: error: no matching function for call to 'AIS_InteractiveContext::Select(Standard_Integer&, Standard_Integer&, const int&, const int&, opencascade::handle<V3d_View>&)'
myContext->Select( myXmin, myYmin, x, y, myView );
^
In file included from ..\eryar-IsoAlgo3d-master\occView.h:24:0,
from ..\eryar-IsoAlgo3d-master\occView.cpp:32:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:475:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::Select(Standard_Integer, Standard_Integer, Standard_Integer, Standard_Integer, const opencascade::handle<V3d_View>&, Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick Select (const Standard_Integer theXPMin,
^~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:475:36: note: candidate expects 6 arguments, 5 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:483:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::Select(const TColgp_Array1OfPnt2d&, const opencascade::handle<V3d_View>&, Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick Select (const TColgp_Array1OfPnt2d& thePolyline,
^~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:483:36: note: candidate expects 3 arguments, 5 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:489:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::Select(Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick Select (const Standard_Boolean theToUpdateViewer);
^~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:489:36: note: candidate expects 1 argument, 5 provided
..\eryar-IsoAlgo3d-master\occView.cpp: In member function 'void OccView::multiDragEvent(int, int)':
..\eryar-IsoAlgo3d-master\occView.cpp:392:58: error: no matching function for call to 'AIS_InteractiveContext::ShiftSelect(Standard_Integer&, Standard_Integer&, const int&, const int&, opencascade::handle<V3d_View>&)'
myContext->ShiftSelect( myXmin, myYmin, x, y, myView );
^
In file included from ..\eryar-IsoAlgo3d-master\occView.h:24:0,
from ..\eryar-IsoAlgo3d-master\occView.cpp:32:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:494:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::ShiftSelect(Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick ShiftSelect (const Standard_Boolean theToUpdateViewer);
^~~~~~~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:494:36: note: candidate expects 1 argument, 5 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:498:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::ShiftSelect(const TColgp_Array1OfPnt2d&, const opencascade::handle<V3d_View>&, Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick ShiftSelect (const TColgp_Array1OfPnt2d& thePolyline,
^~~~~~~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:498:36: note: candidate expects 3 arguments, 5 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:504:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::ShiftSelect(Standard_Integer, Standard_Integer, Standard_Integer, Standard_Integer, const opencascade::handle<V3d_View>&, Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick ShiftSelect (const Standard_Integer theXPMin,
^~~~~~~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:504:36: note: candidate expects 6 arguments, 5 provided
..\eryar-IsoAlgo3d-master\occView.cpp: In member function 'void OccView::inputEvent(int, int)':
..\eryar-IsoAlgo3d-master\occView.cpp:403:23: error: no matching function for call to 'AIS_InteractiveContext::Select()'
myContext->Select();
^
In file included from ..\eryar-IsoAlgo3d-master\occView.h:24:0,
from ..\eryar-IsoAlgo3d-master\occView.cpp:32:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:475:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::Select(Standard_Integer, Standard_Integer, Standard_Integer, Standard_Integer, const opencascade::handle<V3d_View>&, Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick Select (const Standard_Integer theXPMin,
^~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:475:36: note: candidate expects 6 arguments, 0 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:483:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::Select(const TColgp_Array1OfPnt2d&, const opencascade::handle<V3d_View>&, Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick Select (const TColgp_Array1OfPnt2d& thePolyline,
^~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:483:36: note: candidate expects 3 arguments, 0 provided
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:489:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::Select(Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick Select (const Standard_Boolean theToUpdateViewer);
^~~~~~
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:489:36: note: candidate expects 1 argument, 0 provided
..\eryar-IsoAlgo3d-master\occView.cpp: In member function 'void OccView::multiInputEvent(int, int)':
..\eryar-IsoAlgo3d-master\occView.cpp:413:28: error: no matching function for call to 'AIS_InteractiveContext::ShiftSelect()'
myContext->ShiftSelect();
^
In file included from ..\eryar-IsoAlgo3d-master\occView.h:24:0,
from ..\eryar-IsoAlgo3d-master\occView.cpp:32:
C:/OpenCASCADE-7.4.0-vc14-64/opencascade-7.4.0/inc/AIS_InteractiveContext.hxx:494:36: note: candidate: AIS_StatusOfPick AIS_InteractiveContext::ShiftSelect(Standard_Boolean)
Standard_EXPORT AIS_StatusOfPick ShiftSelect (const Standard_Boolean theToUpdateViewer);
^~~~~~~~~~~
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant