Failed to create xcb gl-integration

Discuss how to use the Diamond Editor
Post Reply
seasoned_geek
Posts: 61
Joined: Thu Jun 11 2020 12:18 pm

Failed to create xcb gl-integration

Post by seasoned_geek »

This is more of a developer thing . . . but . . . I am developing Diamond, adding themes and EDT keypad support. I "think" there was yet another dependency missing from the list when I built CopperSpice and that is what is causing this.

Code: Select all

roland@roland-amd-desktop:~/Projects/diamond_debug$ ./diamond
adding QXcbScreen(0x55c076e7f030, name=:1.0-32, geometry=1920x1080+0+0, availableGeometry=1848x1053+72+27, devicePixelRatio=1.0, logicalDpi=QPair(96.0,96.0), physicalSize=602.0x343.0mm, screenNumber=0, virtualSize=1920x1080 (1920.0x1080.0mm), orientation=0, depth=24, refreshRate=60.0, root=299, windowManagerName=GNOME Shell) (Primary: false )
primary output is :1.0-32
Choosing xcb gl-integration based on following priority
 (xcb_glx, xcb_egl)
Failed to create xcb gl-integration
Qt has had quite a bit of trouble with XCB in 5.x versions. The list of required packages to build the plug-in when building the library is not clear or well documented. I ass-u-me I am missing a -dev package for Ubuntu 20.04 and that is causing the issue. I am able to make progress with the code, but would like to nip this in the bud.

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond1.png

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond2.png

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond3.png

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond4.png

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond5.png

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond7.png

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/07/diamond9.png

Obviously I still have quite a ways to go.

1) Be able to load the config and import old to new
2) Actually support the EDT keypad. Right now you can only look at/define the key values
3) Fix the performance issues the gutting have caused. (Too many temporaries being created and taking too long.)
4) Finish removing DiamondTextEdit from MainWindow so I can stick one on the colors dialog and people can actually see the gutter colors they are choosing.
5) Get the current line highlight to only change the background color.

At some point I will get this checked in so it can be blessed/rejected. Then I can look at integrating AStyle library as I kind of like Emacs astyle-on-save option. It might even be a possible replacement for the current syntax highlighting. Can't tell for certain because I haven't looked at line one of the documentation. That is far down the road.

ansel
Posts: 98
Joined: Fri Apr 10 2015 8:23 am

Re: Failed to create xcb gl-integration

Post by ansel »

Failed to create xcb gl-integration
Thank you for reporting this. We are changing that message to indicate the gl-integration plugin is only needed when running a program which uses OpenGL.

Turns out we forgot to release the build files for the gl-integration plugins, which we will do shortly.
Ansel Sermersheim
CopperSpice Cofounder

seasoned_geek
Posts: 61
Joined: Thu Jun 11 2020 12:18 pm

Re: Failed to create xcb gl-integration

Post by seasoned_geek »

Just an FYI.
I let GitKraken pull down CopperSpice updates yesterday afternoon and let this machine build overnight. When I compiled and ran diamond I still see.

roland@roland-amd-desktop:~/Projects/diamond_debug$ ./diamond
adding QXcbScreen(0x559408797b60, name=:1.0-32, geometry=1920x1080+0+0, availableGeometry=1848x1053+72+27, devicePixelRatio=1.0, logicalDpi=QPair(96.0,96.0), physicalSize=602.0x343.0mm, screenNumber=0, virtualSize=1920x1080 (1920.0x1080.0mm), orientation=0, depth=24, refreshRate=60.0, root=299, windowManagerName=GNOME Shell) (Primary: false )
primary output is :1.0-32
Choosing xcb gl-integration based on following priority
(xcb_glx, xcb_egl)
Failed to create xcb gl-integration

I assume whatever needed to be released hasn't been yet?

ansel
Posts: 98
Joined: Fri Apr 10 2015 8:23 am

Re: Failed to create xcb gl-integration

Post by ansel »

Thanks for checking in with us. We are in final testing of the GLX integration plugin. It turns out setting up the support libraries correctly in CMake is a bit tricky. We should be able to publish this sometime next week.
Ansel Sermersheim
CopperSpice Cofounder

ansel
Posts: 98
Joined: Fri Apr 10 2015 8:23 am

Re: Failed to create xcb gl-integration

Post by ansel »

We pushed the updates for CopperSpice which add the build files for the XCB glx plugin. We also pushed changes for KitchenSink which will deploy the glx plugin. We updated the error message to be clear that this plugin is only needed for programs which use OpenGL.
Ansel Sermersheim
CopperSpice Cofounder

seasoned_geek
Posts: 61
Joined: Thu Jun 11 2020 12:18 pm

Re: Failed to create xcb gl-integration

Post by seasoned_geek »

Thanks,

Some time late this afternoon I will let GitKraken pull down updates then kick off a build. The machine I'm using for this testing is an old AMD 6-core with a very slow hard drive. 24Gig of RAM though <Grin>

Deliberately using this older machine because of mods I'm making to Diamond. If I can make Diamond seem snappy enough on this machine, it will fly on something with a fast hard drive that has a big cache/buffer.

https://www.cnet.com/products/wd-blue-wd2500aaks-hard-drive-250-gb-sata-300-series/

Only a 16Meg buffer. JSON I/O is extremely expensive. CopperSpice is best left building overnight.

seasoned_geek
Posts: 61
Joined: Thu Jun 11 2020 12:18 pm

Re: Failed to create xcb gl-integration

Post by seasoned_geek »

Is this a new missing dependency or or did the push miss something?

Code: Select all

roland@roland-amd-desktop:~/Projects/cs_build$ cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/cs_lib ~/Projects/copperspice

Configuring CMake for CopperSpice


Search for required Packages

-- Could NOT find xcb-glx (missing: XCB_GLX_INCLUDE_DIR XCB_GLX_LIB) 
I really hate no-screenshots.

seasoned_geek
Posts: 61
Joined: Thu Jun 11 2020 12:18 pm

Re: Failed to create xcb gl-integration

Post by seasoned_geek »

It's a dependency issue.

https://www.logikalsolutions.com/wordpress/wp-content/uploads/2020/08/xcb_glx.png

Post Reply