automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build and installation names


From: Wesley Smith
Subject: build and installation names
Date: Sun, 25 Jul 2010 18:35:34 +0000

I'm trying to setup a Makefile.am such that the lib and modules I
build get installed in the following way:


/usr/local/lib/liblua5.1-mymodule.so.0.0.0
/usr/local/lib/liblua5.1-mymodule.so.0
/usr/local/lib/lua/5.1/mymodule.so

As a start, I tried to see if I could just build
liblua5.1-mymodule.so.0.0.0.  Here's the Makefile.am:


AM_CPPFLAGS = -I/usr/include/lua5.1 -I/usr/include/cairo
-I/usr/include/directfb -I/usr/include/freetype2
lib_LTLIBRARIES = liblua5.1-cairo.la
liblua5_1_cairo_la_LIBADD = -llua5.1 -L/usr/lib -lcairo -L/usr/lib
-ldirectfb -L/usr/lib -lfreetype -L/usr/lib
liblua5_1_cairo_la_SOURCES = src/lcairo.c


But I end up with this error:


/bin/bash ../../libtool --tag=CC   --mode=link gcc  -g -O2   -o
liblua5.1-cairo.la -rpath /usr/local/lib lcairo.lo -llua5.1 -L/usr/lib
-lcairo -L/usr/lib -ldirectfb -L/usr/lib -lfreetype -L/usr/lib
-lgstapp-0.10 -lgstreamer-0.10 -lcairo -lapr-1 -llua5.1
libtool: link: gcc -shared  .libs/lcairo.o   -Wl,-rpath
-Wl,/home/wesleysmith/Documents/luaav3/modules/cairo/.libs -Wl,-rpath
-Wl,/usr/local/lib/lua/5.1 -L/usr/lib -ldirectfb
/usr/lib/libfreetype.so -lgstapp-0.10 /usr/lib/libgstreamer-0.10.so
/home/wesleysmith/Documents/luaav3/modules/cairo/.libs/libcairo.so
/usr/lib/libapr-1.so /usr/lib/liblua5.1.so    -pthread -Wl,-soname
-Wl,liblua5.1-cairo.so.0 -o .libs/liblua5.1-cairo.so.0.0.0
gcc: /home/wesleysmith/Documents/luaav3/modules/cairo/.libs/libcairo.so:
No such file or directory
make[1]: *** [liblua5.1-cairo.la] Error 1



I have a feeling it's because the name of the lib liblua5.1-cairo.la
and how I refer to its target liblua5_1_cairo are messing things up.
How do the characters '.' and '-' get translated into target names?
When I put them in there, I get errors on autoreconf.

thanks,
wes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]