[vtkusers] Android Example JavaVTK no override found for 'vtkRenderWindow'.

Ken Martin ken.martin at kitware.com
Thu Jan 21 07:59:43 EST 2016


Sounds like nothing is pulling in the OpenGL2 libs or they are not being
built. You can try sticking a

  vtkRenderingOpenGL2ObjectFactory *of =
vtkRenderingOpenGL2ObjectFactory::New();
  vtkObjectFactory::RegisterFactory(of);

in your main.cxx which will make sure the factory initialization code is
called.  You could also try changing

  vtkRenderWindow *renWin = vtkRenderWindow::New();
  char jniS[4] = {'j','n','i',0};
  renWin->SetWindowInfo(jniS); // tell the system that jni owns the window
not us

to explicitly create the vtkEGLRenderWindow instead of the more generic
vtkRenderWindow


On Thu, Jan 21, 2016 at 3:58 AM, Simon <75779910 at qq.com> wrote:

> VTK 7.0 rc2
> Eclipse
>
> I built the example JavaVTK apk,and when I run on my phone it crashed. The
> .so is about 10M.
> Error: no override found for 'vtkRenderWindow'.
>
> 01-20 15:29:01.387: W/JavaVTKView(26369): creating OpenGL ES 2.0 context
> 01-20 15:29:01.397: D/dalvikvm(26369): Trying to load lib
> /data/app-lib/com.kitware.JavaVTK-2/libJavaVTK.so 0x428a50f8
> 01-20 15:29:01.427: D/dalvikvm(26369): Added shared lib
> /data/app-lib/com.kitware.JavaVTK-2/libJavaVTK.so 0x428a50f8
> 01-20 15:29:01.427: D/dalvikvm(26369): No JNI_OnLoad found in
> /data/app-lib/com.kitware.JavaVTK-2/libJavaVTK.so 0x428a50f8, skipping init
> 01-20 15:29:01.427: W/VTK(26369): Generic Warning: In
> G:\VTK\VTK-7.0.0.rc2\Rendering\Core\vtkRenderWindow.cxx, line 40
> 01-20 15:29:01.427: W/VTK(26369): Error: no override found for
> 'vtkRenderWindow'.
> 01-20 15:29:01.427: A/libc(26369): Fatal signal 11 (SIGSEGV) at 0x00000000
> (code=1), thread 26382 (Thread-396)
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Android-Example-JavaVTK-no-override-found-for-vtkRenderWindow-tp5736068.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160121/7f59896e/attachment.html>


More information about the vtkusers mailing list