From: Alan W. I. <ir...@be...> - 2005-03-21 08:42:33
|
On 2005-03-21 00:45-0500 David Strang wrote: >> From Cygwin/X using gcc 3.3.3 I run (as listed in the INSTALL): > > $ > ./configure --prefix=$MYPREFIX --disable-tcl --without-qhull --disable-cgm - > -disable-dyndrivers > > I get this: > > Configure results: > > command: ./configure --prefix= ^^^^^ This empty prefix will cause trouble when you get everything built and you want to do the final "make install" command. I suspect the environment variable MYPREFIX was completely unset. You should fix that before you do your next ./configure, i.e. (echo $MYPREFIX should show what prefix you actually want to use for the final plplot installation). > host: i686-pc-cygwin > have_x: yes > prefix: > CC: gcc > CXX: g++ > F77: g77 > LIB_TAG: d > devices: png jpeg hp7470 hp7580 lj_hpgl mem null pbm plmeta ps psc > pstex wingcc xfig xwin > > Available device drivers: > static: gd.lo hpgl.lo mem.lo null.lo pbm.lo plmeta.lo ps.lo pstex.lo > wingcc.lo xfig.lo xwin.lo ^^^^^ For your next ./configure, you will want to add the option --disable-wingcc (see below). > dynamic: > > Compilation options: > with_debug: no > > Library options: > enable_shared: yes enable_static: yes > with_rpath: yes with_double: yes > > Optional libraries: > with_qhull: no with_csa: yes > with_freetype: yes with_pthreads: no > > Language Bindings: > enable_tcl: no enable_itcl: no > enable_cxx: yes enable_f77: yes > enable_java: yes enable_python: no > enable_octave: no > > I then run make and get this: > > > Creating library file: .libs/libplplotd.dll.a > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x499): In function > `PlplotWndProc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:302: undefined > reference to `_CreateSolidBrush@4' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x4d7):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:304: undefined reference to > `_SelectObject@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x50a):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:306: undefined reference to > `_DeleteObject@4' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x958): In function > `plD_init_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:487: undefined > reference to `_GetDeviceCaps@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x971):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:487: undefined reference to > `_GetDeviceCaps@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x9a3):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:487: undefined reference to > `_GetDeviceCaps@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x9bc):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:487: undefined reference to > `_GetDeviceCaps@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0xb2c): In function > `plD_line_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:548: undefined > reference to `_Polyline@12' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0xc08): In function > `plD_polyline_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:576: undefined > reference to `_Polyline@12' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0xcf2): In function > `plD_fill_polygon_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:613: undefined > reference to `_CreateSolidBrush@4' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0xd0d):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:614: undefined reference to > `_SelectObject@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0xd2f):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:615: undefined reference to > `_Polygon@12' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0xd43):/home/Administrator/P > LPLOT/plplot-5.3.1/drivers/wingcc.c:616: undefined reference to > `_DeleteObject@4' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x10c3): In function > `plD_state_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:744: undefined > reference to `_CreatePen@12' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x10d8):/home/Administrator/ > PLPLOT/plplot-5.3.1/drivers/wingcc.c:745: undefined reference to > `_SelectObject@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x10f4):/home/Administrator/ > PLPLOT/plplot-5.3.1/drivers/wingcc.c:746: undefined reference to > `_DeleteObject@4' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x114b): In function > `plD_esc_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:767: undefined > reference to `_SetROP2@8' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x13c0): In function > `plD_pixel_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:907: undefined > reference to `_SetPixel@16' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x1400): In function > `plD_pixelV_wingcc': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:915: undefined > reference to `_SetPixelV@16' > ../drivers/.libs/libplplotdrv.a(wingcc.o)(.text+0x1443): In function > `init_freetype_lv1': > /home/Administrator/PLPLOT/plplot-5.3.1/drivers/wingcc.c:945: undefined > reference to `_GetDeviceCaps@8' > collect2: ld returned 1 exit status > make[2]: *** [libplplotd.la] Error 1 > make[2]: Leaving directory `/home/Administrator/PLPLOT/plplot-5.3.1/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/Administrator/PLPLOT/plplot-5.3.1' > make: *** [all] Error 2 Your problem is caused by trying to build the wingcc device for a cygwin platform. Nobody has tried that before (wingcc was developed on a mingw platform and so far only works there). Cygwin and mingw are sufficiently similar, I am sure with some effort you could get the wingcc device up and running. Probably it is a matter of having the correct libraries (and associated header files) installed, and the configuration set up so it can find those headers and libraries. However, until our one mingw/device wingcc expert comes up with the right plplot fix for device wingcc on cygwin, a good workaround is to disable the wingcc device using the --disable-wingcc option for the ./configure command. In sum, use --disable-wingcc and a valid --prefix option on your next ./configure and then try the make command again. If build problems show up for other devices, disable them as well as a workaround. Good luck, and let us know how it goes. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |