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
6
votes
5 answers

how can I use eclipse to debug a libtool generated script?

I have a large c++ project built with libtool. the problem is that eclipse will not run a libtool generated script, and I get a "Program is not a recognized executable." error message. how can I use eclipse debugger? I'm currently using kdevelop3 as…
WeaselFox
  • 7,220
  • 8
  • 44
  • 75
6
votes
1 answer

Do Bluegene systems support ltdl or any other kind of dlopen() support?

so I have some code that uses dlopen for loading libraries, and I want it to work on a bluegene system, but I don't have a bluegene to test things on, and I've never directly worked with one. Does bluegene support ltdl.h, or does it use something…
Sam
  • 63
  • 2
6
votes
5 answers

ltdl.h Not found error while building chaincode

I am trying to build a chaincode by using go build. when i run Go build command its reporting .\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.g‌​o:29:18: fatal error:ltdl.h: No such file or directory compilation terminated I installed…
surender
  • 71
  • 1
  • 1
  • 3
6
votes
1 answer

Create both static and shared library with GNU libtool?

I am using the GNU autotools (including automake!) for my project. I would like to know if I could create a static and a shared library using libtool? Or would the declarations be separate? Would this: LT_INIT(shared static) work?
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
6
votes
2 answers

possibly undefined macro: AC_SUBST

I am trying to build a project and it throws me an error : autoreconf: running: /usr/bin/autoconf --force configure.ac:19: error: possibly undefined macro: AC_SUBST If this token and others are legitimate, please use m4_pattern_allow. …
6
votes
3 answers

How can I install libtoolize in cygwin?

When I'm trying to build Apache Thrift source in cygwin, I'm getting error saying "Couldn't find libtoolize!". How can I install libtoolize in cygwin?
Chamila Wijayarathna
  • 1,815
  • 5
  • 30
  • 54
6
votes
1 answer

libtool error during linkage

I am compiling courier-authlib-0.66.1 which utilizes libtool for compilation. I modified all Makefiles to remove CFLAGS and CXXFLAGS in --mode=link lines because I use some specially compiler flags for clang that will confuse the linker. During…
ZillGate
  • 1,173
  • 12
  • 22
6
votes
0 answers

Android NDK: Using libtool library

The following library is created with autotools: Makefile.am: lib_LTLIBRARIES = libandi.la libandi_la_SOURCES = $(SMILE_SOURCES) libandi_la_CPPFLAGS = $(SMILE_CPPFLAGS) libandi_la_LIBADD = $(SMILE_LIBS) libandi_la_LDFLAGS =…
user2212461
  • 3,105
  • 8
  • 49
  • 87
6
votes
1 answer

libtool and Windows DLLs

I have an difficult relationship with the GNU autotools, especially libtool. But because they kick ass when it comes to portability and cross compilation I started using them again. Unfortunately I can't get libtool to build proper windows DLLs.…
rioki
  • 5,988
  • 5
  • 32
  • 55
6
votes
3 answers

libtool linkage - global state initalization of convenience libraries

I have a setup that does not work, and I have no idea what I am doing wrong here - I am trying to convert a project from handcrafted Makefiles to autotools, and I think I have most of it set up correctly, as the application and all its convenience…
Andreas Grapentin
  • 5,499
  • 4
  • 39
  • 57
6
votes
1 answer

Is it possible to link some — but not all — libraries statically with libtool?

I am working on a project which is built using autoconf, automake and libtool. The project is distributed in both binary and source form. On Linux, by default the build script links to all libraries dynamically. This makes sense since Linux users…
Daniel Cassidy
  • 24,676
  • 5
  • 41
  • 54
6
votes
3 answers

Autoconf - Where does config.h go?

I'm writing my own unit testing library (using autoconf, automake, and libtool) to better fit my needs (I don't need a super large amount of features, just a test runner and assertions). I have gotten to the point where it seems to be usable. Of…
alternative
  • 12,703
  • 5
  • 41
  • 41
6
votes
0 answers

How to use --whole-archive with libtool

How can I use --whole-archive with libtool without it being reordered? Background: I'm compiling Extrae (performance profiling) from sources which depends on Dyninst which depends on libdwarf, which, on Debian Wheezy, is provided as a static…
davepc
  • 320
  • 2
  • 10
6
votes
1 answer

Why doesn't Libtool want to link with a static library?

I want to build a shared library that uses ZipArchive using GNU Autotools but I'm having this problem: Warning: linker path does not have real file for library -lziparch. I have the capability to make that library automatically link in when you link…
Gabi
  • 600
  • 2
  • 13
6
votes
1 answer

Libtool creates static library only - I need shared objects

I have a couple of C++ classes and I want to compile them into a shared library using autotools and libtool. These are my configure.ac and Makefile.am files: configure.ac: AC_PREREQ(2.67) AC_INIT(somelib.so, 1.0,…
Zbigh1
  • 379
  • 4
  • 13