LarsFlaeten / ork

Ork - An OpenGL rendering kernel from Inria
Other
35 stars 12 forks source link

Test on Ubuntu 16.04 #2

Open lazydino opened 7 years ago

lazydino commented 7 years ago

Hi, I give ORK a shot on my linux computer that runs Ubuntu 16.04 with nvidia-375.66 driver for my GTX 650 Ti Boost card. CMake generates the makefile successfully, and I was able to make the build.

However, I can only run "ork-examples minimal", and got an error upon exiting the program, terminal says: freeglut ERROR: Function called without first calling 'glutInit'. "ork-test all" shows the same error.

ORK won't run if I switch driver back to the X.org one ( xserver-xorg-video-nouveau )...

LarsFlaeten commented 7 years ago

Hi Reggie,

sorry for the late reply. It is a while since I have worked with the ork examples, but I seem to remember that I also had problems with freeglut on Linux. I therefore implemented a new class with GLFW instead of GLUT (see ork/ui/GlfwWindow.cpp), both to get away from GLUT but also to have better control of the render loop. You can run that one instead by calling MinimalExampleGLFW. There should be some notes about this in the repo.

Those examples were implemented to check the basic functioncality of Ork on my Ubuntu (with Nvidia NVS 4200M) beofre I started to work on Proland.

Please give it a try and provide some feedback whether it suceeds. It stil works fine on my laptop.

Lars

On Thu, Jul 6, 2017 at 8:13 PM, Reggie Chen notifications@github.com wrote:

Hi, I give ORK a shot on my linux computer that runs Ubuntu 16.04 with nvidia-375.66 driver for my GTX 650 Ti Boost card. CMake generates the makefile successfully, and I was able to make the build.

However, I can only run "ork-examples minimal", and got an error upon exiting the program, terminal says: freeglut ERROR: Function called without first calling 'glutInit'. "ork-test all" shows the same error.

ORK won't run if I switch driver back to the X.org one ( xserver-xorg-video-nouveau )...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LarsFlaeten/ork/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AMEEfpKAUtdXONrAf7xMk2oXf-ZuKXPOks5sLSPCgaJpZM4OP_um .

lazydino commented 5 years ago

Hi Lars,

Revisiting the code after a year or so, this is what I have on testing ORK now...

Here is the related glxinfo for my testing linux PC:

reggie@Rex:~/ork/bin$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.5.0 NVIDIA 384.130
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL version string: 4.5.0 NVIDIA 384.130
OpenGL shading language version string: 4.50 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 384.130
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_group_vote, GL_EXT_shader_implicit_conversions, 

Here is what I got running "./ork-tests ALL"

reggie@Rex:~/ork/bin$ ./ork-test ALL
INFO [UI] Status: Using GLEW 1.13.0

testModuleResource...                                          [OK]
textureResourceUpdate...                                       [OK]
moduleResourceUpdate...                                        [OK]
moduleResourceUpdateWithUniformSamplers...                     [OK]
moduleResourceUpdateWithUniformSubroutines...                  [SKIPPED]
moduleResourceUpdateRemovedUniform...                          [OK]
moduleResourceUpdateRemovedUniformSubroutine...                [SKIPPED]
moduleResourceUpdateUniformBlock...                            [OK]
testUniformBlock1f...                                          [OK]
testUniformBlock2f...                                          [OK]
testUniformBlock3f...                                          [OK]
testUniformBlock4f...                                          [OK]
testUniformBlock1d...                                          [SKIPPED]
testUniformBlock2d...                                          [SKIPPED]
testUniformBlock3d...                                          [SKIPPED]
testUniformBlock4d...                                          [SKIPPED]
testUniformBlock1i...                                          [OK]
testUniformBlock2i...                                          [OK]
testUniformBlock3i...                                          [OK]
testUniformBlock4i...                                          [OK]
testUniformBlock1b...                                          [OK]
testUniformBlock2b...                                          [OK]
testUniformBlock3b...                                          [OK]
testUniformBlock4b...                                          [OK]
testUniformMatrixBlock3f...                                    [OK]
testUniformMatrixBlock4f...                                    [OK]
testStructureBlock1...                                         [OK]
testArrayBlock1b...                                            [OK]
testArrayBlock1f...                                            [OK]
testArrayBlock1i...                                            [OK]
testStructureArrayBlock1...                                    [OK]
automaticUniformBlockBufferBinding...                          [OK]
testProgramBinary...                                           [OK]
testProgramPipeline...                                         [OK]
testProgramPipelineAutomaticTextureBinding...                  [OK]
testProgramPipelineAutomaticSamplerBinding...                  [OK]
testTransformFeedback...                                       [OK]
testTransformFeedback2...                                      [OK]
testTransformFeedback3...                                      [SKIPPED]
texture1DAttachment...                                         [OK]
texture1DArrayAttachmentOneLayer...                            [OK]
texture1DArrayAttachmentAllLayers...                           [OK]
texture2DAttachment...                                         [OK]
textureRectangleAttachment...                                  [OK]
texture2DMultisampleAttachment...                              [OK]
texture2DArrayAttachmentOneLayer...                            [OK]
texture2DArrayAttachmentAllLayers...                           [OK]
texture2DMultisampleArrayAttachmentOneLayer...                 [OK]
texture2DMultisampleArrayAttachmentAllLayers...                [OK]
texture3DAttachmentOneLayer...                                 [OK]
texture3DAttachmentAllLayers...                                [OK]
draw...                                                        [OK]
drawInstancing...                                              [OK]
drawPartDirect...                                              [OK]
drawPartInstancingDirect...                                    [OK]
drawPartIndices...                                             [OK]
drawPartInstancingIndices...                                   [OK]
drawPartIndicesWithBase...                                     [OK]
drawPartInstancingIndicesWithBase...                           [OK]
multiDrawInstancingDirect...                                   [OK]
multiDrawInstancingIndices...                                  [OK]
multiDrawInstancingIndicesWithBase...                          [OK]
drawIndirectInstancingDirect...                                [SKIPPED]
drawIndirectInstancingIndices...                               [SKIPPED]
drawIndirectInstancingIndicesWithBase...                       [SKIPPED]
primitiveRestart...                                            [OK]
cpuMeshModificationDirect...                                   Segmentation fault (core dumped)

Still could not run any test example except "./ork-example minimalglfw". Running other tests shows

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
LarsFlaeten commented 5 years ago

Hi Reggie,

You should try to run the examples through GDB to find the backtrace and exactly where they fail. I have not seen the error you report before, and ouwld need more information to be able to help.

Please note that I have not used ork for a long time. I decided to abandon the port, since it was too buggy, too old style C++ and too specifc for NVIDIA cards. If you really want to make it work, you could maybe try to fork the original ork from Inria and see if that works better. Feel free to

I am working on a simpler (and more modern C++) opengl wrapper (mork), but it is far from complete - and I sadly don't have enough time to work on that project.

brgs Lars Flaeten

On Mon, Dec 10, 2018 at 7:54 PM Reggie Chen notifications@github.com wrote:

Hi Lars,

Revisiting the code after a year or so, this is what I have on testing ORK now...

Here is the related glxinfo for my testing linux PC:

reggie@Rex:~/ork/bin$ glxinfo | grep version server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 OpenGL core profile version string: 4.5.0 NVIDIA 384.130 OpenGL core profile shading language version string: 4.50 NVIDIA OpenGL version string: 4.5.0 NVIDIA 384.130 OpenGL shading language version string: 4.50 NVIDIA OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 384.130 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 GL_EXT_shader_group_vote, GL_EXT_shader_implicit_conversions,

Here is what I got running "./ork-tests ALL"

reggie@Rex:~/ork/bin$ ./ork-test ALL INFO [UI] Status: Using GLEW 1.13.0

testModuleResource... [OK] textureResourceUpdate... [OK] moduleResourceUpdate... [OK] moduleResourceUpdateWithUniformSamplers... [OK] moduleResourceUpdateWithUniformSubroutines... [SKIPPED] moduleResourceUpdateRemovedUniform... [OK] moduleResourceUpdateRemovedUniformSubroutine... [SKIPPED] moduleResourceUpdateUniformBlock... [OK] testUniformBlock1f... [OK] testUniformBlock2f... [OK] testUniformBlock3f... [OK] testUniformBlock4f... [OK] testUniformBlock1d... [SKIPPED] testUniformBlock2d... [SKIPPED] testUniformBlock3d... [SKIPPED] testUniformBlock4d... [SKIPPED] testUniformBlock1i... [OK] testUniformBlock2i... [OK] testUniformBlock3i... [OK] testUniformBlock4i... [OK] testUniformBlock1b... [OK] testUniformBlock2b... [OK] testUniformBlock3b... [OK] testUniformBlock4b... [OK] testUniformMatrixBlock3f... [OK] testUniformMatrixBlock4f... [OK] testStructureBlock1... [OK] testArrayBlock1b... [OK] testArrayBlock1f... [OK] testArrayBlock1i... [OK] testStructureArrayBlock1... [OK] automaticUniformBlockBufferBinding... [OK] testProgramBinary... [OK] testProgramPipeline... [OK] testProgramPipelineAutomaticTextureBinding... [OK] testProgramPipelineAutomaticSamplerBinding... [OK] testTransformFeedback... [OK] testTransformFeedback2... [OK] testTransformFeedback3... [SKIPPED] texture1DAttachment... [OK] texture1DArrayAttachmentOneLayer... [OK] texture1DArrayAttachmentAllLayers... [OK] texture2DAttachment... [OK] textureRectangleAttachment... [OK] texture2DMultisampleAttachment... [OK] texture2DArrayAttachmentOneLayer... [OK] texture2DArrayAttachmentAllLayers... [OK] texture2DMultisampleArrayAttachmentOneLayer... [OK] texture2DMultisampleArrayAttachmentAllLayers... [OK] texture3DAttachmentOneLayer... [OK] texture3DAttachmentAllLayers... [OK] draw... [OK] drawInstancing... [OK] drawPartDirect... [OK] drawPartInstancingDirect... [OK] drawPartIndices... [OK] drawPartInstancingIndices... [OK] drawPartIndicesWithBase... [OK] drawPartInstancingIndicesWithBase... [OK] multiDrawInstancingDirect... [OK] multiDrawInstancingIndices... [OK] multiDrawInstancingIndicesWithBase... [OK] drawIndirectInstancingDirect... [SKIPPED] drawIndirectInstancingIndices... [SKIPPED] drawIndirectInstancingIndicesWithBase... [SKIPPED] primitiveRestart... [OK] cpuMeshModificationDirect... Segmentation fault (core dumped)

Still could not run any test example except "./ork-example minimalglfw". Running other tests shows

terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LarsFlaeten/ork/issues/2#issuecomment-445929294, or mute the thread https://github.com/notifications/unsubscribe-auth/AMEEfnl26xX26lqUeNs8HUPCbyQMoV67ks5u3q3igaJpZM4OP_um .