Code does not compile in Solaris 8...
I have just setup my Ultra Sparc 60 with Solaris 8 to compile gl programs, or so I thought. The programs dont compile...why?
This is my current setup:
billnic[root]:/> cd /usr/openwin/lib
billnic[root]:/usr/openwin/lib> ls libGL*
libGL.so libGL.so.1 libGLU.so libGLU.so.1 libGLw.so libGLw.so.1 libGLw.so.2 libGLw12.so
billnic[root]:/usr/openwin/lib>
billnic[root]:/usr/openwin/include/GL> ls
gl.h glmacros.h glu.h glx.h glxmd.h glxproto.h glxtokens.h
billnic[root]:/usr/openwin/include/GL>
billnic[root]:/usr/local/sparc_solaris/glut-3.7/include/GL> ls -als
total 232
2 drwxr-xr-x 2 12583 staff 512 Jul 21 1999 .
2 drwxr-xr-x 4 12583 staff 512 Jul 21 1999 ..
120 -r--r--r-- 1 12583 staff 60468 Jul 21 1999 fgl.h
16 -r--r--r-- 1 12583 staff 7273 Jul 21 1999 fglu.h
20 -r--r--r-- 1 12583 staff 10152 Jul 21 1999 fglut.h
12 -r--r--r-- 1 12583 staff 5150 Jul 21 1999 glsmap.h
42 -r--r--r-- 1 12583 staff 20844 Jul 21 1999 glut.h
18 -r--r--r-- 1 12583 staff 8874 Jul 21 1999 tube.h
billnic[root]:/usr/local/sparc_solaris/glut-3.7/include/GL>
I am using tcsh, here is my .cshrc file:
billnic[root]:/> more .cshrc
if ($?prompt) then
set prompt="%m[%n]:%/> "
endif
setenv ORACLE_BASE /oracle_product/app/oracle
setenv ORACLE_HOME $ORACLE_BASE/product/816
setenv ORACLE_SID nic_prod
setenv PATH .:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/local/bin:/nicapp/bin:$ORACLE_HOME/bin:/opt/SUNWspro/bin:/usr/openwin/bin:/nic/tools/bin:/opt/NSCPcom:/usr/local/qt/bin:/usr/dt/bin:/usr/local/bin:/usr/openwin/lib
setenv QTDIR /usr/local/qt
setenv MANPATH /usr/man:/usr/local/man:/nicapp/man:/usr/local/qt/man
setenv LD_LIBRARY_PATH /usr/local/qt/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/usr/local/sparc_solaris/glut-3.7/lib/glut
export LD_LIBRARY_PATH
setenv editor `which vi`
set autologout=0
billnic[root]:/> source .cshrc
export: Permission denied.
billnic[root]:/>
This is what I get when I compile a program... These programs come from the Sun OpenGL examples site...
billnic[root]:/home/bblair/programs/OpenGLExamples/examples/sun/galpha> ls -als
total 28
2 drwxr-xr-x 2 3840 staff 512 Apr 3 17:02 .
2 drwxr-xr-x 10 3840 staff 512 Apr 10 2000 ..
4 -rw-r--r-- 1 3840 staff 1565 Apr 3 16:46 .make.state
2 -rwxr-xr-x 1 3840 staff 624 Apr 9 2000 Makefile
18 -rwxr-xr-x 1 3840 staff 9156 Apr 9 2000 ogl_galpha_ex1.c
billnic[root]:/home/bblair/programs/OpenGLExamples/examples/sun/galpha> gcc ogl_galpha_ex1.c
Undefined first referenced
symbol in file
glXQueryExtension /var/tmp/ccskIzVO.o
glOrtho /var/tmp/ccskIzVO.o
XSetWMProtocols /var/tmp/ccskIzVO.o
XOpenDisplay /var/tmp/ccskIzVO.o
XNextEvent /var/tmp/ccskIzVO.o
glXGetClientString /var/tmp/ccskIzVO.o
XSolarisGetVisualGamma /var/tmp/ccskIzVO.o
glViewport /var/tmp/ccskIzVO.o
XSync /var/tmp/ccskIzVO.o
glXSwapBuffers /var/tmp/ccskIzVO.o
XSelectInput /var/tmp/ccskIzVO.o
sunOglCurrentContext /var/tmp/ccskIzVO.o
glXGetConfig /var/tmp/ccskIzVO.o
glXDestroyContext /var/tmp/ccskIzVO.o
glXQueryServerString /var/tmp/ccskIzVO.o
glXMakeCurrent /var/tmp/ccskIzVO.o
glMatrixMode /var/tmp/ccskIzVO.o
XCreateWindow /var/tmp/ccskIzVO.o
glShadeModel /var/tmp/ccskIzVO.o
glXIsDirect /var/tmp/ccskIzVO.o
glGlobalAlphaFactorfSUN /var/tmp/ccskIzVO.o
sunOglCurPrimTablePtr /var/tmp/ccskIzVO.o
XMapWindow /var/tmp/ccskIzVO.o
XFree /var/tmp/ccskIzVO.o
glClear /var/tmp/ccskIzVO.o
glBlendFunc /var/tmp/ccskIzVO.o
glXCreateContext /var/tmp/ccskIzVO.o
glClearColor /var/tmp/ccskIzVO.o
glBegin /var/tmp/ccskIzVO.o
glDisable /var/tmp/ccskIzVO.o
XCreateColormap /var/tmp/ccskIzVO.o
glEnd /var/tmp/ccskIzVO.o
XStoreName /var/tmp/ccskIzVO.o
glFlush /var/tmp/ccskIzVO.o
glLoadIdentity /var/tmp/ccskIzVO.o
glXChooseVisual /var/tmp/ccskIzVO.o
glEnable /var/tmp/ccskIzVO.o
glDrawBuffer /var/tmp/ccskIzVO.o
glGetString /var/tmp/ccskIzVO.o
glXWaitGL /var/tmp/ccskIzVO.o
XInternAtom /var/tmp/ccskIzVO.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
billnic[root]:/home/bblair/programs/OpenGLExamples/examples/sun/galpha>
So what is going on?
Please..can anyone help?
Thanks!
John William Blair
Thanks!John William Blair "The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness. For he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee."
http://members.home.com/chucklez/wtc/index.html
http://members.home.com/chucklez/wtc/index.html
April 03, 2001 07:08 PM
It seems like you are getting a lot of unresolved externals because you do not linking to any libraries. Did not the port come with a makefile?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement