-   Linux - Newbie (
-   -   Configure on Amaya is failing to find OpenGL (

Rupadhya 04-24-2013 01:35 AM

Configure on Amaya is failing to find OpenGL
I am trying to compile the program Amaya, which I got the tarball from

Here is a snippet of the ../configure script output.

checking for OpenGL headers... found in /usr/include
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for -lGL... found in /usr/lib
checking for -lGLU... no
checking for -lMesaGL... no
configure: error: OpenGL libraries not available
configure: error: A problem occurs durring wxWidgets library configuration. Please fix the problem and try again.
I can't find what package provides the OpenGL library. Any ideas?
- Raj

guyonearth 04-24-2013 01:49 AM

This occurs on all the Red-hat/Fedora based distros. I suggest trying the RPM package.

knudfl 04-24-2013 05:50 AM

Fedora :

# yum install mesa-libGLU-devel mesa-libGL-devel

Rupadhya 04-24-2013 07:25 AM

GuyOnEarth - I took your advice, and it is almost working, but the build on the server is core dumping on my Fedora client.

raj@rajhome2 ~$ which amaya
raj@rajhome2 ~$ amaya
06:19:03 AM: Deleted stale lock file '/home/raj/.amaya_bin-raj'.
06:19:06 AM: Warning: Application was compiled with png.h from libpng-1.5.10
06:19:06 AM: Warning: Application is running with png.c from libpng-1.0.60
06:19:06 AM: Warning: Incompatible libpng version in application and library
/usr/bin/amaya: line 11: 6289 Segmentation fault (core dumped) env XLIB_SKIP_ARGB_VISUALS=1 G_SLICE="always-malloc" $PREFIX/$AMAYA_INSTALLDIR/$AMAYAGUI/bin/amaya_bin "${1+$@}"
knudfl - I have installed the libraries, and am currently building the package. I will let you know of my status.

Thank you both for your help,


Rupadhya 04-24-2013 10:08 PM

the install from the RPM is core dumping so I built a ticket for it.

I am getting an error while building Amaya.

I got through the configure step, so I think all the libraries I need are there.

I then do a make. Here is the error.

Any ideas?

Amaya configured
Amaya configured with libWWW (local source)
Amaya configured with SVG support
Amaya configured with Annotations support
Amaya configured with the RaptorF library (system)
Amaya configured with templates support
Amaya configured with generic XML support
Amaya configured with internationalization support
Amaya configured with OpenGL Canvas Rendering (MesaLib)
Amaya configured with WebDAV support
Amaya configured with wxWidgets {srcdir=/home/raj/source/Amaya11.4.4/wxWidgets}

Now type "make" (GNU make preferably) to build the binaries

raj@rajhome2 obj$ make
Makefile:11: Options: No such file or directory
/usr/bin/cp Options.orig Options
make[1]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/mkdep'
g++ -O2 -Wall -x c++ -D__cplusplus -I../../ -c ../../../tools/mkdep/mkdep.c -o mkdep.o
<command-line>:0:0: warning: "__cplusplus" redefined [enabled by default]
../../../tools/mkdep/mkdep.c:1:0: note: this is the location of the previous definition
../../../tools/mkdep/mkdep.c: In function ‘int main(int, char**)’:
../../../tools/mkdep/mkdep.c:433:26: warning: variable ‘ptr’ set but not used [-Wunused-but-set-variable]
g++ -o mkdep mkdep.o
make[1]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/mkdep'
make[1]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools'
make[2]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/mkdep'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/mkdep'
make[2]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/cextract-1.7'
Makefile:40: .depends: No such file or directory
../../tools/mkdep/mkdep -relative -vpath ../../../tools/cextract-1.7 ../../../tools/cextract-1.7/*.c > .depends
make[2]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/cextract-1.7'
make[2]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/cextract-1.7'
g++ -x c '-DCPP="'"gcc -E -x c"'"' -O -c ../../../tools/cextract-1.7/parse.c -o parse.o
g++ -x c '-DCPP="'"gcc -E -x c"'"' -O -c ../../../tools/cextract-1.7/main.c -o main.o
g++ -x c '-DCPP="'"gcc -E -x c"'"' -O -c ../../../tools/cextract-1.7/io.c -o io.o
g++ -o ../../bin/cextract parse.o main.o io.o -ldl -lm
make[2]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools/cextract-1.7'
make[1]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/tools'
make[1]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/Mesa'
make[2]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/Mesa/src'
Making sources for linux-x86-static
mkdir ../lib
make[3]: Entering directory `/home/raj/source/Amaya11.4.4/Amaya/obj/Mesa/src/mesa'
running makedepend
make[3]: *** [depend] Error 127
make[3]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/Mesa/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/Mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/home/raj/source/Amaya11.4.4/Amaya/obj/Mesa'
make: *** [gl] Error 2
raj@rajhome2 obj$

All times are GMT -5. The time now is 09:02 PM.