gEDA-dev: Building gEDA
Cesar Strauss
cstrauss at cea.inpe.br
Fri Jul 28 16:02:15 EDT 2006
Peter Clifton wrote:
> On Fri, 2006-07-28 at 11:32 -0300, Cesar Strauss wrote:
>
>> Try this:
>> make clean
>> path-to/configure --prefix=/usr
>> make
>>
>> then:
>> make install DESTDIR=/home/build/geda
>>
>> The paths will be hardcoded to /usr, but the files will end up on
>> /home/build/geda/usr, where they can be archived.
>>
>> Hope this helps,
>>
>> Cesar
>>
>
>
> Thanks... have now hacked the main makefile I'm using to do that...
>
> Small issues with the build:: libgeda must be installed under /usr/
> whatever before the rest will compile. This is a pain, and could
> probably be improved.
>
> (Is it possible to compile and link against a version of libgeda in the
> build tree, and still find the correct version after an install?)
>
>
I think I got it.
Try this, using an unmodified version of the top-level Makefile of gEDA/gaf:
export DESTDIR=/home/build/geda
export PKG_CONFIG_PATH=${DESTDIR}/usr/lib/pkgconfig
export CPPFLAGS="-I${DESTDIR}/usr/include"
export LDFLAGS="-L${DESTDIR}/usr/lib"
make config prefix=/usr
make install
cd $DESTDIR
tar -zcvf geda.tar.gz usr
This way, it appears you don't have to install libgeda first. It
wouldn't even matter if you have a different version already installed.
I am assuming you want to make a binary tarball of the CVS version of
gEDA/gaf, which you could distribute without having to compile from
source on every computer.
Out of curiosity, what operating system these computers run?
Regards,
Cesar
More information about the geda-dev
mailing list