[vtkusers] vtkEGLRenderWindow error message

Elhassan Abdou elhassan.abdou at gmail.com
Wed Dec 20 10:00:57 EST 2017


Hi Dan ,

Thank you for your reply. I am sure that I built VTK with EGL, but I am
building it on Windows 10, it USE_X was set to false.
After checking Nvidia driver I figured out that Nvidia does not support EGL
on Windows platform, it is supported on Linux, I am not sure about OSX.
Unfortunately, I am stuck with windows for this project.
The ANGLE implementation does not work here it seems.

Is there is any other way to make offscreen rendering without EGL?

Best regards

Elhassan

On Wed, Dec 20, 2017 at 3:46 PM, Dan Lipsa <dan.lipsa at kitware.com> wrote:

> Elhassan,
> The fact that most tests passed means that your VTK works correctly,
> however I am not sure you compiled it with EGL.
>
> Can you make sure you have
> VTK_USE_X = OFF
> VTK_OPENGL_HAS_EGL = ON
>
> in cmake-gui.
>
> The header files I had to download myself from the Kronos page:
> https://www.khronos.org/registry/EGL/
> just download the 4 header files (maintaining the same directory
> hierarchy).
>
> The two libraries you need should be where your graphics driver is
> installed. This what I have on my machine:
>
> //Path to a file.
> EGL_INCLUDE_DIR:PATH=/home/danlipsa/include
>
> //Path to a library.
> EGL_LIBRARY:FILEPATH=/usr/lib/nvidia-384/libEGL.so
>
> //Path to a library.
> EGL_opengl_LIBRARY:FILEPATH=/usr/lib/nvidia-384/libOpenGL.so
>
>
>
> On Tue, Dec 19, 2017 at 5:45 PM, Elhassan Abdou <elhassan.abdou at gmail.com>
> wrote:
>
>> Hi,
>>
>>
>>
>> I ran the tests of VTK, they passed except 4 tests
>>
>> The following tests FAILED:
>>
>> 1>         1045 - vtkRenderingCoreCxx-TestResetCameraVerticalAspectRatio
>> (Failed)
>>
>> 1>         1046 - vtkRenderingCoreCxx-TestResetC
>> ameraVerticalAspectRatioParallel (Failed)
>>
>> 1>         1062 - vtkRenderingCoreCxx-TestWindowToImageFilter (Failed)
>>
>> 1>              1068 - vtkRenderingExternalCxx-TestGLUTRenderWindow
>> (Failed)
>>
>> They are not related to EGL. They failed because of command line error “I
>> guess”:
>>
>> >Errors while running CTest
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: The
>> command "setlocal
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073:
>> "C:\Program Files\CMake\bin\ctest.exe" --force-new-ctest-process -C Release
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if
>> %errorlevel% neq 0 goto :cmEnd
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073:
>> :cmEnd
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073:
>> endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073:
>> :cmErrorLevel
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: exit
>> /b %1
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073:
>> :cmDone
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073: if
>> %errorlevel% neq 0 goto :VCEnd
>>
>> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\
>> IDE\VC\VCTargets\Microsoft.CppCommon.targets(133,5): error MSB3073:
>> :VCEnd" exited with code 8.
>>
>> 1>Done building project "RUN_TESTS.vcxproj" -- FAILED.
>>
>>
>>
>>
>>
>> I tried to run the small EGL program, but it is not compiled. The
>> unistd.h does not exist on Windows 10 visual studio 2017. I can not figure
>> out where is the problem. The EGL files and lib I used, I got from ANGLE
>> project. I think that is problem. Can you help me where I can find EGL
>> files to my platform?.
>>
>> I am using windows 10
>>
>> Nvidia GTX 1060 Driver version 388.59
>>
>> Visual studio 2017 community
>>
>>
>>
>> I am looking forward to hearing from you
>>
>>
>>
>> Elhassan
>>
>>
>>
>>
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>> Windows 10
>>
>>
>>
>> *From: *Dan Lipsa <dan.lipsa at kitware.com>
>> *Sent: *Monday, December 18, 2017 7:46 PM
>> *To: *Elhassan Abdou <elhassan.abdou at gmail.com>
>> *Cc: *VTK Users <vtkusers at vtk.org>
>> *Subject: *Re: [vtkusers] vtkEGLRenderWindow error message
>>
>>
>>
>> Not sure about glew. It runs fine on our test machines.
>>
>>
>>
>> https://open.cdash.org/index.php?project=VTK
>>
>>
>>
>> taanab is an EGL build.
>>
>>
>>
>> What OS, graphics card, graphics card driver version do you have? Are you
>> your EGL installation works correctly. Can you compile/run a small EGL
>> program?
>>
>> For instance
>>
>> https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglIntro.xhtml
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Dec 18, 2017 at 1:23 PM, Elhassan Abdou <elhassan.abdou at gmail.com>
>> wrote:
>>
>> Hi ,
>>
>>
>>
>> Thank you for your reply. I have not ran the test yet. I Will do this.
>> But do you think that glew needs to be updated with eglew files that are
>> supported from glew2.0.0?
>>
>> I am not sure which version VTK has.
>>
>> In the error message I noticed that glew failed to initialize
>>
>>
>>
>> Regards
>>
>> Elhassan
>>
>>
>>
>> On 18 Dec 2017 7:18 PM, "Dan Lipsa" <dan.lipsa at kitware.com> wrote:
>>
>> Elhassan,
>>
>> Do the VTK tests run fine? Try to compile with BUILD_TESTING and then run
>> ctest in the build directory.
>>
>>
>>
>> On Sun, Dec 17, 2017 at 2:52 AM, Elhassan Abdou <elhassan.abdou at gmail.com>
>> wrote:
>>
>> Hi all,
>>
>>
>>
>> I am trying to use vtkEGLrenderWindow but I receive this runtime error:
>>
>>  Setting an EGL display to device index: 0 require EGL_EXT_device_base
>> EGL_EXT_platform_device EGL_EXT_platform_base extensions
>>
>>
>>
>> ERROR: In D:\toolkits\vtkrcgit\Rendering\OpenGL2\vtkEGLRenderWindow.cxx,
>> line 356
>>
>> vtkEGLRenderWindow (00000196387DE220): No matching EGL configuration
>> found.
>>
>>
>>
>>
>>
>> Any idea why I am receiving this. Can you give me tip even how to fix
>> this?
>>
>>
>>
>> Regards
>>
>> Elhassan
>>
>>
>> _______________________________________________
>> 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:
>> https://vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>> _______________________________________________
>> 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:
>> https://vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtkusers/attachments/20171220/f3ab66a3/attachment.html>


More information about the vtkusers mailing list