From: Lampman, A. J <ajl...@ba...> - 2013-10-17 17:41:50
|
I'm still a bit confused. Your instructions are very clear, but in my CMake window, EVERY line is red. First, a clarification: You are talking about the upper window with all the options, not the lower output window, correct? Both have red items. Immediately after my step 4 (once the files are generated) every single option line is red. Obviously it would be pointless to go through and de-select everything, and I highly doubt that my computer lacks support for every part of PLplot. I've attached the complete output, if you think it will help. -----Original Message----- From: Ferrell, Stephen [mailto:sfe...@ya...] Sent: Thursday, October 17, 2013 11:57 AM To: Lampman, Adam J; plp...@li... Subject: EXTERNAL:Re: [Plplot-general] Device selection problems Do not select the PLD_jpgqt driver unless you have the QT SDK installed and plan to use QT to develop for plplot. Same goes for FreeType, antigrain, wxWidgets, and a few other libraries. If you don't have these libraries, do not select them. You are also missing a couple steps in your list. Step 5a) Look for any items marked in red in the CMAKE window. If any items are marked in red, it means that you are either missing some components needed for the build you've selected, such as wxWidgets, QT, FreeType, etc..or that you've chosen some build options that conflict with one another. Step 5b) Resolve the options in red by either adding missing libraries and their respective paths and pressing configure again. Or resolve them by removing check marks for conflicting build options and pressing configure. Continue 5a and 5b until all the red lines are gone. Set 5c) After you've performed steps 5a and 5b and there are no more red items, then click Generate, allow CMAKE to create the new VS solution file and then open it in VS and run it per Step 7. After running the "build_all solution", you won't see anything special and the jpeg driver will be added to the plplot DLL or the static plplot link-time lib file. Once your examples are properly compiled and linked, the driver is embedded in the exe itself, so you won't see a separate or discrete jpeg driver-file or any other type of driver file. Upon running your exe, if everything worked properly, you should see "jpeg" listed as an output option when you run the example. Below is a text grab of Example X01c from my system set to use postscript, wxWidgets, SVG and DXF driver output. Your examples, based on selecting PLD_jpeg should show at least the jpeg file driver if the build went properly. c:\build-plplot\examples\c\release\x01c.exe [Enter] PLplot library version: 5.9.10 Plotting Options: < 1> ps PostScript File (monochrome) < 2> psc PostScript File (color) < 3> wxwidgets wxWidgets DC < 4> svg Scalable Vector Graphics (SVG 1.1) < 5> dxf AutoCAD 2D DXF File Enter device number or keyword: Hope this helps. ________________________________ From: "Lampman, Adam J" <ajl...@ba...> To: "plp...@li..." <plp...@li...> Sent: Thursday, October 17, 2013 9:29 AM Subject: Re: [Plplot-general] Device selection problems I tried, but it doesn't seem to be working. Here's what I did: 1. Open CMake 2.8.11.2 GUI. 2. Select source and build directories (source is freshly updated from PLPlot's SVN trunk). 3. Click "Configure." 4. Select "Microsoft Visual Studio 11" from the drop-down tab, then hit Ok. 5. Once CMake generates the files, scroll down to PLD_jpeg and check its box (as well as PLD_jpgqt for good measure). 6. Click "Generate." 7. Go to the build directory, open plplot.sln, right-click "ALL_BUILD" and tell it to build. After I did that, I searched the file for "jpg." The only things that showed up were cmake files, which aren't what I'm looking for, correct? I also did a search for "driver" and none of them had to do with jpegs, from what I could tell. I looked in the lib, dll, and driver folders and didn't see anything mentioned jpegs either. I also tried running my program again and got the same error as before. What am I doing wrong? -----Original Message----- From: Ferrell, Stephen [mailto:sfe...@ya...] Sent: Wednesday, October 16, 2013 5:53 PM To: Ferrell, Stephen; Lampman, Adam J; plp...@li... Subject: EXTERNAL:Re: [Plplot-general] Device selection problems Oh, and when you used CMAKE to initiate the building of plplot, did you make sure that you put checkmark in the box for PLD_jpeg? That tells CMAKE to add JPEG drivers to your lib/dll. ________________________________ From: "Ferrell, Stephen" <sfe...@ya...> To: "Lampman, Adam J" <ajl...@ba...>; "plp...@li..." <plp...@li...> Sent: Wednesday, October 16, 2013 4:38 PM Subject: Re: [Plplot-general] Device selection problems The initial 3 errors are due to your program looking for color palette files that it requires and not finding them. They're located under the plplot\bindings\tk\ folder of the plplot source tree. There are also a number of palette files located in the plplot\data\ Copy the palette files to the folder where your exe is located and run it again. ________________________________ From: "Lampman, Adam J" <ajl...@ba...> To: "plp...@li..." <plp...@li...> Sent: Wednesday, October 16, 2013 3:00 PM Subject: [Plplot-general] Device selection problems Hi! I’m completely new to PLplot. I’ve been trying to get it working for a while now, but I keep having problems with it. My goal is to use it to create plots in jpeg format. I’m not looking for interactive plots, a user interface, command line args, or anything fancy. I’m using Microsoft Visual Studio 2012 and I’m writing the code in C++. I’ve copied the x00 C++ example from the PLplot Examples page (nearly) word for word, and this is the output I get: *** PLPLOT WARNING *** Unable to open cmap0 file cmap0_default.pal *** PLPLOT WARNING *** Unable to open cmap0 file cmap0_default.pal *** PLPLOT WARNING *** Unable to open cmap1 .pal file cmap1_default.pal *** PLPLOT ERROR, ABORTING OPERATION *** plInitDispatchTable: Could not open drivers directory, aborting operation Plotting Options: Enter device number or keyword (stream 1): According to the documentation I’ve seen, it should be listing output options for me. Of course, the fact it can’t find the drivers directory may have something to do with that. I’ve tried putting in “JPEG” and many other keywords I’ve seen ,but nothing works. What do I need to do to get this to output jpegs? Do I need some sort of special jpeg driver? Thanks! Adam Lampman ajl...@ba... ________________________________ This message is intended only for the individual or entity to which it is addressed and contains information that is proprietary to The Babcock & Wilcox Company and/or its affiliates, or may be otherwise confidential. If the reader of this message is not the intended recipient, or the employee agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return e-mail and delete this message from your computer. Thank you. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general ----------------------------------------- This message is intended only for the individual or entity to which it is addressed and contains information that is proprietary to The Babcock & Wilcox Company and/or its affiliates, or may be otherwise confidential. If the reader of this message is not the intended recipient, or the employee agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return e-mail and delete this message from your computer. Thank you. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |