home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-11 | 1.7 KB | 35 lines |
- SHELL = /bin/sh
-
- all clean clobber:
- @echo "\nUNFORTUNATELY, GLUT's progs/fortran directory doesn't compile on IRIX 6.\n \
-
- This one was very strange: we were seeing \n \
- boatloads of errors throughout this directory \n \
- attempting to compile with libfGL.a (since all \n \
- the OpenGL Fortran programs in the DT live \n \
- here) of the form,\n \n \
- ld: ERROR 33: Unresolved data symbol "glBindTexture" -- 1st referenced by /usr/lib/libfGL.a(libfogl32.o). \n \n \
- These unresolved symbols are OpenGL 1.1 entry \n \
- points, and we don't support 1.1 yet. It turns \n \
- out that libfGL.a has 1.1 bindings, and all \n \
- wrappers are in a single object file. The \n \
- ramification is that calling any fGL routine \n \
- pulls in wrappers for all entry points, including \n \
- the the 1.1 versions of the extensions. Thus, any \n \
- program which links with libfGL.a will have the \n \
- unresolved symbols you encountered. \n \n \
- There are two possible workarounds to this problem. \n \
- 1. If you add "-Wl,-U" to the link line \n \
- (or just "-U" if you invoke ld directly) \n \
- you will get an executable. You then must \n \
- setenv _RLD_ARGS -ignore_unresolved \n \
- to run the executable. \n \
- 2. You can create a stubs file to resolve \n \
- the missing entry points. They will \n \
- (should) never be called, so all it does \n \
- is make the linker happy. \n \n \
- For the present, we include the source for people \n \
- still running IRIX 5, but for those with IRIX 6, \n \
- you will have to resort to one of the above hacks \n \
- if you want to attempt compiles on OpenGL using fortran. \n \n"
-