Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10640

-Dx11=Off and -Dopengl=On do not work together

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      ubuntu 18.04

      Description

      We seem to have two options for building OpenGL and X11. If I configure ROOT with -Dx11=Off but -Dopengl=On I get:

      ```
      CMakeFiles/RGL.dir/src/TGLFormat.cxx.o: In function `TGLFormat::InitAvailableSamples()':
      /home/vvassilev/workspace/sources/root/graf3d/gl/src/TGLFormat.cxx:284: undefined reference to `XGetVisualInfo'
      /home/vvassilev/workspace/sources/root/graf3d/gl/src/TGLFormat.cxx:293: undefined reference to `XFree'
      CMakeFiles/RGL.dir/src/TGLWidget.cxx.o: In function `TGLWidget::~TGLWidget()':
      /home/vvassilev/workspace/sources/root/graf3d/gl/src/TGLWidget.cxx:166: undefined reference to `XFree'
      CMakeFiles/RGL.dir/src/TGLWidget.cxx.o: In function `TGLWidget::CreateWindow(TGWindow const*, TGLFormat const&, unsigned int, unsigned int, std::pair<void*, void*>&)':
      /home/vvassilev/workspace/sources/root/graf3d/gl/src/TGLWidget.cxx:521: undefined reference to `XCreateColormap'
      /home/vvassilev/workspace/sources/root/graf3d/gl/src/TGLWidget.cxx:530: undefined reference to `XCreateWindow'
      collect2: error: ld returned 1 exit status
      graf3d/gl/CMakeFiles/RGL.dir/build.make:2379: recipe for target 'lib/libRGL.so' failed
      make[2]: *** [lib/libRGL.so] Error 1
      CMakeFiles/Makefile2:27560: recipe for target 'graf3d/gl/CMakeFiles/RGL.dir/all' failed
      ```

      We should either fix this which I think it won't be too hard or report that opengl requires x11.

        Attachments

          Activity

            People

            Assignee:
            oshadura Oksana Shadura
            Reporter:
            vvasilev Vasil Georgiev Vasilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: