Group: LibreDWG/BuildingWithCygwin

From LibrePlanet
< Group:LibreDWG
Revision as of 18:37, 7 December 2010 by Johns (talk | contribs) (moved LibreDWG/BuildingWithCygwin to Group:LibreDWG/BuildingWithCygwin: Consistent with rest of wiki namespace)
Jump to: navigation, search

These instructions were contributed by Felipe Sanches aka juca

Install Cygwin.

In the installer you must open the "devel" list expander and select these packages: git, automake, gcc, make, libtool

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 exemple 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:

./configure
make
make install
make check

unfortunatelly, for some not yet well know reason, it complained about libtool version. So, to fix that, I did type this command:

autoreconf -i

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:

./configure
make

and this to install the lib:

make install

and then you do this to build the examples:

make check