From: <go...@fo...> - 2006-01-11 14:52:12
|
I have successfully compiled and run programs using plplot under winXP=20 using MinGW. I recently tried running one of these programs on another=20 PC running winXP and it aborted with the following error message: "Unable to open or allocate memory for font file" I have searched both the problems file and the mailing lists but as far=20 as I can tell this problem is not mentioned. If I've missed it then I=20 apologise and would be grateful for directions regarding how to solve=20 the problem. To be quite specific it's actually the same physical machine but in one=20 case it's a native installation and in the other I'm running winXP as a=20 VMWare guest OS. The VMWare installation runs on Linux Mandriva 10.2 aka=20 Limited Edition 2005. The PC is a Dell Latitude D800 using NVIDIA graphic= s. I tried running the program specifying another driver i.e. ps and in=20 this case the program runs as expected on either winXP installation so=20 it is clear that the problem lies with the wingcc driver. Since the=20 build of plplot went smoothly on the native winXP installation I tried=20 rebuilding it on the VMWare virtual winXP installation and again the=20 build went smoothly. Recompiling the program was then successful and=20 wingcc behaved as expected. As far as I can make out this means that=20 wether or not the executable works at least depends on whether I'm=20 running a virtual PC or not but there is also indication that it depends=20 on the actual hardware as I've tried running the same excutable on yet=20 another PC running a native win2k installation. In the hope that this will help the efforts to improve the wingcc driver. Best wishes, G=F6sta Ljungdahl --=20 Ph. D. in Solid State Physics Phone: +46 (0)8 5550 3662 Senior Research Officer Cell: +46 (0)709 277235 Computational Wave Propagation and Analysis FOI, Swedish Defense Research Agency Fax: +46 (0)8 5550 3686 SE-172 90 Stockholm e-mail: go...@fo... |
From: Werner S. <sm...@ia...> - 2006-01-11 16:03:48
|
Hi G=F6sta, I get this error message if the Hershey font files are not somewhere=20 where they could be found. So you must provide the files plstnd5.fnt plxtnd5.fnt at the location of your executable or maybe somewhere in your PATH=20 (which I'm not sure of). If they are in the same folder than the=20 executable it should work in any case. HTH, Werner G=F6sta Ljungdahl wrote: > I have successfully compiled and run programs using plplot under winXP=20 > using MinGW. I recently tried running one of these programs on another=20 > PC running winXP and it aborted with the following error message: >=20 > "Unable to open or allocate memory for font file" >=20 > I have searched both the problems file and the mailing lists but as far= =20 > as I can tell this problem is not mentioned. If I've missed it then I=20 > apologise and would be grateful for directions regarding how to solve=20 > the problem. >=20 > To be quite specific it's actually the same physical machine but in one= =20 > case it's a native installation and in the other I'm running winXP as a= =20 > VMWare guest OS. The VMWare installation runs on Linux Mandriva 10.2 ak= a=20 > Limited Edition 2005. The PC is a Dell Latitude D800 using NVIDIA graph= ics. >=20 > I tried running the program specifying another driver i.e. ps and in=20 > this case the program runs as expected on either winXP installation so=20 > it is clear that the problem lies with the wingcc driver. Since the=20 > build of plplot went smoothly on the native winXP installation I tried=20 > rebuilding it on the VMWare virtual winXP installation and again the=20 > build went smoothly. Recompiling the program was then successful and=20 > wingcc behaved as expected. As far as I can make out this means that=20 > wether or not the executable works at least depends on whether I'm=20 > running a virtual PC or not but there is also indication that it depend= s=20 > on the actual hardware as I've tried running the same excutable on yet=20 > another PC running a native win2k installation. >=20 > In the hope that this will help the efforts to improve the wingcc drive= r. >=20 > Best wishes, > G=F6sta Ljungdahl >=20 |
From: Alan W. I. <ir...@be...> - 2006-01-11 17:29:16
|
On 2006-01-11 17:02+0100 Werner Smekal wrote: > Hi G=F6sta, > > I get this error message if the Hershey font files are not somewhere wher= e=20 > they could be found. So you must provide the files > > plstnd5.fnt > plxtnd5.fnt > > at the location of your executable or maybe somewhere in your PATH (which= I'm=20 > not sure of). If they are in the same folder than the executable it shoul= d=20 > work in any case. I think Werner's instructions will work if you use static linking, but if you do anything more complicated like dynamic linking or use dynamic (plug-in) devices then there is a lot more you should install on your second machine. To be specific, "make install" on your first machine installs the above fonts files in $prefix/share/plplot5.5.3/ where $prefix is the installation prefix you chose when running ./configure. It also installs libraries required for dynamic linking at $prefix/lib and plug-ins at $prefix/lib/plplot5.5.3/driversd/. These are just some of the more important PLplot components that you might need on your second machine. To solve the issue in general, I suggest you ./configure for a unique prefi= x on your first machine so that prefix directory tree only contains PLplot related files, and after executing "make install" on the first machine, simply copy that whole unique PLplot prefix directory tree to your second machine (using exactly the same prefix name). Then you can rest assured that everything PLplot related will be available on your second machine. HTH. 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 __________________________ |