3.7-7 "final" VM for Unix
mds
reifiedmind at yahoo.co.uk
Sun Mar 20 09:50:16 UTC 2005
Hi Todd,
I'm also compiling under 10.3.8; since I usually supply the
'--without-x' configure option, I don't generate precisely the same
error as you illustrate below. However, the following dir listing might
be of interest:
/usr/X11R6/include/GL> ls -1
GLwDrawA.h
GLwDrawAP.h
GLwMDrawA.h
GLwMDrawAP.h
gl.h
glext.h
glu.h
glx.h
glxext.h
glxint.h
glxmd.h
glxproto.h
glxtokens.h
osmesa.h
-- you'll note that gl.h is in this X11 tree, as well as those /System
listings you supply below.
To share a similar problem that I encounter (and *manually* fixed just
this morning) re: GL - the libraries situated in /usr/X11R6/lib which
are required for linking are not automatically found, so in spite of my
'--without-x' request supplied to configure, I have reckoned the need
add the following to the LIBS line in my build/Makefile:
-L/usr/X11R6/lib -lGL
making it read,
LIBS= -lm -framework CoreFoundation -L/usr/X11R6/lib -lGL
As I say, this is a manual hack, to get the sources compiled and the VM
up and running. So, if your foremost concern at this point is in
getting everything *working* - try amending your INCLUDES= line in the
Makefile to point toward 'usr/X11R6/include/GL', or alternatively try
dropping that after a -I in the actual compilation string. If this
works, part of the problem has been solved (or at least, clarified).
You might also need to supply the library path as I do above.
I'll take a look at the automation scripts in a minute to see why the
paths aren't being included. It seems to be a simple matter of
supplying a couple of strings ....
Hope some of that helps, if only to jewry rig a result;
Cheers for now,
Marc
PS - I compiled 3.7-7 this morning (with my above LIBS amendment) via
VMMaker (with nk's cs as Ian has supplied in unix/misc)- everything
seems to be working smoothly.
> Nifty, so I downloaded it, check the instructions for building, and
> take the easy way out by just typing "make". I'm on Mac OS X 10.3.8
>
> I get this:
> gcc -g -O2 -O3 -mcpu=750 -funroll-loops -g -O2 -O3 -mcpu=750 -
> -funroll-loops -DHAVE_CONFIG_H -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/unix/bld -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/unix/vm -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/Cross/vm -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/unix/bld -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/unix/vm -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/Cross/vm -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/Cross/plugins/FilePlugin
> -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/Cross/plugins/
> B3DAcceleratorPlugin -
> -I/Users/todd/Projects/Squeak-3.7-7/platforms/unix/plugins/
> B3DAcceleratorPlugin -I/usr/X11R6/include -c
> /Users/todd/Projects/Squeak-3.7-7/platforms/unix/vm-display-X11/
> sqUnixX11.c -fno-common -DPIC -DPIC -o sqUnixX11.o
> In file included from
> /Users/todd/Projects/Squeak-3.7-7/platforms/unix/vm/SqDisplay.h:13,
> from
> /Users/todd/Projects/Squeak-3.7-7/platforms/unix/vm-display-X11/
> sqUnixX11.c:74:
> /Users/todd/Projects/Squeak-3.7-7/platforms/unix/plugins/
> B3DAcceleratorPlugin/sqUnixOpenGL.h:26:7: #error *** cannot find gl.h
> make[2]: *** [sqUnixX11.lo] Error 1
> make[1]: *** [vm-display-X11.la] Error 2
> make: *** [all] Error 2
>
> doing a little finding in the /System directory yields
> [todd]/System/Library>find . -name gl.h
> ./Frameworks/AGL.framework/Versions/A/Headers/gl.h
> ./Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
>
> So, what special value/place in this wonderfully elaborate build
> system should we tweak to make this work out of the box for Mac users?
More information about the Squeak-dev
mailing list
|