Group: LibreDWG/BuildingWithCygwin

From LibrePlanet
Jump to: navigation, search
m (moved LibreDWG/BuildingWithCygwin to Group:LibreDWG/BuildingWithCygwin: Consistent with rest of wiki namespace)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
These instructions were contributed by Felipe Sanches aka juca
+
We regularily smoke against cygwin (32bit) and cygwin64. See https://ci.appveyor.com/project/rurban/libredwg/history
 +
See the `.appveyor.yml` file for the exact recipes.
  
 
Install Cygwin.
 
Install Cygwin.
  
 
In the installer you must open the "devel" list expander and select these packages:
 
In the installer you must open the "devel" list expander and select these packages:
''git, automake, gcc, make, libtool''
+
'git, automake, gcc, make, libtool, libxml2, libxml2-devel, libiconv-devel, python2-devel,
 
+
python2-libxml2, swig, help2man, libcrypt-devel, pcre2'.
 
after installing ''cygwin'', open it and type:
 
after installing ''cygwin'', open it and type:
  
Line 18: Line 19:
 
</pre>
 
</pre>
  
I did not find ps-lib package in the cygwin distribution. This package is needed for one of our exemple programs, which outputs postcript files from a given dwg.
+
I did not find ps-lib package in the cygwin distribution. This package is needed for one of our example programs, which outputs postcript files from a given dwg.
For now, you should edit examples/Makefile.am and remove all references to dwg_ps
 
  
 
Then in order to build, the common procedure would be the usual:
 
Then in order to build, the common procedure would be the usual:
  
 
<pre>
 
<pre>
 +
sh autogen.sh
 
./configure
 
./configure
 
make
 
make
make install
 
 
make check
 
make check
</pre>
 
 
unfortunatelly, for some not yet well know reason, it complained about libtool version.
 
So, to fix that, I did type this command:
 
 
<pre>
 
autoreconf -i
 
</pre>
 
 
This recreates the configure script using the currently installed version of libtool (I think - correct me if I'm wrong).
 
Then you can do this to build:
 
 
<pre>
 
./configure
 
make
 
</pre>
 
 
and this to install the lib:
 
<pre>
 
 
make install
 
make install
</pre>
 
 
and then you do this to build the examples:
 
<pre>
 
make check
 
 
</pre>
 
</pre>

Latest revision as of 04:18, 25 June 2018

We regularily smoke against cygwin (32bit) and cygwin64. See https://ci.appveyor.com/project/rurban/libredwg/history See the `.appveyor.yml` file for the exact recipes.

Install Cygwin.

In the installer you must open the "devel" list expander and select these packages: 'git, automake, gcc, make, libtool, libxml2, libxml2-devel, libiconv-devel, python2-devel, python2-libxml2, swig, help2man, libcrypt-devel, pcre2'. after installing cygwin, open it and type:

git clone git://git.savannah.gnu.org/libredwg.git

this will fetch our current development code. Enter the directory with:

cd libredwg

I did not find ps-lib package in the cygwin distribution. This package is needed for one of our example programs, which outputs postcript files from a given dwg.

Then in order to build, the common procedure would be the usual:

sh autogen.sh
./configure
make
make check
make install