Hi Chris,

Many thanks for your advice. I took a week off, so I did not do
anything until today. I followed your recommendations and more or less
succeed to install the OpenGL module. A long story short:

perl Makefile.PL verbose 2>&1 | tee ../pogl-opensuse.log

and got:

-----------------------------------------------
found libs:
    GL = 'GL'
    MESA = 'OSMesa'
    GLUT = 'glut'
    GLX = 'glitz-glx'
    GLU = 'GLU'
Testing for OpenGL Extensions
Testing GLUT version
glversion: ';make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT'
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/X11R6/lib/libGL.so when searching for -lGL
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libglut.so when searching for -lglut
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib/libglut.a when searching for -lglut

rm -f glversion.txt
rm -f glversion
rm -f glversion.o
cc -I/usr/include -I/usr/X11R6/include -I/usr/local/include
-I/usr/openwin/include -c glversion.c
cc glversion.o -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules
-L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions
-lGL -lglut -o glversion
chmod u+x glversion
./glversion > glversion.txt


Found FreeGLUT v20400
Have Version Data

Using interface: FREEGLUT

resulting libs:
    FREEGLUT = 'glut'
    GL = 'GL'
    MESA = 'OSMesa'
    GLUT = 'glut'
    GLX = 'glitz-glx'
    GLU = 'GLU'

MakeMaker configuration:
Checking if your kit is complete...
Looks good
  AUTHOR => q[Bob 'grafman' Free <grafman at graphcomp.com>]
  DEFINE => q[-DHAVE_VER -DHAVE_FREEGLUT -DHAVE_GL -DHAVE_MESA
-DHAVE_GLUT  -DHAVE_GLU -DGL_GLEXT_LEGACY]
  EXE_FILES => []
  INC => q[-I/usr/include -I/usr/local/include]
  LIBS => q[-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules
-L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions
 -lglut -lGL -lOSMesa -lglut -lGLU]
  NAME => q[OpenGL]
  OBJECT => q[$(BASEEXT)$(OBJ_EXT) gl_util$(OBJ_EXT)]
  OPTIMIZE => undef
  PM => { OpenGL.pm=>q[$(INST_LIBDIR)/OpenGL.pm],
Config.pm=>q[$(INST_LIBDIR)/OpenGL/Config.pm] }
  PREREQ_PM => {  }
  VERSION_FROM => q[OpenGL.pm]
  XSPROTOARG => q[-noprototypes]
  dynamic_lib => {  }
Using PERL=/usr/bin/perl
Potential libraries are '-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules
-L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions
 -lglut -lGL -lOSMesa -lglut -lGLU':
-L/usr/openwin/lib ignored, directory does not exist
-L/usr/lib/xorg/modules ignored, directory does not exist
-L/usr/X11R6/lib/modules ignored, directory does not exist
-L/usr/lib/xorg/modules/extensions ignored, directory does not exist
-L/usr/X11R6/lib/modules/extensions ignored, directory does not exist
'-lglut' found at /usr/lib/libglut.so.3.8.0
'-lGL' found at /usr/lib/libGL.so.1.2
'-lOSMesa' found at /usr/lib/libOSMesa.so.6.5.3
'-lglut' found at /usr/lib/libglut.so.3.8.0
'-lGLU' found at /usr/lib/libGLU.so.1.3.070003
Writing Makefile for OpenGL

----------------------------------------------


Then run make, and the script stayed a long while at:

OpenGL.xs:829: warning: '_s_marshal_glu_t_callback_combine' defined but not used

no clue about this.

Then run make test and the test application run OK, except that i
could not turn the box with the mouse (as one could do in previous
versions of openSUSE). The message on this was :

freeglut (test.pl): font 0xd31f0f40 not found


The "make install" run without problems.


Without being 100% sure I suspect of some linking problems in openSUSE
11 64. This is because there exists other curious problems, not
uniquely with PDL. One example is that both PDL and the perl module
Geo::Proj4 cannot find the libraries of proj4, depite that being
compiled from source and succesfully in my machine. This is something
very strange and never had it before.


Anyway, thanks for the advice and the help.


Hernán


2008/7/16 Chris Marshall <[EMAIL PROTECTED]>:
> Hi Hernán,
>
> I haven't seen if you have had any further luck with this.
> There are two parts to getting the TriD (OpenGL based)
> stuff in PDL working:
>
> (1) Determining the correct compile and link flags
> (2) Massaging the configure process to recognize any idiosyncracies to your
> config
>
> Here are some steps you could take:
>
> Try building the Perl OpenGL module from the current SVN.  Get it following
> the instructions at http://graphcomp.com/opengl/index.cgi?v=0111s5m1&r=s1m1
> to get OpenGL (you don't need the others for this diagnostic).  Then cd to
> the
> OpenGL directory and run a 'perl Makefile.PL verbose 2>&1 | tee
> ../pogl-opensuse.log'
> to configure and collect the output.  If the module configuration completes,
> you can try
> 'make' and then 'make test'.
>
> If that works, then the flags OpenGL used for your system can be used to
> build TriD with PDL.  Try seting the options in perldl.conf for the various
> library
> and include locations.  If the configure or build fails, please send me the
> output
> file an I'll take a look to see if I can help further.  I would also like to
> pass the
> information onto the POGL developer for incorporation into his upcoming 0.57
> release.  Work is underway to add the ability to use POGL rather than the
> hand-rolled code in PDL so it would be great to have OpenGL (a.k.a POGL)
> running on as many platforms as possible.
>
> You could try to get the utils/glversion.c program from OpenGL SVN to
> compile, link,
> and run on your system.  Start with the existing Makefile in that directory.
>  Of course
> this will be easier if the OpenGL build is successful.
>
> Also, could attach the output from 'perl -V' as well as indicating which
> version of
> PDL you are working with.
>
> Thanks,
> Chris
>
>
>
> Hernán De Angelis wrote:
>>
>> Hi Craig,
>>
>> Tanks for your promt answer. My library path is this (as found in
>> "/etc/ld.so.conf"):
>>
>> /usr/X11R6/lib64/Xaw3d
>> /usr/X11R6/lib64
>> /usr/lib64/Xaw3d
>> /usr/X11R6/lib/Xaw3d
>> /usr/X11R6/lib
>> /usr/lib/Xaw3d
>> /usr/x86_64-suse-linux/lib
>> /usr/local/lib
>> /opt/kde3/lib
>> /lib64
>> /lib
>> /usr/lib64
>> /usr/lib
>> /usr/local/lib64
>> /opt/kde3/lib64
>>
>>
>> and the libraries that OpenGL cannot find are in:
>>
>> /usr/lib
>>
>> libGLcore.so.1
>> libGLcore.so.1.0
>> libGLEW.so.1.5
>> libGLEW.so.1.5.0
>> libGL.so
>> libGL.so.1
>> libGL.so.1.2
>> libGLU.so
>> libGLU.so.1
>> libGLU.so.1.3.070003
>> libIndirectGL.so.1
>> libIndirectGL.so.1.2
>> libQtOpenGL.so.4
>> libQtOpenGL.so.4.4
>> libQtOpenGL.so.4.4.0
>> libmesa_private.so
>> libmesa_private.so.1
>> libmesa_private.so.1.0
>>
>>
>> /usr/lib64
>>
>> libGLcore.so.1
>> libGLcore.so.1.0
>> libGLEW.a
>> libGLEW.so
>> libGL.so
>> libGL.so.1
>> libGL.so.1.2
>> libGLU.so
>> libGLU.so.1
>> libGLU.so.1.3.070003
>> libIndirectGL.so.1
>> libIndirectGL.so.1.2
>> libQtOpenGL.la
>> libQtOpenGL.prl
>> libQtOpenGL.so
>> libQtOpenGL.so.4
>> libQtOpenGL.so.4.4
>> libQtOpenGL.so.4.4.0
>> libglut.a
>> libglut.la
>> libglut.so
>> libglut.so.3
>> libglut.so.3.8.0
>> libOSMesa.so
>> libOSMesa.so.6
>> libOSMesa.so.6.5.3
>> libmesa_private.so
>> libmesa_private.so.1
>> libmesa_private.so.1.0
>>
>>
>> Yes, may be I cannot find -lXIE now. I do not have OpenGL of course i have
>> MESA.
>>
>>
>> Hernán
>>
>>
>>
>>
>>
>> 2008/7/9 Craig DeForest <[EMAIL PROTECTED]>:
>>
>>>
>>> Hi, Hernan,
>>>
>>> It would help if you could report here exactly where your opengl,glx,glu,
>>> and glut libraries live.  We might be able to put an appropriate switch
>>> into
>>> the makefile scripts for 2.4.4.  Also: what's your LIBPATH?
>>>
>>> Cheers,
>>> Craig
>>>
>>> On Jul 9, 2008, at 6:49 AM, Hernán De Angelis wrote:
>>>
>>>
>>>>
>>>> Dear all,
>>>>
>>>> I apologize for this being a bit off-topic, but as it concerns a
>>>> requirement to PDL I guess someone could have a hint.
>>>> I am installing PDL in OpenSUSE 11.0 64. The build crashes
>>>> systematically with OpenGL and without OpenGL no TriD. The build
>>>> script complains that libraries cannot be found:
>>>>
>>>> Note (probably harmless): No library found for -lopengl
>>>> Note (probably harmless): No library found for -lGLX
>>>> Note (probably harmless): No library found for -lglx
>>>> Note (probably harmless): No library found for -lglu
>>>> Note (probably harmless): No library found for -lGLUT
>>>> Note (probably harmless): No library found for -lMesaGL
>>>> Note (probably harmless): No library found for -lMesaGLU
>>>> Note (probably harmless): No library found for -lMesaGLX
>>>> Note (probably harmless): No library found for -lMesaGLUT
>>>> In file included from glversion.c:2:
>>>> ../include/GL/glut.h:69:1: warning: "APIENTRY" redefined
>>>> In file included from ../include/GL/glut.h:63,
>>>>               from glversion.c:2:
>>>> /usr/include/GL/gl.h:105:1: warning: this is the location of the
>>>> previous definition
>>>> Checking if your kit is complete...
>>>> Looks good
>>>> Note (probably harmless): No library found for -lXIE
>>>> Writing Makefile for OpenGL
>>>> cp OpenGL.pm blib/lib/OpenGL.pm
>>>>
>>>> ..............
>>>>
>>>> But all these libraries are properly installed in the system, it is
>>>> just the make script which cannot find them. I had problems with this
>>>> in the past versions of openSUSE but I solved them by creating
>>>> symlinks of the libraries to the build directory. Now this procedure
>>>> does not work. Of course everything goes fine if one disables TriD in
>>>> perdl.conf but in fact I want to have it.
>>>>
>>>> I want to make clear again that I know this is something related to
>>>> openSUSE 11 and OpenGL and *NOT* PDL, but I write this in the hope
>>>> someone has an idea about how to overcome this shortcoming.
>>>>
>>>>
>>>> Thanks in advance
>>>>
>>>>
>>>> Hernán
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Hernán De Angelis
>>>> Linux user # 397217
>>>>
>>>> _______________________________________________
>>>> Perldl mailing list
>>>> [email protected]
>>>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>



-- 

Hernán De Angelis
Linux user # 397217

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to