Building Libraries

Reiner Beck R.K.Beck at t-online.de
Sat Mar 18 16:24:57 GMT 2000


Hi,

I am trying to build a (shared) library with KDevelop - and failed.

What I did:

First try:
I created a directory with my source files and a "Makefile.am" according
to the "KDevelop Programming Handbook - 19.1 Example Makefile.am for a
Shared Library". Running "automake" in a shell produces these results (I
used a "configure.in" from another project):
(Well, I never used automake/autoconf before ...)

--- snip ---
automake: configure.in: required file `./install-sh' not found
automake: configure.in: required file `./mkinstalldirs' not found
automake: configure.in: required file `./missing' not found
automake: Makefile.am: required file `./INSTALL' not found
automake: Makefile.am: required file `./NEWS' not found
automake: Makefile.am: required file `./README' not found
automake: Makefile.am: required file `./COPYING' not found
automake: Makefile.am: required file `./AUTHORS' not found
automake: Makefile.am: required file `./ChangeLog' not found
configure.in: 4: required file `./config.h.in' not found
Makefile.am:10: library used but `LIBTOOL' not defined in
`configure.in'   
--- snip END ---


Second try:
According to an answer in this mailing list, KDevelop produces static
libraries, if you move your source files in a subdirectory. I tried this
as well and when I hit the "Build" Button I get this:

--- snip ---
Making all in alib
make[1]: Entering directory
`/home/wally/Development/testclient/testclient/alib'
make[1]: *** No rule to make target `all'.  Stop.
make[1]: Leaving directory
`/home/wally/Development/testclient/testclient/alib'
make: *** [all-recursive] Error 1
*** failed ***
--- snip END ---

Maybe I am missing something!
Any advice?
Does someone have a tarball with a sample directory structure and the
neccessary make and config files to do this?
I would prefer a solution for a shared library. However, advice for
static libs is also welcome :-)

Thanks!
Reiner




More information about the KDevelop mailing list