Re: [opendx-dev] LDFLAGS=-L/usr/X11R6/lib needed for a successful build !?
Actually it is, if you look through the script DX_PATH_XM--it should be looking for Motif and including the directories where these are found. You need to do a little more investigation to determine why it is not finding your /usr/X11R6. David Hi, In order compile everything properly, I have to do following: $ ./CVSMake $ setenv LDFLAGS -L/usr/X11R6/lib $ ./configure --prefix=/opt \ --x-includes=/usr/local/include:/usr/X11R6/include \ --x-libraries=/usr/local/lib:/usr/X11R6/lib Without the LDFLAGS, it does not work (e.g. ImageMagick is not detected by the configure script and gmake ends with lots of unreferenced functions). I consider this a bug in the configure script because /usr/X11R6/lib should be a default unix lib-directory, is it not? Regards, Rob. -- . David L. Thompson Visualization and Imagery Solutions, Inc. mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472
Re: [opendx-dev] LDFLAGS=-L/usr/X11R6/lib needed for a successful build !?
David Thompson wrote: Actually it is, if you look through the script DX_PATH_XM--it should be looking for Motif and including the directories where these are found. You need to do a little more investigation to determine why it is not finding your /usr/X11R6. OK, I'll investigate, but need help. Without the LDFLAGS=-L/usr/X11R6/lib, all seems to go well until: [...] Making all in dxexec gmake[3]: Entering directory `/home/lahaye/SOFTWARE/dx/src/exec/dxexec' sh ../../../libtool --mode=link /usr/local/bin/gcc33 -O -pipe -Wall -g -O2 -I/usr/local/include -I/usr/X11R6/include -D_GNU_SOURCE -o dxexec -Wl,-export-dynamic main.o ../dpexec/libDPEXEC.la ../dxmods/libDXMODS.la ../dxmods/user.lo ../dxmods/libDXMODSN.la ../libdx/libLIBDX.la ../libdx/mem.lo ../libdx/memory.lo ../hwrender/libHW.la ../hwrender/opengl/libOPENGL.la -ldf -lXpm -lXm -lXp -L/usr/X11R6/lib -L/usr/local/lib -lMagick -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lfpx -lwmflite -ldpstk -ldps -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm /usr/local/bin/gcc33 -O -pipe -Wall -g -O2 -I/usr/local/include -I/usr/X11R6/include -D_GNU_SOURCE -o dxexec -Wl,-export-dynamic main.o ../dxmods/user.o ../libdx/mem.o ../libdx/memory.o ../dpexec/.libs/libDPEXEC.a -L/usr/X11R6/lib -L/usr/local/lib ../dxmods/.libs/libDXMODS.a ../dxmods/.libs/libDXMODSN.a ../libdx/.libs/libLIBDX.a ../hwrender/.libs/libHW.a ../hwrender/opengl/.libs/libOPENGL.a -ldf -lXpm -lXm -lXp /usr/local/lib/libMagick.so -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lfpx -lwmflite -ldpstk -ldps -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib /usr/local/lib/libjasper.so: warning: tmpnam() possibly used unsafely; consider using mkstemp() /usr/lib/libg2c.so.1: warning: tempnam() possibly used unsafely; consider using mkstemp() ../hwrender/opengl/.libs/libOPENGL.a(hwPortOGL.o): In function `remGLXContext': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwPortOGL.c:114: undefined reference to `glIsList' /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwPortOGL.c:115: undefined reference to `glDeleteLists' ../hwrender/opengl/.libs/libOPENGL.a(hwPortOGL.o): In function `_dxf_CREATE_WINDOW': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwPortOGL.c:390: undefined reference to `glXQueryExtension' /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwPortOGL.c:396: undefined reference to `glXChooseVisual' /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwPortOGL.c:485: undefined reference to `glXCreateContext' [...] ../hwrender/opengl/.libs/libOPENGL.a(hwInteractorEchoOGL.o): In function `_dxf_SET_ZBUFFER_STATUS': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwInteractorEchoOGL.c:578: undefined reference to `glEnable' /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwInteractorEchoOGL.c:580: undefined reference to `glDisable' ../hwrender/opengl/.libs/libOPENGL.a(hwInteractorEchoOGL.o): In function `_dxf_SET_LINE_ATTRIBUTES': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwInteractorEchoOGL.c:663: undefined reference to `glDisable' /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwInteractorEchoOGL.c:659: undefined reference to `glLineStipple' ../hwrender/opengl/.libs/libOPENGL.a(hwInteractorEchoOGL.o): In function `_dxf_DRAW_LINE': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwInteractorEchoOGL.c:679: undefined reference to `glEnd' ../hwrender/opengl/.libs/libOPENGL.a(hwInteractorEchoOGL.o): In function `_dxf_DRAW_CURSOR_COORDS': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwInteractorEchoOGL.c:893: undefined reference to `glFlush' ../hwrender/opengl/.libs/libOPENGL.a(hwDisplayListsOGL.o): In function `_delete_displayListObjectOGL': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwDisplayListsOGL.c:34: undefined reference to `glDeleteLists' ../hwrender/opengl/.libs/libOPENGL.a(hwDisplayListsOGL.o): In function `_dxf_openDisplayListOGL': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwDisplayListsOGL.c:58: undefined reference to `glGenLists' /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwDisplayListsOGL.c:62: undefined reference to `glNewList' ../hwrender/opengl/.libs/libOPENGL.a(hwDisplayListsOGL.o): In function `_dxf_endDisplayListOGL': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwDisplayListsOGL.c:80: undefined reference to `glEndList' ../hwrender/opengl/.libs/libOPENGL.a(hwDisplayListsOGL.o): In function `_dxf_callDisplayListOGL': /home/lahaye/SOFTWARE/dx/src/exec/hwrender/opengl/hwDisplayListsOGL.c:46: undefined reference to `glCallList' collect2: ld returned 1 exit status
Re: [opendx-dev] LDFLAGS=-L/usr/X11R6/lib needed for a successful build !?
This error with OpenGL not X. It appears that you do not have OpenGL installed. When you run configure what is the status of the OpenGL tests. Where is your OpenGL libs located? David David Thompson wrote: Actually it is, if you look through the script DX_PATH_XM--it should be looking for Motif and including the directories where these are found. You need to do a little more investigation to determine why it is not finding your /usr/X11R6. OK, I'll investigate, but need help. Without the LDFLAGS=-L/usr/X11R6/lib, all seems to go well until: -- . David L. Thompson Visualization and Imagery Solutions, Inc. mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472
Re: [opendx-dev] LDFLAGS=-L/usr/X11R6/lib needed for a successful build !?
David Thompson wrote: This error with OpenGL not X. It appears that you do not have OpenGL installed. When you run configure what is the status of the OpenGL tests. Where is your OpenGL libs located? Eh, but why do I not have these problems when I set setenv LDFLAGS -L/usr/X11R6/lib before running the configure and make? I believe that the /usr/X11R6/lib is simply forgotten somewhere in the configure/make process. But where exactly? Here is what you ask for: $ ./configure --prefix=/opt \ --x-includes=/usr/local/include:/usr/X11R6/include \ --x-libraries=/usr/local/lib:/usr/X11R6/lib configure.output $ grep -i gl configure.output checking for glXGetConfig in -lhclglx... no checking for gluBuild2DMipmaps in -lhclglu... no checking for glAccum in -lglwstati... no checking for glXGetConfig in -lGL... no checking for gluBuild2DMipmaps in -lGLU... no checking for GL/gl.h... yes checking for GL/glx.h... yes checking for gl.h... no checking for gl/device.h... no checking for gl/gl.h... no checking for xgl/xgl.h... no config.status: creating src/exec/hwrender/gl/Makefile config.status: creating src/exec/hwrender/opengl/Makefile config.status: creating src/exec/hwrender/xgl/Makefile The last three Makefile's are such that only opengl has work to do; nothing to be done in xgl/ and gl/. Should make sense, no? Moreover: $ cd src/exec/hwrender/opengl $ make has no errors at all!! Does that give a hint? On my FreeBSD system, I have: /usr/X11R6/include/GL/GLwDrawA.h /usr/X11R6/include/GL/GLwDrawAP.h /usr/X11R6/include/GL/GLwMDrawA.h /usr/X11R6/include/GL/GLwMDrawAP.h /usr/X11R6/include/GL/gl.h /usr/X11R6/include/GL/gle.h /usr/X11R6/include/GL/glext.h /usr/X11R6/include/GL/glu.h /usr/X11R6/include/GL/glut.h /usr/X11R6/include/GL/glx.h /usr/X11R6/include/GL/glxext.h /usr/X11R6/include/GL/glxint.h /usr/X11R6/include/GL/glxmd.h /usr/X11R6/include/GL/glxproto.h /usr/X11R6/include/GL/glxtokens.h /usr/X11R6/include/GL/osmesa.h /usr/X11R6/lib/libgle.a /usr/X11R6/lib/libgle.so - libgle.so.3 /usr/X11R6/lib/libgle.so.3 /usr/X11R6/lib/libglut.so - libglut.so.3 /usr/X11R6/lib/libglut.so.3 /usr/X11R6/lib/libGL.a /usr/X11R6/lib/libGL.so - libGL.so.1 /usr/X11R6/lib/libGL.so.1 /usr/X11R6/lib/libGLU.a /usr/X11R6/lib/libGLU.so - libGLU.so.1 /usr/X11R6/lib/libGLU.so.1 /usr/X11R6/lib/libGLw.a /usr/X11R6/lib/libMesaGL.so - libGL.so /usr/X11R6/lib/libMesaGLU.so - libGLU.so Regards, Rob.
Re: [opendx-dev] LDFLAGS=-L/usr/X11R6/lib needed for a successful build !?
The problem is, configure is not picking up the location of -lGL. If you look in your config.log and search for GL, then you should see what kind of error is there. The X stuff is looked up first then the GL stuff and then Motif. I'm betting that the standard X lookups from AutoConf don't store the LDFLAGS for further processed commands as we do with Motif. If that's the case, we can just move the Motif checks before the OpenGL checks. The reason it works when you set the LDFLAGS is that then configure can find the link library libGL.a or libGL.so. David David Thompson wrote: This error with OpenGL not X. It appears that you do not have OpenGL installed. When you run configure what is the status of the OpenGL tests. Where is your OpenGL libs located? Eh, but why do I not have these problems when I set setenv LDFLAGS -L/usr/X11R6/lib before running the configure and make? I believe that the /usr/X11R6/lib is simply forgotten somewhere in the configure/make process. But where exactly? Here is what you ask for: $ ./configure --prefix=/opt \ --x-includes=/usr/local/include:/usr/X11R6/include \ --x-libraries=/usr/local/lib:/usr/X11R6/lib configure.output $ grep -i gl configure.output checking for glXGetConfig in -lhclglx... no checking for gluBuild2DMipmaps in -lhclglu... no checking for glAccum in -lglwstati... no checking for glXGetConfig in -lGL... no checking for gluBuild2DMipmaps in -lGLU... no checking for GL/gl.h... yes checking for GL/glx.h... yes checking for gl.h... no checking for gl/device.h... no checking for gl/gl.h... no checking for xgl/xgl.h... no config.status: creating src/exec/hwrender/gl/Makefile config.status: creating src/exec/hwrender/opengl/Makefile config.status: creating src/exec/hwrender/xgl/Makefile The last three Makefile's are such that only opengl has work to do; nothing to be done in xgl/ and gl/. Should make sense, no? Moreover: $ cd src/exec/hwrender/opengl $ make has no errors at all!! Does that give a hint? On my FreeBSD system, I have: /usr/X11R6/include/GL/GLwDrawA.h /usr/X11R6/include/GL/GLwDrawAP.h /usr/X11R6/include/GL/GLwMDrawA.h /usr/X11R6/include/GL/GLwMDrawAP.h /usr/X11R6/include/GL/gl.h /usr/X11R6/include/GL/gle.h /usr/X11R6/include/GL/glext.h /usr/X11R6/include/GL/glu.h /usr/X11R6/include/GL/glut.h /usr/X11R6/include/GL/glx.h /usr/X11R6/include/GL/glxext.h /usr/X11R6/include/GL/glxint.h /usr/X11R6/include/GL/glxmd.h /usr/X11R6/include/GL/glxproto.h /usr/X11R6/include/GL/glxtokens.h /usr/X11R6/include/GL/osmesa.h /usr/X11R6/lib/libgle.a /usr/X11R6/lib/libgle.so - libgle.so.3 /usr/X11R6/lib/libgle.so.3 /usr/X11R6/lib/libglut.so - libglut.so.3 /usr/X11R6/lib/libglut.so.3 /usr/X11R6/lib/libGL.a /usr/X11R6/lib/libGL.so - libGL.so.1 /usr/X11R6/lib/libGL.so.1 /usr/X11R6/lib/libGLU.a /usr/X11R6/lib/libGLU.so - libGLU.so.1 /usr/X11R6/lib/libGLU.so.1 /usr/X11R6/lib/libGLw.a /usr/X11R6/lib/libMesaGL.so - libGL.so /usr/X11R6/lib/libMesaGLU.so - libGLU.so Regards, Rob. -- . David L. Thompson Visualization and Imagery Solutions, Inc. mailto:[EMAIL PROTECTED]5515 Skyway Drive, Missoula, MT 59804 Phone : (406)756-7472