I tried to compile the last ocplot svn-version, 9.4.2006, with gcc-4.0.2 on ubuntu..
autoreconf works
./configure works and shows everything o.k.
make doesn't work
following error messages appears:
octplot-FTVectoriser.o: In function `FTVectoriser::MakeMesh(double)':
FTGL/FTVectoriser.cpp:184: undefined reference to `gluNewTess'
FTGL/FTVectoriser.cpp:186: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:187: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:188: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:189: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:190: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:198: undefined reference to `gluTessProperty'
FTGL/FTVectoriser.cpp:202: undefined reference to `gluTessProperty'
FTGL/FTVectoriser.cpp:203: undefined reference to `gluTessNormal'
FTGL/FTVectoriser.cpp:204: undefined reference to `gluTessBeginPolygon'
FTGL/FTVectoriser.cpp:221: undefined reference to `gluTessEndPolygon'
FTGL/FTVectoriser.cpp:218: undefined reference to `gluTessEndContour'
FTGL/FTVectoriser.cpp:210: undefined reference to `gluTessBeginContour'
FTGL/FTVectoriser.cpp:215: undefined reference to `gluTessVertex'
FTGL/FTVectoriser.cpp:223: undefined reference to `gluDeleteTess'
collect2: ld returned 1 exit status
Thanks for help
Michael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This does not look like a problem in gcc, rather it looks like you are missing the glu library. check if you have it installed -- note -- you will need the development package.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
nothing special for configure. I think your problem is not missing headers but missing libraries. Anyway, this is what my octplot on debian is linked against:
linux-gate.so.1 doesn't exist of course..
all others exist..
but the libX11.so.6, libGLU.so.1 & libGL.so.1 aren't in the /usr/X11R6/lib directory.. they are in the /usr/lib directory.. but I don't think that this is the problem... but it's of course strange...
I will do some more tests..
thanks again
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
I tried to compile the last ocplot svn-version, 9.4.2006, with gcc-4.0.2 on ubuntu..
autoreconf works
./configure works and shows everything o.k.
make doesn't work
following error messages appears:
octplot-FTVectoriser.o: In function `FTVectoriser::MakeMesh(double)':
FTGL/FTVectoriser.cpp:184: undefined reference to `gluNewTess'
FTGL/FTVectoriser.cpp:186: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:187: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:188: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:189: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:190: undefined reference to `gluTessCallback'
FTGL/FTVectoriser.cpp:198: undefined reference to `gluTessProperty'
FTGL/FTVectoriser.cpp:202: undefined reference to `gluTessProperty'
FTGL/FTVectoriser.cpp:203: undefined reference to `gluTessNormal'
FTGL/FTVectoriser.cpp:204: undefined reference to `gluTessBeginPolygon'
FTGL/FTVectoriser.cpp:221: undefined reference to `gluTessEndPolygon'
FTGL/FTVectoriser.cpp:218: undefined reference to `gluTessEndContour'
FTGL/FTVectoriser.cpp:210: undefined reference to `gluTessBeginContour'
FTGL/FTVectoriser.cpp:215: undefined reference to `gluTessVertex'
FTGL/FTVectoriser.cpp:223: undefined reference to `gluDeleteTess'
collect2: ld returned 1 exit status
Thanks for help
Michael
This does not look like a problem in gcc, rather it looks like you are missing the glu library. check if you have it installed -- note -- you will need the development package.
I have installed something like:
GL/gl.h
GL/glu.h
libglu1-mesa-dev...
maybe the version is to old..
which are you using?
Michel
You are missing glut, not glu. So the appropriate magic words are (at least for my debian):
apt-get install freeglut3-dev
Shai
thanks for this tip...
it isn't it.. still the same errors...!
maybe I will check, waht all is installed on cygwin... but not the next 4 days
Michael
actualy, I have installed glut.h and also freeglut.h
also something like glut.H
are you using some special parameters for ./configure?
nothing special for configure. I think your problem is not missing headers but missing libraries. Anyway, this is what my octplot on debian is linked against:
shaia@colinux:~/octplot/src$ ldd octplot
linux-gate.so.1 => (0xffffe000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7f71000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7f5d000)
libfltk_gl.so.1.1 => /usr/lib/libfltk_gl.so.1.1 (0xb7f53000)
libfltk.so.1.1 => /usr/lib/libfltk.so.1.1 (0xb7eb0000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dd3000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7dad000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7da2000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7c6a000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb7c56000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7c53000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7b88000)
libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0xb7b09000)
libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0xb7aa6000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7a94000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7a85000)
/lib/ld-linux.so.2 (0xb7fea000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7a56000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a4e000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7a4a000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb7a45000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7a24000)
linux-gate.so.1 doesn't exist of course..
all others exist..
but the libX11.so.6, libGLU.so.1 & libGL.so.1 aren't in the /usr/X11R6/lib directory.. they are in the /usr/lib directory.. but I don't think that this is the problem... but it's of course strange...
I will do some more tests..
thanks again
ok, I have seen the error... the directories are essential..
thanks again
Michael,
Can you please write some more on how you solved this so that others which might need this info will benifit?
Shai
of course I can, when I have solved it... my try was not successfull!!
in ubuntu 5.1 is no package which provide /usr/X11R6/lib/libGLU.so.1
take one from the older version doesn't work ...
I have to search further..
I found the solution
autoreconf
./configure LDFLAGS="-lGLU -lGL -lglut"
make
l is a no I(i) it is a small L :-(
Michel
This seems strange -- why does configure not find the correct libraries? at least the fltk-config should find the right OpenGL libraries.
can you try:
fltk-config --use-gl --ldflags
and
ldd octplot
also the same problem with gcc-3.4 ...
I could not found a solution ...
till now..