[liblouis-liblouisxml] Re: The readme file for windows installation

  • From: "John J. Boyer" <johnjboyer@xxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 10 Feb 2009 09:02:45 -0600

Michel,

I did some cosmetic editing and changed the name of the file to 
README.win32 . Since many people won't be familiar with bzr, and I just 
tried to get pkg-config to work on the Mac, I added instructions for 
installing it. However, I wasn't quite sure what prefix to use in the 
./configure command.

It would be nice to have a description of how to install Mingw, Msys and 
MsysDtk

Thanks for your contributions to the liblouis-liblouisxml software 
effort. This is really important.

Later we will have to figure out how to make the liblouis and 
liblouisxml libraries callable by Windows applications.

John

On Tue, Feb 10, 2009 at 07:44:52AM -0600, John J. Boyer wrote:
> Michel,
> 
> Thanks. i'll get back to you soon.
> 
> John
> 
> On Tue, Feb 10, 2009 at 02:00:28PM +0100, Michel Such wrote:
> > Hi John,
> > 
> > Here it is.
> > Fell free to modify or reformat it.
> > I hope I did not forget anything important.
> > 
> > Michel Such
> 
> 
> 
> -- 
> My websites:
> http://www.godtouches.org
> http://www.jjb-software.com
> Location: Madison, WI, USA
> 
> For a description of the software and to download it go to
> http://www.jjb-software.com

-- 
My websites:
http://www.godtouches.org
http://www.jjb-software.com
Location: Madison, WI, USA

BUILDING LIBLOUISXML UNDER WINDOWs
by
Michel Such

This document describes how to build liblouisxml and associated tools under
Windows using the Mingw environment.


1. Prerequisites and dependencies:

- Performing the steps below requires you to be familiar with a 
Unix-like
development environment.
The one used here is Mingw, so you first need to install the Mingw, Msys 
and
MsysDtk packages, which you can find at:
http://www.mingw.org .
You will also need to install pkg-config from:
http://pkg-config.freedesktop.org/releases/
Version 0.21 seems to be the preferred one. 
Uncompress it using the command:
tar xfz pkg-config-0.21.tar.gz
This creates a directory called pkg-config-0.21

Note: the tar command comes with Mingw and should be located in 
directory
c:\mingw\bin or c:\msys\1.0\bin

>From the MSYS prompt, changedir to pkg-config-0.21 with the command:
cd c:/pkg-config-0.21
(note the use of the '/' character instead of the '\' we
generally use under Windows).

Now, simply run the 3 following commands:
./configure --prefix=c:/louis
make
make install

- As liblouisxml depends on liblouis and libxml2 libraries, we will first build
and install these libraries.

- For convenience, we will install liblouis, libxml2 and liblouisxml in
directory c:\louis. Once the complete build process is finished, you 
will
be able to move this directory anywhere you want (for example in
c:\ProgramFiles\louis).


2. Installing Liblouis:

>From the Liblouis site:
http://www.jjb-software.com/
download the latest liblouis tarball.
Uncompress it using the command:
tar xfz liblouis-x.x.x.tar.gz
where x.x.x is the tarball version number used in the filename.
This creates a directory called liblouis-x.x.x

>From the MSYS prompt, changedir to liblouis-x.x.x with the command:
cd c:/liblouis-x.x.x
(note the use of the '/' character instead of the '\' we
generally use under Windows).

Now, simply run the 3 following commands:
./configure --prefix=c:/louis
make
make install


3. Installing libxml2:

>From the Libxml2 site:
http://xmlsoft.org/
download the latest libxml2 tarball.
Uncompress it using the command:
tar xfz libxml2-x.x.x.tar.gz
where x.x.x is the tarball version number used in the filename.
This creates a directory called libxml2-x.x.x

>From the MSYS prompt, changedir to libxml2-x.x.x with the command:
cd c:/libxml2-x.x.x

Now, simply run the 3 following commands:
./configure --prefix=c:/louis
make
make install


4. Installing liblouisxml:

>From the Liblouisxml site:
http://www.jjb-software.com/
download the latest liblouisxml tarball.
Uncompress it using the command:
tar xfz liblouisxml-x.x.x.tar.gz
where x.x.x is the tarball version number used in the filename.
This creates a directory called liblouisxml-x.x.x

We now need to configure pkg-config a bit so it can find the dependencies:
Edit the Msys profile located in directory c:\msys\1.0\etc
add the following line at the end of the file:
export PKG_CONFIG_PATH=c:/louis/lib/pkgconfig

>From the MSYS prompt, changedir to liblouisxml-x.x.x with the command:
cd c:/liblouisxml-x.x.x

Now, simply run the 3 following commands:
./configure --prefix=c:/louis --build=i686
make
make install

5 All done!

The directory c:\louis now contains all the components you need.
the bin subdirectory contains all executa les and dlls.
To save some disk space, you may apply the strip command against them as
follows:
strip *.exe
strip *.dll
The strip command comes with Mingw and should be located in directory
c:\mingw\bin

Other related posts: