From: Steven Michalske <smichal...@gmail.com> Subject: Re: gEDA-user: Teardrop plugin To: gEDA user mailing list <geda-user@moria.seul.org> Message-ID: <a464d653-a91d-479d-abb9-f662a9aed...@gmail.com>
On Nov 19, 2009, at 6:03 AM, Vincent Onelli wrote: > Hello, > > I downloaded teardrop.c file, I would like to use, but I do not know > how > to compile and install can anybody give me direction? > Thank you. Vinny > > http://github.com/bert/pcb-plugins/ go clone that repo, and it has a makefile, you will get all of the pcb- plugins cd src make && make install GO BERT! downloaded bert's plugin, but make resulted with all the following errors, what am I doing wrong? [vin...@desktop src]$ make which: no sw_vers in (/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/vinnyo/bin) gcc -g -Wall -I../../../pcb/src -I../../../pcb -O2 -shared autocrop.c -o autocrop.so autocrop.c:15:20: error: global.h: No such file or directory autocrop.c:16:18: error: data.h: No such file or directory autocrop.c:17:17: error: hid.h: No such file or directory autocrop.c:18:18: error: misc.h: No such file or directory autocrop.c:19:20: error: create.h: No such file or directory autocrop.c:20:19: error: rtree.h: No such file or directory autocrop.c:21:18: error: undo.h: No such file or directory autocrop.c:22:18: error: move.h: No such file or directory autocrop.c:25: error: expected ‘)’ before ‘Data’ autocrop.c:40: error: expected ‘)’ before ‘Data’ autocrop.c:55: error: expected ‘)’ before ‘Data’ autocrop.c:70: error: expected ‘)’ before ‘Data’ autocrop.c:85: error: expected ‘)’ before ‘Layer’ autocrop.c:102: error: expected ‘)’ before ‘dx’ autocrop.c: In function ‘autocrop’: autocrop.c:156: error: ‘LocationType’ undeclared (first use in this function) autocrop.c:156: error: (Each undeclared identifier is reported only once autocrop.c:156: error: for each function it appears in.) autocrop.c:156: error: expected ‘;’ before ‘dx’ autocrop.c:157: error: ‘BoxTypePtr’ undeclared (first use in this function) autocrop.c:157: error: expected ‘;’ before ‘box’ autocrop.c:159: error: ‘box’ undeclared (first use in this function) autocrop.c:159: warning: implicit declaration of function ‘GetDataBoundingBox’ autocrop.c:159: error: ‘PCB’ undeclared (first use in this function) autocrop.c:173: error: ‘pad’ undeclared (first use in this function) autocrop.c:174: error: ‘dx’ undeclared (first use in this function) autocrop.c:175: error: ‘dy’ undeclared (first use in this function) autocrop.c:200: warning: implicit declaration of function ‘MoveAll’ autocrop.c:202: warning: implicit declaration of function ‘IncrementUndoSerialNumber’ autocrop.c:203: warning: implicit declaration of function ‘ClearAndRedrawOutput’ autocrop.c:204: warning: implicit declaration of function ‘SetChangedFlag’ autocrop.c:155: warning: unused variable ‘changed’ autocrop.c: At top level: autocrop.c:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘autocrop_action_list’ autocrop.c:214: warning: return type defaults to ‘int’ autocrop.c: In function ‘REGISTER_ACTIONS’: autocrop.c:216: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token autocrop.c:218: error: expected ‘{’ at end of input make: *** [autocrop.so] Error 1 [vin...@desktop src]$ ------------- I used the following command, on this I am not sure because I enter the command from home. the file teardrops.c was also in the home directory it seem that it is looking for other support files. [vin...@desktop ~]$ gcc -I$HOME/geda/pcb-cvs/src -I $HOME/geda/pcb-cvs -02 -shared teardrops.c -o teardrops.o gcc: unrecognized option '-02' teardrops.c:13:20: error: global.h: No such file or directory teardrops.c:14:18: error: data.h: No such file or directory teardrops.c:15:17: error: hid.h: No such file or directory teardrops.c:16:18: error: misc.h: No such file or directory teardrops.c:17:20: error: create.h: No such file or directory teardrops.c:18:19: error: rtree.h: No such file or directory teardrops.c:19:18: error: undo.h: No such file or directory teardrops.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pin’ teardrops.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘silk’ teardrops.c:29: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token teardrops.c:151: error: expected ‘)’ before ‘_pin’ teardrops.c: In function ‘teardrops’: teardrops.c:175: error: ‘silk’ undeclared (first use in this function) teardrops.c:175: error: (Each undeclared identifier is reported only once teardrops.c:175: error: for each function it appears in.) teardrops.c:175: error: ‘PCB’ undeclared (first use in this function) teardrops.c:181: error: ‘via’ undeclared (first use in this function) teardrops.c:183: error: ‘END_LOOP’ undeclared (first use in this function) teardrops.c:187: error: ‘pin’ undeclared (first use in this function) teardrops.c:189: error: ‘ENDALL_LOOP’ undeclared (first use in this function) teardrops.c:191: error: ‘gui’ undeclared (first use in this function) teardrops.c: At top level: teardrops.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘teardrops_action_list’ teardrops.c: In function ‘REGISTER_ACTIONS’: teardrops.c:208: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token teardrops.c:210: error: expected ‘{’ at end of input [vin...@desktop ~]$ _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user