Derek Lamb writes:
>
> Chris,
>
> I can't get this to build on my 64-bit Scientific
> Linux (i.e., CentOS, i.e., RHEL5) box. I
> installed Freeglut 2.6.0rc1 to ~/local. At first,
> utils/glversion would not build, but did once
> I prepended "-I/home/dlamb/local/include" to
> the utils/Makefile's INC line, and prepended
> "-L/home/dlamb/local/lib -L/usr/lib64" to the LIB
> line.
Good.
> In order to be sure that the correct GL library is
> being linked in (since I also have Mesa on this
> computer in /usr/lib/ or similar), I changed the
> top-level Makefile.PL so that line 117 starts the
> chunk:
>
> @our libdirs = qw { -L/home/dlamb/local/lib
> @}; @our check_libs = qw { -lglut }; and
> @line 454 starts: my includes = qw {
> @-I/home/dlamb/local/include };
Oops, I think you should have prepended here rather
than replace the entire set of directories. As is,
unless all of the required libraries and include
files are in ~/local, you'll be missing a lot: i.e.
libGL, libGLU, ...
> Running $ perl Makefile.PL INSTALL_BASE=~/local
> verbose produces the output in the attached
> makefile.pl.out, which seems to be OK. Running
> make produces the output in make.out.0, which
> complains about GLUT_INIT_STATE in glut_const.h.
> Commenting out that one line and making again lets
> it get passed, but then it gets stuck on an error
> in pogl_glu.c (in attached make.out.1.
Do you have freeglut_std.h in your include directories?
> I could keep commenting things out, but I feel
> like there's a deeper problem. Any advice?
You're actually pretty close. I think if you double
check that the needed freeglut include files are
found (so GLUT_INIT_STATE will be too) and re-add
the rest of the system directories to the library
and include searches in Makefile.PL, you'll get a
lot farther.
If anything comes up w.r.t. 64-bit linux libraries,
please let me/us know so that I can fix. Thanks!
--Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl