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.

476 questions
164
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
  • 6,747
  • 12
  • 39
  • 56
74
votes
10 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,620
  • 5
  • 31
  • 35
40
votes
4 answers

installed libtool but libtoolize not found

im trying to build libxml2 from source on my mac. so i have autoconf libtool and automake installed using mac ports autoconf and automake seem to be working fine as expected. i try running autogen.sh first. libtoolize --version unfortunately…
tzl
  • 1,460
  • 1
  • 17
  • 31
32
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
  • 6,236
  • 5
  • 32
  • 65
32
votes
2 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,375
  • 4
  • 36
  • 67
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,879
  • 3
  • 20
  • 29
29
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,215
  • 8
  • 30
  • 55
19
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,261
  • 12
  • 57
  • 123
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
  • 625
  • 6
  • 17
14
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,535
  • 13
  • 43
  • 72
14
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
  • 9,406
  • 11
  • 65
  • 109
14
votes
4 answers

Why would autoconf/automake project link against installed library instead of local development library?

I'm creating a library libgdata that has some tests and non-installed programs. I am running into the problem that once I've installed the library once, the programs seem to be linking to the installed version and not the local version in…
Beau Simensen
  • 4,458
  • 2
  • 34
  • 55
13
votes
2 answers

How can an autotools user specify a combination of static & dynamic linking?

I'm building a program with autoconf, automake, and libtool. My work requires that I statically link (most) libraries. This hasn't been a problem in the past because I could statically link everything with -all-static. Now it's a problem because I…
tprk77
  • 1,011
  • 1
  • 9
  • 21
13
votes
2 answers

How to debug a program wrapped in a libtool script?

I have a project involving shared libraries ie: mylib.so (test) program using these shared libraries ie: test_mylib When I try to run gdb on test_mylib, it prints: "test_mylib": not in executable format: File format not recognized When I use the…
yadutaf
  • 6,024
  • 1
  • 32
  • 45
12
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,555
  • 5
  • 31
  • 38
1
2 3
31 32