Well, you're making progress.   But it is odd that jpeg still isn't showing up as an option.  When CMAKE unchecks a box of its own accord, it means there's a dependency that isn't being met.  I have a sneaky suspicion that this is happening because you haven't included a video driver in your build which is preventing the jpeg driver from being selected and built.

Add the PLD_wingcc driver to you build as well as PLD_jpeg and see what happens.  The PLD_wingcc driver is the Windows display driver coded for GCC but it compiles and works just fine under Visual Studio as well.



From: "Lampman, Adam J" <ajlampman@babcock.com>
To: "plplot-general@lists.sourceforge.net" <plplot-general@lists.sourceforge.net>
Sent: Thursday, October 17, 2013 2:47 PM
Subject: Re: [Plplot-general] Device selection problems

Ok, I did exactly that, but jpeg (or any options, for that matter) is still not showing up in my program. I ran PLplot's example x00, and it seems to be working fine with the exception that jpeg is not showing up as an option. When I run x00, this is the output:

Plotting Options:
< 1> ps        PostScript File (monochrome)
< 2> psc        PostScript File (color)
< 3> xfig      Fig file
< 4> null      Null device
< 5> mem        User-supplied memory device
< 6> svg        Scalable Vector Graphics (SVG 1.1)

Enter device number or keyword (stream 1):


Why is jpeg not showing up?
There were no red lines, and I configured with the PLD_jpeg, BUILD_TEST, and BUILD_TESTING boxes checked. Strangely, whenever I have PLD_jpeg checked and hit Configure it gets un-checked. I tried hitting Generate after it was unchecked by Configure then running the program as well as simply checking it, hitting Generate, and running the program. Both yield the same results. Sorry for being such a pain. I just can't figure this out.

-----Original Message-----
From: Ferrell, Stephen [mailto:sferrellblue@yahoo.com]
Sent: Thursday, October 17, 2013 3:16 PM
To: Lampman, Adam J; plplot-general@lists.sourceforge.net
Subject: EXTERNAL:Re: [Plplot-general] Device selection problems

Yes, I'm referring to the upper window.  After running CMAKE,  all options in the upper windows will show red until you hit the Configure button.  You may or may not have to point it to the correct compiler again on your system.  If it asks again, just select the proper compiler and hit Configure again.  You should see most of the red lines disappear at this point.
Press Configure again, if there are any other items still listed in red in the upper window, deselect them if they are for an API/SDK that you don't use, such as wxWdigets or QT, and hit Configure again.  Keep doing that until all the red items in the upper windows are gone and you're left with nothing but white.  Then make sure you've placed a check mark in PLD_jpeg and any other output formats that you want, such as SVG or TIFF and hit Configure again.  At this point, if there are no more red items to deal with, hit the Generate button to create the VS solution and then load and run the solution in VS.  I always make sure to place a check in the BUILD_TEST and BUILD_TESTING boxs so that the examples get compiled and linked too.  That way I can quickly test an example exe and validate that everything is working as selected under CMAKE.

________________________________

From: "Lampman, Adam J" <ajlampman@babcock.com>
To: "plplot-general@lists.sourceforge.net" <plplot-general@lists.sourceforge.net>
Sent: Thursday, October 17, 2013 12:27 PM
Subject: Re: [Plplot-general] Device selection problems


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 a screenshot as well as the complete output, if you think it will help.



-----Original Message-----
From: Ferrell, Stephen [mailto:sferrellblue@yahoo.com]
Sent: Thursday, October 17, 2013 11:57 AM
To: Lampman, Adam J; plplot-general@lists.sourceforge.net
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" <ajlampman@babcock.com>
To: "plplot-general@lists.sourceforge.net" <plplot-general@lists.sourceforge.net>
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:sferrellblue@yahoo.com]
Sent: Wednesday, October 16, 2013 5:53 PM
To: Ferrell, Stephen; Lampman, Adam J; plplot-general@lists.sourceforge.net
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" <sferrellblue@yahoo.com>
To: "Lampman, Adam J" <ajlampman@babcock.com>; "plplot-general@lists.sourceforge.net" <plplot-general@lists.sourceforge.net>
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" <ajlampman@babcock.com>
To: "plplot-general@lists.sourceforge.net" <plplot-general@lists.sourceforge.net>
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
ajlampman@babcock.com

________________________________

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 <http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk>
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general <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 <http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk>

_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general <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
Plplot-general@lists.sourceforge.net
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
Plplot-general@lists.sourceforge.net
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
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general