Questions tagged [libtool]

GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.

Building a shared library differs from one architecture to the other. GNU Libtool is a script that allows package developers to create portable compiled libraries. It is often used in conjunction with GNU Automake and GNU Autoconf.

493 questions
175
votes
3 answers

What are libtool's .la file for?

What are libtool's .la files for? How are they used with a shared object?
chappar
  • 7,275
  • 12
  • 44
  • 57
77
votes
11 answers

libtool version mismatch error

When building my application with kdevelop 3.5 on Ubuntu 10.04, I get the following errors: libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You…
mspoerr
  • 2,680
  • 5
  • 32
  • 35
44
votes
4 answers

installed libtool but libtoolize not found

i'm trying to build libxml2 from source on my mac. so i have autoconf, libtool, and automake installed using macports autoconf and automake seem to be working fine as expected. i try running autogen.sh first. libtoolize --version unfortunately…
tzl
  • 1,540
  • 2
  • 20
  • 31
39
votes
3 answers

Installing glib in non-standard prefix fails

I'm trying to install glib in a non-standard prefix but I get the following when running make install: /bin/sh ../libtool --mode=install /usr/bin/install -c libgthread-2.0.la '/root/build/lib' libtool: install: error: cannot install…
Elektito
  • 3,863
  • 8
  • 42
  • 72
37
votes
2 answers

What is the difference between LDADD and LIBADD?

I'm trying to setup an automake project that uses a mix of libtool libraries and exectuables, and I'm having a hard time grokking the automake documentation, esp. as relates to telling the compiler to link against. So can someone explain the…
Dave
  • 7,555
  • 8
  • 46
  • 88
34
votes
2 answers

Automake error './ltmain.sh' not found

I've installed mingw and msys by using mingw-get-setup.exe. I've also installed Autotools(autoconf, automake,m4,libtool) into C:\/opt/autotools. When I run automake, the following error always occurs: configure.ac:11: error: required file…
user1345414
  • 3,745
  • 9
  • 36
  • 56
30
votes
7 answers

Error installing PCRE

I'm trying to install PCRE on my Ubuntu 11.10 Server. When I run the "make" command, I get a really long output which always ends in this error: libtool: link: ( cd ".libs" && rm -f "libpcreposix.la" && ln -s "../libpcreposix.la" "libpcreposix.la" )…
Ohas
  • 1,887
  • 4
  • 21
  • 29
26
votes
6 answers

Possibly undefined macro: AC_PROG_LIBTOOL

I want to build protobuf, so I just cloned the package and cd in the directory. When I type ./autogen.sh, some error happened. I receive callback: configure.ac:104: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are…
eeach
  • 261
  • 1
  • 3
  • 3
20
votes
2 answers

Link a static library to a shared one during build?

I have a problem building a shared library with GCC/Linux. Currently this shared library is created with GCC/libtool option "-shared" and everything is fine. Now there are two additional, static libraries (.a-files) that have to be added to this…
Elmi
  • 5,899
  • 15
  • 72
  • 143
17
votes
2 answers

Building .so module with autotools/libtool without .la and .a variants being installed

How to build and install a .so module with autotools/libtool without .la and .a libraries being also installed into --prefix path? Currently i am using following Makefile.am: lib_LTLIBRARIES = libCurlDownloader.la libCurlDownloader_la_SOURCES =…
Alexander Tumin
  • 635
  • 6
  • 17
17
votes
2 answers

"AM_PROG_LIBTOOL" not found in library

I got an error while trying to compile a library in centOS 7, and i tried reinstall libtool but it does not help. Below is the error + autoreconf --install configure.ac:32: warning: macro 'AM_PROG_LIBTOOL' not found in library configure.ac:32:…
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
17
votes
2 answers

Libtool claims it does not support shared libraries during cross compilation

I'm attempting to build the expat (2.0.0) XML parsing library for an ARM embedded machine running busybox 1.13, and during the ./configure, I get the error: checking if libtool supports shared libraries... no I've specified my gcc, g++, ar, ranlib,…
Alex Marshall
  • 10,162
  • 15
  • 72
  • 117
16
votes
4 answers

What does compiling WITH_PIC (-DWITH_PIC, --with-pic) actually do?

When compiling binaries from source, what are the real-world differences between generating PIC objects or not? At what point down the road would someone say, "I should have generated/used PIC objects when I compiled MySQL." Or not? I've read…
Jeff
  • 5,962
  • 16
  • 49
  • 81
14
votes
1 answer

Libtool think that a "library was moved" but it isn't the case

I am currently recompiling gtk+ and dependencies from source (I have no other choices). All my custom packages are installed in a specific custom point (let's call it /packages) (it can seem odd but this time again, I have no other choices). When I…
ThR37
  • 3,965
  • 6
  • 35
  • 42
14
votes
1 answer

Libtool installation issue with make install

I use the following autotool steps to install my pacakges: ./configure make make install prefix=/my/path However I got the following libtool warning "libtool: warning: remember to run 'libtool --finish /usr/local/lib' and "libtool: warning:…
Jes
  • 2,614
  • 4
  • 25
  • 45
1
2 3
32 33