libtool

How to install and use libtool shared library (.lo files)?

So after I ran libtool and got out a libfoo.lo and foo.o file from my library source, how do I convert the libfoo.lo file into a normal Linux shared library, like libfoo.so.1.0.0 so I can install and link to it on my target system? ...

Is it possible to specify specific flags/define for DLL/SO build?

Hello, How can I specify some unique flags for DLL only builds. By default libtool adds -DDLL_EXPORT which is fine for most projects that follow GNU conventions, but if I work, for example, with Boost I may need to specify for my library flags: -DDLL_EXPORT -DBOOST_ALL_DYN_LINK for DLL only builds, also sometimes I want conditional buil...

Anyone use libtool as backend for scons?

I'm interested in examples. ...

Simple libtool alternative?

Being perfectly satisfied with old-style Makefiles, I am looking for a simple alternative to libtool. I do not want to switch to automake, and I keep running into problems with libtool when I try to use it directly. The latest one is 'unsupported hardcode properties', and I am getting fed up with the lack of complete documentation that j...

Compilation failed for Lighttpd 1.4.26 on Lenny AMD64.

Hello, yesterday I tried to compile Lighttpd 1.4.26 + mod_h264 on Debian Lenny ( AMD64 ) but it failed. I got those errors : mail:/usr/src/lighttpd/lighttpd-1.4.26# make make all-recursive make[1]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26' Making all in src make[2]: Entering directory `/usr/src/lighttpd/lighttpd-1.4.26/sr...

autoconf libtool library linker path incorrect (need drive-letter) for ld.exe

I use autoconf and when the target is mingw I was using the -mno-cygwin flag. This has been removed so I'm trying to using the mingw tool chain. The problem is the linker isn't finding my libraries /bin/sh ../../../libtool --tag=CXX --mode=link mingw32-g++ -g -Wall -pedantic -DNOMINMAX -D_REENTRANT -DWIN32 -I /usr/local/include/w32ap...

Compiling libnoise on OSX 10.6

Has anyone compiled, or know of a pre-compiled, libnoise for MacOS X 10.6? It does not compile out of the box here due to a libtool issue. libtool --mode=compile g++ -c ../src/latlon.cpp -o ../src/latlon.o libtool: unknown option character `-' in: --mode=compile ...

Libtool versioning of a library that depends on other libraries.

Hello, I have a framework that uses Boost and CgiCC in the core application and in its interface. How should I version the library binary interface (a.k.a. libtool -version-info)? I have no problems tracking the changes in library itself when I make various changes. As it is clear for me how should I version. But... Both Boost and C...

Wrapping different versions of static library in dynamic libraries

In my project there is a dependency on a static library (just called libsomething from now on) from a 3rd party. Recently, libsomething has become available in another version. My task is to provide my software with support for the old and the new version. Only one version of libsomething is used at run-time at any given time, but which ...

libtool version mismatch error

Hello, 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 should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4 libtoo...

When converting to libtool automake and autoconf can't find libtool

I'm trying to convert libcsv to use libtool so I can use it on mac os x without mangling the makefile. When I try to run the makefile generated from the tools I get the following error: ~/software/libcsv (gnu_tools) $ make tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"...

dynamic_cast an interface from a shared library which was loaded by lt_dlopen(libtool) doesn't work

This is about plugin features in my program. I need a C++ class(and object) in a plugin could be used by main module through an interface. The interface inheritance like this: typedef struct _rwd_plugin_root_t RWD_PLUGIN_ROOT_T; struct RWD_PLUGIN_API _rwd_plugin_root_t { virtual int add_ref() = 0; virtual int release() = 0; }; ...

Generating IDL entities using automake/Makefile.am

For those unfamiliar with IDL (interface description language), it abstracts data description for use across platforms (java, c, c++, etc). My project has dependencies Foo.c, Foo.h, FooHelper.c, and FooHelper.h which are generated from Foo.idl. How do I run an arbitrary command when Foo.idl changes, but still include Foo.c, FooHelper.c, ...

how to create binary and .so using libtool

I have a set of cpp files that I want to compile directly into a binary and also to compile into a shared library. I have bin_PROGRAMS=mybin lib_LTLIBRARIES=libmylib.la COMMON_SOURCES=f1.cpp f2.cpp f3.cpp mybin_SOURCES=main.cpp $(COMMON_SOURCES) libmylib_la_SOURCES=$(COMMON_SOURCES) When I run this the cpp files are compiled twice...

Exploding recursive make with libltdl

In my Makefile.am, I have SUBDIRS = libltdl . This is because I want to be able to use the version of libltdl included with my package (i.e. ./configure --with-included-ltdl). However, I occasionally run into the problem where make invokes itself recursively forever. Unfortunately I'm not sure exactly what conditions cause this to occ...

How to get complete linking command instead of just CCLD / How to disable silent rules in make file

I am currently building an app and getting error in linking, here is a command, CCLD Programs/GtkBonker Now I want see the Complete linking Command, Any help is appreciated. PS. I am using GNU Build System with c++ programming language, with Ubuntu 10.04. ...

LT_VERSION for libtool and autoconf not being recognized.

My configure.in file has LT_VERSION="1.1". I am using the latest version of autoconf and libtool. While using autoconf or autoreconf, I am getting the following error message: configure.ac:41: error: possibly undefined macro: LT_VERSION If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentat...

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

Hello all, 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 try to recompile pango, it needs freetype. Freetype is already installed in ...

dlopen fails with file not found when file is in correct path

I have a library built using libtool which is install into the package's library directory, /usr/local/lib/myprog/libmylib.so. I'm dynamically loading the library in my code with libltdl. When I try to load this library on one machine, it works just fine. On another, with the same build and the library installed on the same location, I g...

undefined reference when linking against libresolv

Hi, I have a project that is a library that links against libresolv, It works fine on recent distros: Ubuntu 10.x Fedora 13, Mandriva 2010.1 but on Centos 5.x I get the following errors glibc installed is: glibc-2.5-18.el5_1.1 g++ -DHAVE_CONFIG_H -I. -I./include -I/usr/include/postgresql -O3 -ansi -Wall -Wno-deprecated -D_FORTIF...