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

Re: gEDA-dev: Building gEDA



Peter Clifton wrote:
>> 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.
>>     
>
> That looks really good. I'm heading home for the weekend, so haven't yet
> tested it, but that equates to my desired behaviour.
>
>   
I hope it works for you. I don't think it makes much difference, but I
have tested this method only with a snapshot, not a with a developer tree.
> Does the Linker still get past the normal -L/usr/lib stuff on its
> command line? If so, how do we gaurantee that it links against the new
> libgeda in ${DESTDIR}/usr/lib. Is it an order-of command line precidence
> thing?
>
>   
I don't see a -L/usr/lib on the command line, only -L${DESTDIR}/usr/bin
(with $DESTDIR expanded). I admit the "you can even have another version
installed" is an educated guess, as I don't have another version to
verify this claim. I did test the "you don't need to have libgeda
installed beforehand" part.
>> 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.
>>     
s/CVS/patched
>> Out of curiosity, what operating system these computers run?
>>     
>
> They are knoppix based workstations, so basically they are debian. I've
> tried to contact Hamish to discover how he builds the debaian packages,
> but have had no response yet.
>
> I gave up trying to do the debian packages myself earlier today, as I'm
> not familiar with the build system. Instead, I'm just producing
> a .tar.gz from "/" of the majority of a gEDA build, and quoting run-time
> deps as per Hamish's packages.
>
>   
Yes, it appears to be a bit of a black art :-) . I am beginning to use
Ubuntu Linux, which is also Debian based, and I have the intention of
learning the package system, in time.

This is what I found on the subject:
http://www.debian.org/doc/maint-guide/
http://www.ubuntuforums.org/showthread.php?t=206382

I think it all starts with
apt-get source geda-gschem libgeda

The rest is uncharted territory...
> Thanks for your help on the build commands.. no doubt will have plenty
> of chance to try them over the next few weeks as we push out patched
> versions of gschem etc.. for local testing.
>
> Peter
>
>
>   
Glad to be helpful. Make sure these good patches keep comming! :-)

Cesar




_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev