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:[email protected]]
Sent: Thursday, October 17, 2013 11:57 AM
To: Lampman, Adam J; [email protected]
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" <[email protected]>
To: "[email protected]"
<[email protected]>
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:[email protected]]
Sent: Wednesday, October 16, 2013 5:53 PM
To: Ferrell, Stephen; Lampman, Adam J; [email protected]
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" <[email protected]>
To: "Lampman, Adam J" <[email protected]>;
"[email protected]" <[email protected]>
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" <[email protected]>
To: "[email protected]"
<[email protected]>
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
[email protected]
________________________________
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
[email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general
The C compiler identification is MSVC 17.0.60610.1
Check for working C compiler using: Visual Studio 11
Check for working C compiler using: Visual Studio 11 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
CMake version = 2.8.11.2
CMAKE_SYSTEM_NAME = Windows
SH_EXECUTABLE = SH_EXECUTABLE-NOTFOUND
WARNING: bash shell not found, ctest will not work properly
Checking whether system has ANSI C header files
Looking for 4 include files stdlib.h, ..., float.h
Looking for 4 include files stdlib.h, ..., float.h - found
Performing Test memchrExists
Performing Test memchrExists - Success
Performing Test freeExists
Performing Test freeExists - Success
Check for whether ctype.h macros work on characters with the
high bit set.
High-bit characters - work
ANSI C header files - found
Looking for include file unistd.h
Looking for include file unistd.h - not found
Looking for include file termios.h
Looking for include file termios.h - not found
Looking for include file stdint.h
Looking for include file stdint.h - found
Looking for crt_externs.h
Looking for crt_externs.h - not found
Performing Test HAVE_SYS_WAIT_H
Performing Test HAVE_SYS_WAIT_H - Failed
Looking for DIR in sys/types.h;dirent.h
Looking for DIR in sys/types.h;dirent.h - not found.
Looking for DIR in sys/types.h;sys/ndir.h
Looking for DIR in sys/types.h;sys/ndir.h - not found.
Looking for DIR in sys/types.h;sys/dir.h
Looking for DIR in sys/types.h;sys/dir.h - not found.
Looking for DIR in sys/types.h;ndir.h
Looking for DIR in sys/types.h;ndir.h - not found.
Check for signal return type in <signal.h>
Check for signal handler return type type void - found
Looking for popen
Looking for popen - not found
Looking for usleep
Looking for usleep - not found
Looking for mkstemp
Looking for mkstemp - not found
Looking for unlink
Looking for unlink - found
Looking for _NSGetArgc
Looking for _NSGetArgc - not found
Looking for isfinite
Looking for isfinite - not found
Looking for finite
Looking for finite - not found
Looking for finite
Looking for finite - not found
Looking for _finite
Looking for _finite - not found
Looking for _finite
Looking for _finite - found
Looking for isnan
Looking for isnan - not found
Looking for isnan
Looking for isnan - not found
Looking for _isnan
Looking for _isnan - not found
Looking for _isnan
Looking for _isnan - found
Looking for isinf
Looking for isinf - not found
Looking for isinf
Looking for isinf - not found
Looking for _isinf
Looking for _isinf - not found
Looking for _isinf
Looking for _isinf - not found
Looking for snprintf
Looking for snprintf - not found
Looking for _snprintf
Looking for _snprintf - found
SWIG was not found. Please specify Swig executable location
Could NOT find Perl (missing: PERL_EXECUTABLE)
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Looking for pkg-config - not found
WARNING: Makefile+pkg-config version of examples build in the install tree will
not work.
X11_FOUND =
X11_INCLUDE_DIR =
X11_COMPILE_FLAGS =
X11_LIBRARIES =
WARNING: SHAPELIB not found. Setting HAVE_SHAPELIB to OFF.
The CXX compiler identification is MSVC 17.0.60610.1
Check for working CXX compiler using: Visual Studio 11
Check for working CXX compiler using: Visual Studio 11 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for using namespace support
Check for using namespace - found
Looking for C++ include cmath
Looking for C++ include cmath - found
Check for using stdint.h with CXX compiler
Check for using stdint.h with CXX compiler - ok
WARNING: no working Fortran compiler so disabling Fortran bindings and examples.
WARNING: swig not found. Disabling java bindings
WARNING: swig not found. Disabling Python bindings
WARNING: swig not found. Disabling Octave bindings
Looking for include paths and libraries for Tcl/Tk
Could NOT find Tclsh (missing: TCL_TCLSH)
Could NOT find TCL (missing: TCL_LIBRARY TCL_INCLUDE_PATH)
Could NOT find TCLTK (missing: TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY
TK_INCLUDE_PATH)
Could NOT find TK (missing: TK_LIBRARY TK_INCLUDE_PATH)
Looking for include paths and libraries for Tcl/Tk - not found
WARNING: Disabling everything that is Tcl/Tk related
WARNING: no working Ada compiler so disabling Ada bindings and examples.
WARNING: swig not found. Disabling Lua bindings
D Compiler Install Prefix (use D_PATH env var to override): CMAKE_D_COMPI
WARNING: no working D compiler so disabling D bindings and examples.
Check for NaN awareness in C compiler
Check for NaN awareness in C compiler - found
WARNING: qhull library not found. Setting PL_HAVE_QHULL to OFF.
WARNING: pango not found because pkg-config not available.
WARNING: pkg-config not found. Setting cairo drivers to OFF.
WARNING: ENABLE_tk OFF. Setting PLD_tk, PLD_ntk, and PLD_tkwin OFF.
WARNING: pkg-config not found. Setting PLD_psttf to OFF.
Found unsuitable Qt version "" from NOTFOUND
WARNING: Qt4 development environment not found so disabling all qt devices.
WARNING: PLD_extqt is OFF so setting ENABLE_qt to OFF.
WARNING: ENABLE_python is OFF so setting ENABLE_pyqt4 to OFF.
Looking for gdi32 header and library
Looking for gdi32 header and library - not found
WARNING: Setting PLD_wingcc to OFF.
WARNING: wxWidgets or its libraries not found so setting all wxwidgets devices
to OFF.
WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
Looking for haru pdf header and library
Looking for haru pdf header and library - not found
WARNING: Setting PLD_pdf to OFF.
WARNING:ocamlc not found. Disabling ocaml bindings
WARNING: validate target will not be available to check for syntax issues in
the PLplot DocBook documentation because onsgmls (or env) was not found.
WARNING: Perl modules XML::Parser and/or XML::DOM not available
so cannot check that swig_documentation.i is up to date.
Summary of CMake build system results for PLplot
Install location variables which can be set by the user:
CMAKE_INSTALL_PREFIX: C:/Program Files (x86)/plplot
CMAKE_INSTALL_EXEC_PREFIX C:/Program Files (x86)/plplot
CMAKE_INSTALL_BINDIR C:/Program Files (x86)/plplot/bin
CMAKE_INSTALL_DATADIR C:/Program Files (x86)/plplot/share
CMAKE_INSTALL_LIBDIR C:/Program Files (x86)/plplot/lib
CMAKE_INSTALL_INCLUDEDIR C:/Program Files (x86)/plplot/include
CMAKE_INSTALL_INFODIR C:/Program Files (x86)/plplot/share/info
CMAKE_INSTALL_MANDIR C:/Program Files (x86)/plplot/share/man
Derived install location variables:
DATA_DIR C:/Program Files (x86)/plplot/share/plplot5.9.10
LIB_DIR C:/Program Files (x86)/plplot/lib
INCLUDE_DIR C:/Program Files (x86)/plplot/include/plplot
BIN_DIR C:/Program Files (x86)/plplot/bin
TCL_DIR C:/Program Files (x86)/plplot/share/plplot5.9.10/tcl
ADA_INCLUDE_DIR C:/Program Files (x86)/plplot/share/ada/adainclude/plplotadad
ADA_LIB_DIR C:/Program Files (x86)/plplot/lib/ada/adalib/plplotadad
PYTHON_INSTDIR
DRV_DIR C:/Program Files (x86)/plplot/lib/plplot5.9.10/driversd
DOC_DIR C:/Program Files (x86)/plplot/share/doc/plplot
MAN_DIR C:/Program Files (x86)/plplot/share/man
INFO_DIR C:/Program Files (x86)/plplot/share/info
Other important CMake variables:
CMAKE_SYSTEM_NAME: Windows
UNIX:
WIN32: 1
APPLE:
MSVC: 1 (MSVC_VERSION: 1700)
MINGW:
MSYS:
CYGWIN:
BORLAND:
WATCOM:
SWIG_FOUND: FALSE
PERL_FOUND: FALSE
X11_FOUND:
CMAKE_BUILD_TYPE:
CMAKE_C_COMPILER CMAKE_C_FLAGS: C:/Program Files
(x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe /DWIN32 /D_WINDOWS /W3
CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS: C:/Program Files
(x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe /DWIN32 /D_WINDOWS /W3 /GR
/EHsc
LIB_TAG: d
ENABLE_DYNDRIVERS: ON
DRIVERS_LIST: mem;null;ps;svg;xfig
DEVICES_LIST: mem;null;ps;svg;xfig
Library options:
BUILD_SHARED_LIBS: ON PL_DOUBLE: ON
Optional libraries:
PL_HAVE_QHULL: OFF WITH_CSA: ON
PL_HAVE_FREETYPE: PL_HAVE_PTHREAD:
HAVE_AGG: HAVE_SHAPELIB: OFF
Language Bindings:
ENABLE_f77: OFF ENABLE_f95: OFF
ENABLE_cxx: ON ENABLE_java: OFF
ENABLE_python: OFF ENABLE_octave: OFF
ENABLE_tcl: OFF ENABLE_itcl: OFF
ENABLE_tk: OFF ENABLE_itk: OFF
ENABLE_pdl: OFF ENABLE_wxwidgets: OFF
ENABLE_ada: OFF ENABLE_d: OFF
ENABLE_ocaml: OFF ENABLE_lua: OFF
ENABLE_qt: OFF ENABLE_pyqt4: OFF
Configuring done
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general