Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525150 - x11-misc/glxosd-2.3.3 - An OSD for OpenGL applications running under the X Window System
Summary: x11-misc/glxosd-2.3.3 - An OSD for OpenGL applications running under the X Wi...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Default Assignee for New Packages
URL: https://github.com/nickguletskii/GLXOSD
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-12 14:16 UTC by Kete Tefid
Modified: 2015-03-12 01:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
glxosd-2.3.3.ebuild (glxosd-2.3.3.ebuild,664 bytes, text/plain)
2014-10-12 21:50 UTC, Jeroen Roovers (RETIRED)
Details
glxosd-2.3.3.ebuild (glxosd-2.3.3.ebuild,786 bytes, text/plain)
2014-10-23 18:28 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kete Tefid 2014-10-12 14:16:11 UTC
Hello,

Please kindly make an ebuild for the appliation glxosd. https://github.com/nickguletskii/GLXOSD

This tool can monitor fps in native linux games.

I have tried to build it but the compilation fails with many errors related to boost. 

Cheers,
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-12 21:50:06 UTC
Created attachment 386570 [details]
glxosd-2.3.3.ebuild

It doesn't compile with stable dev-libs/boost, and the upstream documentation notes it should compile on Ubuntu, so this needs some testing to determine which boost version should be used.
Comment 2 Kete Tefid 2014-10-17 07:51:03 UTC
Hello,
I would be happy to help and test/do what is needed. Please kindly inform us if you need any testing.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-19 08:16:10 UTC
(In reply to Kete Tefid from comment #2)
> Hello,
> I would be happy to help and test/do what is needed. Please kindly inform us
> if you need any testing.

Figure out which minimum version of dev-libs/boost this requires.
Comment 4 Kete Tefid 2014-10-23 09:39:37 UTC
Testing all of the available boost versions in the portage the minimum one was found to be =dev-libs/boost-1.54.0-r1.
However, having built the package from the source (not using the ebuild), it refused to work with the following errors:

 glxosd glxgears

ERROR: ld.so: object 'libglxosd-elfhacks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-elfhacks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd.soERROR: ld.so: object 'libglxosd.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-elfhacks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-elfhacks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-elfhacks.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libglxosd.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.


Somehow it cannot find the libs. /usr/local/lib is in the path.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-23 18:28:27 UTC
Created attachment 387270 [details]
glxosd-2.3.3.ebuild
Comment 6 Kete Tefid 2014-10-24 00:40:20 UTC
Thank you very much for your work.
I installed the package through the ebuild you made and now the former errors are gone but a new one has appeared:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Couldn't compile GLXOSD shader: 0:1(10): error: GLSL 1.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

/usr/bin/glxosd: line 70: 31427 Aborted                 "$@"


Is this gentoo related? Maybe it does not work for intel gpus.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-24 05:32:56 UTC
(In reply to Kete Tefid from comment #6)
> Thank you very much for your work.
> I installed the package through the ebuild you made and now the former
> errors are gone but a new one has appeared:
> 
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  Couldn't compile GLXOSD shader: 0:1(10): error: GLSL 1.30 is not
> supported. Supported versions are: 1.10, 1.20, and 1.00 ES
> 
> /usr/bin/glxosd: line 70: 31427 Aborted                 "$@"
> 
> 
> Is this gentoo related? Maybe it does not work for intel gpus.

It's probably driver support, yes. It happens to work on an Nvidia GT 6200 here, but I haven't tried running on other systems or figuring out how to break it. I did notice that the lettering of the actual statistics was off in colour and hardly legible.
Comment 8 Kete Tefid 2014-11-07 20:36:58 UTC
Hello,

I have tested this ebuild on an AMD system and I can confirm that it works. Some modification are needed in the main script glxosd in /usr/bin, the most important of which is changing the following lines:

GLXOSD_LIBRARY_PATH_I386="/usr//lib/i386-linux-gnu//glxosd/"
GLXOSD_LIBRARY_PATH_AMD64="/usr//lib/x86_64-linux-gnu//glxosd/"

to:

GLXOSD_LIBRARY_PATH_AMD64="/usr/lib64/"
GLXOSD_LIBRARY_PATH_I386="/usr/lib32/"

The package works with different configurations. However, the main problem is that the application does not work with 32 built binaries and it outputs these errors:

ERROR: ld.so: object 'libglxosd-elfhacks.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libglxosd-glinject.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libglxosd.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

Is this gentoo related or upstream related? Can it be built in a multilib mode? Even it does not work with steam games.