kyleodonnell's picture

built dssl, pion-net (installed), and pion-platform from svn trunk

all compiles fine, pion-platform doesn't make install

# uname -a
Linux myhost 2.6.18-128.2.1.el5PAE #1 SMP Tue Jul 14 07:15:01 EDT 2009 i686 i686 i386 GNU/Linux
# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)

make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/svn/pion-platform/platform/src'
make[2]: Leaving directory `/usr/local/src/svn/pion-platform/platform/src'
Making install in codecs
make[2]: Entering directory `/usr/local/src/svn/pion-platform/platform/codecs'
make[3]: Entering directory `/usr/local/src/svn/pion-platform/platform/codecs'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/lib/pion/plugins" || mkdir -p -- "/usr/local/lib/pion/plugins"
/bin/sh ../../libtool --mode=install /usr/bin/install -c 'LogCodec.la' '/usr/local/lib/pion/plugins/LogCodec.la'
libtool: install: error: cannot install `LogCodec.la' to a directory not ending in /usr/local/lib
/bin/sh ../../libtool --mode=install /usr/bin/install -c 'XMLCodec.la' '/usr/local/lib/pion/plugins/XMLCodec.la'
libtool: install: error: cannot install `XMLCodec.la' to a directory not ending in /usr/local/lib
make[3]: *** [install-pion_pluginsLTLIBRARIES] Error 1
make[3]: Leaving directory `/usr/local/src/svn/pion-platform/platform/codecs'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/local/src/svn/pion-platform/platform/codecs'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/svn/pion-platform/platform'
make: *** [install-recursive] Error 1

Mike Dickey's picture
We don't normally use "make

We don't normally use "make install" so this is not well supported. However, I just checked in a few changes to trunk that should at least make it work without giving errors. Ideally "make install" should build a fully-functional environment (I realize that is much more "standard"), but currently it's probably only usable for installing the development libraries for use by other projects. There is a ticket associated with "make install" problems:

http://trac.atomiclabs.com/ticket/378

There is an alternative Perl script we currently use to compile binaries:

platform/build/make_binary.pl <version> <platform>

i.e.

platform/build/make_binary.pl 2.2.1 el5

This will create a "bin" subdirectory with binary tarballs and such in it.

To create an RPM, we also have:

common/build/make_rpm.pl <version> <build-number>.<platform>

i.e.

common/build/make_rpm.pl 2.2.1 1.el5

This must be run AFTER make_binary.pl, and creates an RPM file in the top-level directory.

Submitted by Mike Dickey on Mon, 08/17/2009 - 15:13.
Mike Dickey's picture
"make install" now working

As of r1433, this should now install a functional "pion" into your $prefix directory (/usr/local by default)

Submitted by Mike Dickey on Thu, 08/20/2009 - 17:50.