
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.miscdebris.net/plplot_wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gm2124</id>
		<title>PLplotWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.miscdebris.net/plplot_wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gm2124"/>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Special:Contributions/Gm2124"/>
		<updated>2026-06-19T21:50:49Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.4</generator>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_Borland_Turbo_C%2B%2B_Explorer_Edition_(free_IDE_and_compiler)&amp;diff=1703</id>
		<title>Configure PLplot for Borland Turbo C++ Explorer Edition (free IDE and compiler)</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_Borland_Turbo_C%2B%2B_Explorer_Edition_(free_IDE_and_compiler)&amp;diff=1703"/>
				<updated>2007-05-27T15:37:10Z</updated>
		
		<summary type="html">&lt;p&gt;Gm2124: New page: Everything is pretty much as with Borland C++ 5.5, the only thing that&amp;#039;s needs change are lines in &amp;lt;plplot install dir&amp;gt;\CMakeLists.txt (line numbers are given according to plplot5.7.3).  C...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Everything is pretty much as with Borland C++ 5.5, the only thing that&amp;#039;s needs change are lines in &amp;lt;plplot install dir&amp;gt;\CMakeLists.txt (line numbers are given according to plplot5.7.3).&lt;br /&gt;
&lt;br /&gt;
Comment this out: &lt;br /&gt;
&lt;br /&gt;
 line77-&amp;gt; # Borland Compiler must compile in ANSII mode&lt;br /&gt;
 line78-&amp;gt; if(BORLAND)&lt;br /&gt;
 line79-&amp;gt;   ADD_DEFINITIONS(-A)&lt;br /&gt;
 line80-&amp;gt; endif(BORLAND)&lt;br /&gt;
&lt;br /&gt;
I.e. lines above should look like:&lt;br /&gt;
&lt;br /&gt;
 # Borland Compiler must compile in ANSII mode&lt;br /&gt;
 #if(BORLAND)&lt;br /&gt;
 #  ADD_DEFINITIONS(-A)&lt;br /&gt;
 #endif(BORLAND)&lt;br /&gt;
&lt;br /&gt;
The reason for this is, that &amp;#039;-A&amp;#039; flag forces ASCII compile mode, which results in compiler errors when processing winnt.h (it uses some Borland special extensions like &amp;#039;_EDX&amp;#039; register names) and winreg.h.&lt;br /&gt;
Also it fails on some source .c files because of single-line comments starting with &amp;#039;//&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
I understand that commenting out something in CMakeLists.txt is hack-like thing, but this option cannot be configured usual way, because the commented lines add &amp;#039;-A&amp;#039; to compiler command line after all other flags have been added, so putting &amp;#039;-AT&amp;#039; or &amp;#039;-A-&amp;#039; in CMAKE_C_FLAGS doesn&amp;#039;t help.&lt;/div&gt;</summary>
		<author><name>Gm2124</name></author>	</entry>

	<entry>
		<id>http://www.miscdebris.net/plplot_wiki/index.php?title=Main_Page&amp;diff=1702</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://www.miscdebris.net/plplot_wiki/index.php?title=Main_Page&amp;diff=1702"/>
				<updated>2007-05-27T15:17:11Z</updated>
		
		<summary type="html">&lt;p&gt;Gm2124: /* Instructions per Windows platform */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the (un-)official Wiki for [http://plplot.sf.net PLplot]. It should provide additional information to complement the PLplot [http://plplot.sourceforge.net/docbook-manual/ documentation].&lt;br /&gt;
&lt;br /&gt;
== Building PLplot  ==&lt;br /&gt;
Our traditional Autotools Build System (ABS) may be used to configure the PLplot build on Unix platforms (only) although it is deprecated and is no longer being maintained.  We suggest using our new CMake Build System (CBS) instead which may be used to configure the PLplot build on both Unix and Windows platforms.&lt;br /&gt;
&lt;br /&gt;
=== (Deprecated.)  Building PLplot with our traditional ABS ===&lt;br /&gt;
&lt;br /&gt;
Follow the ABS directions that are contained in the INSTALL file.  We have no plans to update those ABS instructions any more.&lt;br /&gt;
&lt;br /&gt;
=== Building PLplot with our new CBS ===&lt;br /&gt;
&lt;br /&gt;
Our CMake Build System (CBS) has been made available as part of our development releases of PLplot starting with version 5.7.0 and is a build-system paradigm shift compared to our traditional Autotools Build System (ABS).  Thus, it is important to consult the CMake documentation to get the most out of our CBS.  That documentation is quite thorough but tends to be a bit scattered so we have collected what we think are the best [[general CMake documentation links]] for your convenience.&lt;br /&gt;
 &lt;br /&gt;
After consulting that documentation, [http://www.cmake.org/HTML/Install.html install] the appropriate package of [http://www.cmake.org CMake] for your system platform. Note, you must use at least version 2.4.5 of CMake for your PLplot configuration.&lt;br /&gt;
&lt;br /&gt;
==== Generic Unix instructions for our CBS ====&lt;br /&gt;
&lt;br /&gt;
===== (Optional) set environment variables to help cmake find system components that are installed in non-standard locations =====&lt;br /&gt;
&lt;br /&gt;
Here is one particular example (which must be executed before the cmake invocation discussed below).&lt;br /&gt;
&lt;br /&gt;
 export CMAKE_INCLUDE_PATH=/home/software/autotools/install/include:/home/software/cgmlib/cd1.3&lt;br /&gt;
 export CMAKE_LIBRARY_PATH=/home/software/autotools/install/lib:/home/software/cgmlib/cd1.3&lt;br /&gt;
 export PKG_CONFIG_PATH=/home/software/libLASi/install/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
For this particular example, &amp;lt;tt&amp;gt;CMAKE_INCLUDE_PATH&amp;lt;/tt&amp;gt; helps cmake to find the headers for &amp;lt;tt&amp;gt;libltdl&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;libcd&amp;lt;/tt&amp;gt; in non-standard install locations; &amp;lt;tt&amp;gt;CMAKE_LIBRARY_PATH&amp;lt;/tt&amp;gt; helps cmake to find the &amp;lt;tt&amp;gt;libltdl&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;libcd&amp;lt;/tt&amp;gt; libraries in non-standard install locations;  and &amp;lt;tt&amp;gt;PKG_CONFIG_PATH&amp;lt;/tt&amp;gt; helps cmake to use the &amp;lt;tt&amp;gt;pkg-config&amp;lt;/tt&amp;gt; command internally to find a libLASi pkg-config module file that is installed in a non-standard location.&lt;br /&gt;
&lt;br /&gt;
In general, &amp;lt;tt&amp;gt;CMAKE_INCLUDE_PATH&amp;lt;/tt&amp;gt; helps cmake find headers and other files that are installed in non-standard locations; &amp;lt;tt&amp;gt;CMAKE_LIBRARY_PATH&amp;lt;/tt&amp;gt; helps cmake find libraries that are installed in non-standard locations; and &amp;lt;tt&amp;gt;PKG_CONFIG_PATH&amp;lt;/tt&amp;gt; helps pkg-config (either externally or internally from cmake) find pkg-config modules installed in non-standard locations.  Finally, although not used in the specific example above, the colon-separated environment variable &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; helps cmake find executables that are installed in non-standard locations.&lt;br /&gt;
&lt;br /&gt;
===== (Optional) set environment variables to specify the compilers and compiler flags =====&lt;br /&gt;
&lt;br /&gt;
Here is one particular example (which must be executed before the cmake invocation discussed below).&lt;br /&gt;
&lt;br /&gt;
 export CC=&amp;quot;gcc -O2&amp;quot;&lt;br /&gt;
 export CXX=&amp;quot;g++ -O2&amp;quot;&lt;br /&gt;
 export FC=&amp;quot;g77 -O2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note a better option is to set CMAKE_BUILD_TYPE to one of Debug, Release, RelWithDebInfo, or MinSizeRel.  If you don&amp;#039;t set this variable and don&amp;#039;t set the environment variables above, then by default no compiler options (i.e., no optimization and no debugging symbols) are used for gcc-related&lt;br /&gt;
compilers for our CBS which makes for fast builds, but slow execution.&lt;br /&gt;
&lt;br /&gt;
===== cmake invocation  =====&lt;br /&gt;
&lt;br /&gt;
Here is one typical example.&lt;br /&gt;
&lt;br /&gt;
 mkdir build_dir&lt;br /&gt;
 cd build_dir&lt;br /&gt;
 cmake -DCMAKE_INSTALL_PREFIX=/my/prefix \&lt;br /&gt;
 -DCMAKE_VERBOSE_MAKEFILE=ON  \&lt;br /&gt;
 ../plplot_cmake &amp;gt;&amp;amp; cmake.out&lt;br /&gt;
&lt;br /&gt;
Check the cmake.out file for any configuration issues, especially WARNING messages which signal that a component of PLplot has been removed because required system components for that component have not been found.&lt;br /&gt;
&lt;br /&gt;
Everything can be controlled with -D options to the cmake command.  There are a large number of [[CMake options for PLplot]] which can be set for cmake to personalize your build.  Use the ccmake front end to cmake to obtain documentation of all these options.&lt;br /&gt;
In the above case we have specified a particular install prefix &amp;quot;/my/prefix&amp;quot; and verbose make results (essential if you want to see the exact commands used for the build).&lt;br /&gt;
&lt;br /&gt;
Note in the above example an empty build directory called build_dir is used to insure a clean start, and ../plplot_cmake is a freshly checked out source tree (which remains clean because you never actually create any files in that directory tree).  To start fresh, simply execute &amp;quot;cd build_dir; rm -rf *&amp;quot;.  Of course, this is an extremely dangerous command (since it removes everything in the current directory and all subdirectories), but you should be okay so long as you cd to the correct directory before executing the &amp;quot;rm&amp;quot; command.&lt;br /&gt;
&lt;br /&gt;
===== Post-cmake build, install, and build-tree and install-tree tests ===== &lt;br /&gt;
[[The PLplot build and install]] follows the cmake invocation.  Build-tree tests may be done with the &amp;quot;ctest&amp;quot; command.  Note, these ctests are limited to just the psc (colour postscript) device and can only be performed if cmake is invoked with the -DBUILD_TEST=ON option (which roughly doubles the build time because all the examples must be built).&lt;br /&gt;
The installed tree can be tested with [[the PLplot install-tree test]] for a large variety of PLplot device drivers.&lt;br /&gt;
&lt;br /&gt;
===== Specifics for various Unix platforms =====&lt;br /&gt;
* [[Linux]]&lt;br /&gt;
&lt;br /&gt;
==== Mac OSX ====&lt;br /&gt;
* [[Mac OSX]] instructions&lt;br /&gt;
* [[Mac OSX Status]] current status&lt;br /&gt;
&lt;br /&gt;
==== Windows ====&lt;br /&gt;
&lt;br /&gt;
===== Instructions per Windows platform =====&lt;br /&gt;
&lt;br /&gt;
* [[Configure PLplot for Visual CXX]]&lt;br /&gt;
* [[Configure PLplot for MinGW/CLI]]&lt;br /&gt;
* [[Configure PLplot for cygwin]]&lt;br /&gt;
* [[Configure PLplot for Borland CXX 5.5 (free command line tools)]]&lt;br /&gt;
* [[Configure PLplot for Borland Turbo C++ Explorer Edition (free IDE and compiler)]]&lt;br /&gt;
* [[Install 3rd party libraries]]&lt;br /&gt;
&lt;br /&gt;
===== Status of CBS on Windows =====&lt;br /&gt;
&lt;br /&gt;
* [[Overview of the status on Windows]]&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous Debris ==&lt;br /&gt;
&lt;br /&gt;
=== Edit Wiki pages ===&lt;br /&gt;
&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User&amp;#039;s Guide] for information on using the wiki software. More information can be found here:&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
&lt;br /&gt;
=== Maintain Wiki ===&lt;br /&gt;
This wiki will be backed up on a regular basis. Use these [[BackupInstructions]].&lt;br /&gt;
&lt;br /&gt;
To restore a backup follow these [[RestoreInstructions]].&lt;/div&gt;</summary>
		<author><name>Gm2124</name></author>	</entry>

	</feed>