<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Setup_cygwin</title><link>https://sourceforge.net/p/plplot/wiki/Setup_cygwin/</link><description>Recent changes to Setup_cygwin</description><atom:link href="https://sourceforge.net/p/plplot/wiki/Setup_cygwin/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 17 Jan 2020 06:22:35 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/wiki/Setup_cygwin/feed" rel="self" type="application/rss+xml"/><item><title>Setup_cygwin modified by Arjen Markus</title><link>https://sourceforge.net/p/plplot/wiki/Setup_cygwin/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -27,7 +27,7 @@
 -   Devel/gcc or Devel/gcc4
 -   Devel/g++ or Devel/g++4 (for C++ bindings)
 -   Devel/gada or Devel/gada4 (for Ada bindings)
--   Devel/gfortran (for f95 bindings)
+-   Devel/gfortran (for Fortran bindings)
 -   Devel/libqhull-devel
 -   Devel/swig
 -   Devel/cmake
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Arjen Markus</dc:creator><pubDate>Fri, 17 Jan 2020 06:22:35 -0000</pubDate><guid>https://sourceforge.netcea794578d8fab6f7302513eb5be5b09337a7f21</guid></item><item><title>Setup_cygwin modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Setup_cygwin/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,3 +1,15 @@
+
+
 Setup Cygwin
 ------------

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 03 Nov 2018 21:15:10 -0000</pubDate><guid>https://sourceforge.nete0b3f402191632cb5bcef63ef7b82002d3d7bfc8</guid></item><item><title>Setup_cygwin modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Setup_cygwin/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -36,7 +36,8 @@
 `  set BUILDDIR=path_to_build_directory_plplot`
 `  set PATH=$BUILDDIR/dll:$PATH`
 `  `
-`  # for Python, add the path to LAPACK`
+`  # If you require our Python bindings they require numpy which requires lapack.`
+`  # So for this case you must do the following:`
 `  set PATH=/usr/lib/lapack:$PATH`
 `  `
 `  # run CMake and make`
@@ -71,7 +72,7 @@

 If you want to use PLplot with Python, you need to install version 2.7 and remove any references to Python 3 (it may be that version 3 also works, but if you have both installed, some mixture is used in CMake and that does not lead to a successful build.)

-You need to install Numpy and LAPACK as well. Because the LAPACK libraries are installed in a separate directory you need to add that directory to the PATH too:
+You need to install numpy and LAPACK as well. Because the LAPACK libraries are installed in a separate directory you need to add that directory to the PATH too:

 `   export PATH=/usr/lib/lapack:$PATH`

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sun, 12 Jul 2015 19:51:43 -0000</pubDate><guid>https://sourceforge.net01ae5f94c0f77c801558df9e4ebe9e5baf422439</guid></item><item><title>Setup_cygwin modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Setup_cygwin/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sun, 05 Oct 2014 20:01:44 -0000</pubDate><guid>https://sourceforge.net57ad44d52d4ba480dee10d3f3e6adf36642886f7</guid></item><item><title>Setup_cygwin modified by Alan W. Irwin</title><link>https://sourceforge.net/p/plplot/wiki/Setup_cygwin/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="setup-cygwin"&gt;Setup Cygwin&lt;/h2&gt;
&lt;p&gt;Cygwin (&lt;a class="" href="http://www.cygwin.com" rel="nofollow"&gt;Cygwin Homepage&lt;/a&gt;) is a Linux-like environment for Windows. It consists of two parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.&lt;/li&gt;
&lt;li&gt;A collection of tools which provide Linux look and feel.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.&lt;/p&gt;
&lt;h3 id="download-and-install"&gt;Download and install&lt;/h3&gt;
&lt;p&gt;Download the &lt;a class="" href="http://www.cygwin.com/setup.exe" rel="nofollow"&gt;Cygwin installer&lt;/a&gt; and execute it. This installer allows you to download and install the Cygwin environment and tools. In order to make Plplot compile on Cygwin you need the following packages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Devel/gcc or Devel/gcc4&lt;/li&gt;
&lt;li&gt;Devel/g++ or Devel/g++4 (for C++ bindings)&lt;/li&gt;
&lt;li&gt;Devel/gada or Devel/gada4 (for Ada bindings)&lt;/li&gt;
&lt;li&gt;Devel/gfortran (for f95 bindings)&lt;/li&gt;
&lt;li&gt;Devel/libqhull-devel&lt;/li&gt;
&lt;li&gt;Devel/swig&lt;/li&gt;
&lt;li&gt;Devel/cmake&lt;/li&gt;
&lt;li&gt;Devel/libtool&lt;/li&gt;
&lt;li&gt;Devel/make&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Recommended packages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;X11/fontconfig - used by the cairo plotting library, among others&lt;/li&gt;
&lt;li&gt;development packages for various optional components (cairo, Qt4, ...)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="setup"&gt;Setup&lt;/h3&gt;
&lt;p&gt;To configure and compile PLplot with Cygwin you need to use the Cygwin-specific version of CMake. Some environment variables need to be set: the path to the shared libraries of PLplot and possibly to LAPACK. Use, for instance, a shell script like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# set up the PATH&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set PLPLOTSRC=path_to_PLplot_source_directory&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set BUILDDIR=path_to_build_directory_plplot&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set PATH=$BUILDDIR/dll:$PATH&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# for Python, add the path to LAPACK&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;set PATH=/usr/lib/lapack:$PATH&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# run CMake and make&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;cmake $PLPLOTSRC -G "Unix Makefiles" ... further options ...&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;make&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To run the examples (built with -DBUILD_TEST=ON) you need to add the path to the PLplot shared libraries, for instance the directory \$BUILDDIR/dll from above. As environment variables behave in the same way under Cygwin as they do under Linux, you need to have them set in the current process.&lt;/p&gt;
&lt;h3 id="experiences-plplot-599-under-cygwin"&gt;Experiences (PLplot 5.9.9) under Cygwin&lt;/h3&gt;
&lt;p&gt;Below is a short report on recent (september 2013) experiences with PLplot under Cygwin.&lt;/p&gt;
&lt;p&gt;The following configuration was tested:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MS Windows 7, 64 bits&lt;/li&gt;
&lt;li&gt;Cygwin, installed using setup.exe version 2.819 (also 64 bits)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To build PLPlot under Cygwin you need to use the version of CMake that comes with Cygwin. Other packages that are required are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;fontconfig: without this not all drivers can function (notably the cairo-based but also the X Window based drivers)&lt;/li&gt;
&lt;li&gt;libltdl: for dynamic drivers and shared libraries&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The build process requires that you extend the path with the directory to the DLLs that will be created:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;export PATH=/cygdrive/d/plplot-build/dll:$PATH&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;assuming you build PLplot in the directory d:\plplot-build - the prefix "/cygdrive/d" and the forward slashes are used to reflexct the UNIX syntax, where the disks are not indicated separately.&lt;/p&gt;
&lt;p&gt;Below follow specific remarks about the various components of PLplot:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Python:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want to use PLplot with Python, you need to install version 2.7 and remove any references to Python 3 (it may be that version 3 also works, but if you have both installed, some mixture is used in CMake and that does not lead to a successful build.)&lt;/p&gt;
&lt;p&gt;You need to install Numpy and LAPACK as well. Because the LAPACK libraries are installed in a separate directory you need to add that directory to the PATH too:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;export PATH=/usr/lib/lapack:$PATH&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Java:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There does not seem to be a Java package in this version of Cygwin. An older version did have one as part of the GNU compiler suite, but CMake could not recognise it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;cairo:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want to use the cairo device drivers, then you need to build PLplot with static libraries and static drivers, as currently a strange error occurs during the loading of the cairo driver.&lt;/p&gt;
&lt;p&gt;The wincairo device driver is currently turned off, because this depends on a component of the cairo libraries that is not supported by Cygwin. All other drivers work fine.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Qt:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You need to install the development libraries, as the build process requires several development utilities, among which &lt;strong&gt;qmake&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;qtwindow&lt;/strong&gt; device driver currently terminates with an error message that would indicate a programming error in the initialisation. As it works fine under Linux, this seems related to Cygwin rather than PLplot.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;X Window:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The X Window based device drivers (xwin, xqt) work fine, but they are very slow. It is not practical to actually use them.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This is something that requires further investigation, as this slowness is not inherent to X Window under Cygwin&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;wingcc:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The wingcc device driver (which uses the native windowing capacities of MS Windows 7) works fine and quickly, just as under Windows itself.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Perl:&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Perl-bindings for PLplot are part of PDL. Only when this port has been completed can this be tested.&lt;/p&gt;
&lt;p&gt;All language components that were tested (C, C++, Fortran, Python, Tcl and Tcl/Tk) work fine. The non-interactive tests gave clean results.&lt;/p&gt;
&lt;p&gt;The content of this page is available under the &lt;a class="" href="http://www.gnu.org/copyleft/fdl.html" rel="nofollow"&gt;GNU Free Documentation License 1.2&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alan W. Irwin</dc:creator><pubDate>Sat, 04 Oct 2014 05:20:22 -0000</pubDate><guid>https://sourceforge.net54310074baa79a4d5159e182f70cd63ec69c30f9</guid></item></channel></rss>