Posted by
Sven Gothel on
Feb 03, 2015; 2:52pm
URL: https://forum.jogamp.org/JOGL-s-Strange-errors-tp4033980p4033997.html
On 02/03/2015 02:58 PM, smabakane [via jogamp] wrote:
> Hello
>
> I have installed this library dependencies, XrandR, git, R-devel, X11.
> Below is the output of yum that shows the library are installed but am
> still getting the same error about compiling
>
> root@login02:~ $ yum list | grep Xrand
> libXrandr.i386 1.1.1-3.3
> installed
> libXrandr.x86_64 1.1.1-3.3
> installed
> libXrandr-devel.i386 1.1.1-3.3
> installed
> libXrandr-devel.x86_64 1.1.1-3.3
> installed
That should give us the proper XRandR headers.
> Below is the latest error when system compile X11RandR13.c file:
>
> [cc]
> /opt/gridware/libraries/jogl/jogl/src/newt/native/X11RandR13.c: In
> function ‘Java_jogamp_newt_driver_x11_RandR13_getScreenResources0’:
> [cc]
> /opt/gridware/libraries/jogl/jogl/src/newt/native/X11RandR13.c:42:
> error: ‘XRRScreenResources’ undeclared (first use in this function)
> [cc]
Interesting indeed.
I do have:
/usr/include/X11/extensions/Xrandr.h:typedef struct _XRRScreenResources {
/usr/include/X11/extensions/Xrandr.h:} XRRScreenResources;
On Debian 8, its:
libxrandr-dev:amd64: /usr/include/X11/extensions/Xrandr.h
libxrandr-dev:amd64 2:1.4.2-1+b1
This also works very well on OpenSolaris and other X11 enabled systems.
Maybe your Xrandr [devel] package is too old
and hence does not cover XRandR version 1.3/1.4 ?
XRandR 1.3/1.4 is a build requirement, not a runtime requirement.
~Sven