On Thu, 2008-10-02 at 12:13 -0500, Kipton Moravec wrote:
> I have not compiled in Linux before so I may be doing things completely
> wrong if so tell me what I am doing wrong.
> 
> I downloaded geda-utils-1.4.1 and put it in my local directory.
> 
> I modified the source file for convert_sym to fix some conversions from
> my ViewDraw files.
> 
> Then from that directory I did a 
> 
> make convert_sym 
>
>I got two errors. The first one was a typo on I line I did not go near.
> How is that possible? I was easily able to fix it.

If you didn't touch it, I'd suggest putting it back as was. It is
probably indirectly due to the steps you missed...

in the utils directory, you need to run "./configure"

Perhaps with some options telling it where "make install" should put the
binary. The default will probably be /usr/local/bin - which is fine, you
just need to "make install" as root, probably "sudo make install"

Some people like to keep their installed gEDA apps in the home dir. All
development stuff I have is /home/pcjc2/geda/bin/...

in which case, I configure with:

./configure --prefix=/home/pcjc2/geda

THEN, run "make"
and "make install"


> The second was a problem with config.h
> 
> [EMAIL PROTECTED]:/home/backup/Work/geda-utils-1.4.1/geda-utils-1.4.1/src $ 
> make
> convert_sym
> cc     convert_sym.c   -o convert_sym
> convert_sym.c:59:77: error: config.h: No such file or directory
> make: *** [convert_sym] Error 1

Generated by ./configure in the utils dir.

> Looking at the source the line is:
> 
> #include <config.h> /* added by AVH for integration into the gEDA
> tarball */
> 
> AVH is not listed as an author or modifier in the comments. So I do not
> know who he is or when this happened, or where I find config.h.

AVH is Ales. The comments / authors text files will probably be out of
date, we use version control software to log author + comments against
the changes made. The file "ChangeLog" is generated from those.

> In the directory above the src directory there is a config.h.in, a
> config.sub, config.guess, configure, and a configure.ac files. Do I have
> to do something with these? What? Is it documented somewhere? I do not
> know what I should be looking for.

The ./configure

> Finally when I finish making my changes, who do I send the updated
> program file to?

Ideally, you'd send us a "diff" or "patch" file which lists the changes
you made. If they are fixes of general interest (and you consent to
releasing those changes under the GPL), one of the developers will
review and commit the changes to the source repository.

If you unpack the tarball a second time, with a different name, you can
get a diff of the two directories something like:

diff -urN original_source_folder modified_source_folder > changes.diff

(Pipes output into a file called changes.diff. Email that to the
geda-dev list.)


NB: It isn't uncommon for the review stage to result in us pinging
someone back if there are any concerns, code formating issues etc.. (For
minor nits, we may just make the changes directly when committing).

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to