File: README

package info (click to toggle)
libabw 0.1.3-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 2,552 kB
  • sloc: cpp: 5,605; sh: 4,477; makefile: 233; perl: 52; ansic: 4
file content (145 lines) | stat: -rw-r--r-- 5,524 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
INSTALLATION:

Unix/Linux
==========

Installation on Unix/Linux should be simple. Simply execute the following 
sequence of commands:

./configure ; make ; su -c 'make install'

Note that this assumes that you have development versions of glib (>=
2.0.0) and libgsf (>= 1.6.0).

LINKS:

glib is available at ftp://ftp.gnome.org/pub/gnome/sources/glib/
libgsf is available at ftp://ftp.gnome.org/pub/gnome/sources/libgsf/

Extensive installation instructions can be found in the INSTALL file.


Windows - Microsoft(tm) Visual Studio/C++
=========================================

A workspace for MSVC6 can be found in the ./build/win32/ directory.
This workspace contains a projects file to compile a release version or 
a debug version of libabw. 

NOTE: Using the MSVC build system will result in a static library only. 
No dll can be created yet using this build system. If you want to create 
a dll, please use the MingW build system (see below for details).


Windows - MinGW
===============

First of all, in order to use libabw in your application, you do not need
to build it yourself. If you have access to a binary distribution, you
are encouraged to use it. If for whatever reason you still want to build
libabw using MinGW, read following instructions.


* Build environment and dependencies

In order to build libabw, you have to have installed MinGW distribution from
http://www.mingw.org. Because the build system of libabw uses autotools, you
must install also the MSys packages. It is advisable to install all recent
packages into a path that does not contain spaces. Besides the MinGW
distribution, you have to install the _runtime_ and _development_ packages of 
_ALL_ dependencies, namely: GNU libiconv, GNU gettext, zlib, glib2, pkg-config,
libxml2 and libgsf. All these packages are linked to from Tor Lillqvist's
"GTK+ and GIMP for Windows" web-site. Go directly to the download section
(http://www.gimp.org/~tml/gimp/win32/downloads.html).

You will have to create libtool import libraries for every DLL that you have to
link with. To do this, generate from the DLL a *.def file using "pexports.exe"
tool -- included in one of the packages of MinGW distribution -- and create
a libtool import library using the DLL, the *.def file and "dlltool.exe".
Put the result in the ../lib/ directory relative to the DLL file.
For more details, check the documentation part of the MinGW web-site.
Typically, in order to make libtool's work easier, call the import libraries
"lib"$(dllname)".dll.a", unless the library has already the "lib" in the name.
Example: iconv.dll -> libiconv.dll.a; intl.dll -> libintl.dll.a;
BUT: libxml2.dll -> libxml2.dll.a


* Build procedure

1. Unpack the source code by running:

  gunzip -dc libabw-{version}.tar.gz | tar xpf

You can also use WinZip or any other GUI compression tool.

2. Next, run:

  export ACLOCAL_FLAGS='-I <pkg-config installation prefix>/share/aclocal'; \
  ./autogen.sh

Some versions of libtool have bug that prevents MinGW from creating shared
libraries. The autogen.sh script "libtoolizes" the package using the libtool
included with MinGW distribution. Like that you are sure that your libtool is
able to create DLLs.
The ACLOCAL_FLAGS variable is there in order to allow the auto* scripts to find
the pkg.m4 macro that is part of the pkg-config distribution. If this macro is
not found, the generated configure script will be ending with an error.

3. Time to configure libabw; run:

  ./configure [--prefix=<target>] [--enable-static] [--disable-shared]

By default, the configure script uses as prefix "/usr/local" and configures to
create only shared libraries. Myself, I build using following options:
"./configure --prefix=/target --enable-static --enable-shared"

4. In the "libtool" created by the configure script, replace any occurrence of

  deplibs_check_method="file_magic ^x86 archive import|^x86 DLL"

by

  deplibs_check_method="pass_all"

For some reasons, libtool is not able to distinguish the libtool import
libraries libXXX.dll.a from static libraries libXXX.a.  This ugly hack makes it
link with the first libXXX.dll.a that it meets.

5. Nearly done. Make sure you have a clean build by running:
 
  make clean all

6. And last but not least, compile and install libabw by running:

  make install [-i]

If you configure using "--enable-static --disable-shared" (pure static library
creation), the libtool import libraries are not created. Make will try to install
them and will stop with error. The "-i" option makes it to report the error, but
not to stop. Like that the installation will succeed.

That's all folks! For more information, ask questions at the mailing list
libabw-devel@list.sourceforge.net. Remember that Uncle Google can also be of big
help especially when the problem is not with libabw, but with one of its 
dependencies.

Mac OSX
=======

Compilation on Mac OSX requires following fix in order not to have errors concerning
unresolved symbols at runtime

1.  perl -pi -e 's,need_relink=yes,need_relink=no,g' ltmain.sh

2. ALL IN ONE LINE !!!

    perl -pi -e 's,\$CC -r -keep_private_externs -nostdlib -o \$\{lib\}-master.o 
    \$libobjs \&\& \$CC,\$nonopt -r -keep_private_externs -nostdlib -o 
    \$\{lib\}-master.o \$libobjs \&\& \$nonopt,g' configure
  
3.  ./configure --with-pic [all other options]

     make ; sudo make install
     
The above-mentioned fix is from the libabw-1.info file of Justin F. Hallet who
maintains the libabw-1* packages for Fink project (http://fink.sourceforge.net).