Archived issue #0029393

Samples - AndroidQt sample build fail

CommunityOCCT:Samplesclosed3 public notes

Search issues

Description

AndroidQt sample is out of updated, when building with Qt Creator, the error message as below:

..\AndroidQt\AndroidQt.cxx: In member function 'void AndroidQt::sync()':
..\AndroidQt\AndroidQt.cxx:173:85: error: no matching function for call to 'V3d_View::SetWindow(opencascade::handle<AndroidQt_Window>&, Aspect_RenderingContext, NULL, NULL)'
       myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext, NULL, NULL);
                                                                                     ^
..\AndroidQt\AndroidQt.cxx:173:85: note: candidate is:
In file included from ..\AndroidQt/AndroidQt.h:28:0,
                 from ..\AndroidQt\AndroidQt.cxx:15:
..\..\..\Install\include\opencascade/V3d_View.hxx:125:24: note: void V3d_View::SetWindow(const opencascade::handle<Aspect_Window>&, Aspect_RenderingContext)
   Standard_EXPORT void SetWindow (const Handle(Aspect_Window)& theWindow,
                        ^
..\..\..\Install\include\opencascade/V3d_View.hxx:125:24: note: candidate expects 2 arguments, 4 provided
..\AndroidQt\AndroidQt.cxx: In member function 'bool AndroidQt::initViewer()':
..\AndroidQt\AndroidQt.cxx:250:83: error: no matching function for call to 'V3d_View::SetWindow(opencascade::handle<AndroidQt_Window>&, Aspect_RenderingContext, NULL, NULL)'
     myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext, NULL, NULL);
                                                                                   ^
..\AndroidQt\AndroidQt.cxx:250:83: note: candidate is:
In file included from ..\AndroidQt/AndroidQt.h:28:0,
                 from ..\AndroidQt\AndroidQt.cxx:15:
..\..\..\Install\include\opencascade/V3d_View.hxx:125:24: note: void V3d_View::SetWindow(const opencascade::handle<Aspect_Window>&, Aspect_RenderingContext)
   Standard_EXPORT void SetWindow (const Handle(Aspect_Window)& theWindow,
                        ^
..\..\..\Install\include\opencascade/V3d_View.hxx:125:24: note: candidate expects 2 arguments, 4 provided
..\AndroidQt\AndroidQt.cxx:273:75: error: invalid new-expression of abstract class type 'AndroidQt_Window'
   Handle(AndroidQt_Window) aWindow = new AndroidQt_Window (aWidth, aHeight);
                                                                           ^
In file included from ..\AndroidQt\AndroidQt.cxx:14:0:
..\AndroidQt/AndroidQt_Window.h:21:7: note: because the following virtual functions are pure within 'AndroidQt_Window':
 class AndroidQt_Window : public Aspect_Window
       ^
In file included from ..\AndroidQt/AndroidQt_Window.h:17:0,
                 from ..\AndroidQt\AndroidQt.cxx:14:
..\..\..\Install\include\opencascade/Aspect_Window.hxx:108:43: note: virtual void* Aspect_Window::NativeFBConfig() const
   Standard_EXPORT virtual Aspect_FBConfig NativeFBConfig() const = 0;


Public activity

3 archived notes

Participants are labeled by their role within this record.

01Commenter 3
Branch [archived branch] has been created by Commenter 2.

[revision removed]


Detailed log of new commits:

Author: Commenter 2
Date: Tue Dec 19 14:00:10 2017 +0300

    0029393: Samples - AndroidQt sample build fail
    
    AndroidQt - dropped removed arguments within V3d_View::SetWindow() usage [0024776].
    AndroidQt_Window - add missing NativeFBConfig() method declared in the interface [0026732].
02Commenter 2
Please take the patch.
03Commenter 3
Branch [archived branch] has been deleted by Commenter 2.

[revision removed]

Related records