libtool
[Top][All Lists]
Advanced

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

Help - libtool object files...


From: Ajit Kamat
Subject: Help - libtool object files...
Date: 27 Jul 2003 01:56:55 +0530

Dear All,

I am new to using Autotools and am using it to build my project. I have
following directory structure for the project:

<Parent>
  |
  |____ configure.ac
  |____ Makefile.am
  |
  |____ <SubDir_1>
  |         |
  |         |____ configure.ac
  |         |____ Makefile.am
  |
  |____ <SubDir_2>
            |
            |____ configure.ac
            |____ Makefile.am

The sub directories SubDir_1 and 2 contain source code and other
subdirectories. The directories contain source code downloaded form the
Net. Both had their own set of Makefile.am and configure.ac files. I
have to integrate these both application into a single application,
hence I wrote my own configure.ac and Makefile.am files. These files are
placed in the Parent directory. This directory also has the new code
that I had to write to integrate the two application.

I was able to generate the configure and Makefile for the integrated
application using Autoconf and Automake. But I am facing a problem when
I try to build the project. The object files that are generated for the
source code in the subdirectories has extension .lo but the object files
generated for the code in parent directory has .o extension. This causes
my build to fail. The configure.ac and Makefile.am files in the Parent
directory are as follows (both the application that I am trying to
integrate are KDE applications):

dnl ####################################################################
dnl configure.ac
dnl ####################################################################

AC_INIT(acinclude.m4)
AC_CONFIG_AUX_DIR(admin)
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
AM_INIT_AUTOMAKE(integra, 0.1)
AM_CONFIG_HEADER(config.h)
KDE_PROG_LIBTOOL

dnl ####################################################################



########################################################################
# Makefile.am
########################################################################

SUBDIRS = $(TOPSUBDIRS)

INCLUDES = SubDir_1 SubDir_2

bin_PROGRAMS = integra

integra_SOURCES = EntryPoint.cpp SubDir_1/File1.cpp SubDir_2/File2.cpp

integra_LDADD = SubDir_1/App1.la SubDir_2/App2.la

integra_LDFLAGS = $(all_libraries) -static

KDE_OPTIONS = qtonly

########################################################################


The problem I am facing is thus, except for files EntryPoint.cpp,
File1.cpp and File2.cpp the object file has extenson .lo. Is anything
missing from the above two files, configure.ac and Makefile.am?


Thanks and regards,

~Ajit






reply via email to

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