kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #00134
Re: Help with kicad make
Hi Again,
For future readers of this thread here are a few notes.
1) To set the environment variable WXWIN as per the how-to-build.txt
exiting the msys did not work for me. Instead I used the msys
command
export wxwin=/c/linuxdev/wxWidgets-2.6.3
2) In order to see the errors I used the following make command.
make -f makefile.g95 2> err.txt
This places any error messages in a err.txt file. Without this I
would still be searching through the 25000 lines of output looking
for the error messages.
3) I first tried kicad-sources-2006-01-19. The first error was
caused by the wxwin in 1) above not being set. The next error was
that the wxwigdets include/wx/setup.h could not be found. I copied
the setup.h from include/wx/msw and this solved that error.
4) I then arbitarily decided to rather try kicad-sources-2006-06-
26 No errors!!!!
5) Now the actual problem that I was trying to address. If a gerber
plot has more than D99 (91 tools) then the output is corrupt (wrong
tool used for track etc).
I modified the pcbplot.h from line 123 as follows:
#define MAX_D_CODE 247
eda_global int ref_D_CODE [MAX_D_CODE+1]
#if defined MAIN
= { 10,
10,11,12,13,14,15,16,17,18,19,70,71,
20,21,22,23,24,25,26,27,28,29,72,73,
30,31,32,33,34,35,36,37,38,39,
40,41,42,43,44,45,46,47,48,49,
50,51,52,53,54,55,56,57,58,59,
60,61,62,63,64,65,66,67,68,69,
74,75,76,77,78,79,
80,81,82,83,84,85,86,87,88,89,
90,91,92,93,94,95,96,97,98,99,
100,101,102,103,104,105,106,107,108,109,
110,111,112,113,114,115,116,117,118,119,
120,121,122,123,124,125,126,127,128,129,
130,131,132,133,134,135,136,137,138,139,
140,141,142,143,144,145,146,147,148,149,
150,151,152,153,154,155,156,157,158,159,
160,161,162,163,164,165,166,167,168,169,
170,171,172,173,174,175,176,177,178,179,
180,181,182,183,184,185,186,187,188,189,
190,191,192,193,194,195,196,197,198,199,
200,201,202,203,204,205,206,207,208,209,
210,211,212,213,214,215,216,217,218,219,
220,221,222,223,224,225,226,227,228,229,
230,231,232,233,234,235,236,237,238,239,
240,241,242,243,244,245,246,247,248,249,
250,251,252,253,254,255,
-1}
#endif
This solved my gerber plot problem.
I then tried (and failed) to see why the plotgerb.cpp code on line
726 did not warn that the DCODES had been exausted.
if( ref_D_CODE[num_new_D_code] < 0 )
{ /* Tous les DCODES prevus sont epuises */
nb_plot_erreur++ ;Affiche_erreur(nb_plot_erreur) ;
return (-1) ;
}
This error trap is executed but no error message appears.
Regards
Derek
--- In kicad-devel@xxxxxxxxxxxxxxx, "derek_noffke" <derek01@...>
wrote:
>
> Hi All,
>
> My OS is WinXP
> I have installed MinGW-3.1.0-1 to C:\LinuxDev\MinGW
> I have installed MSYS-1.0.9 to C:\LinuxDev\msys
> I have installed msysDTK-1.0.0
> The hello world examples compile fine
>
> I have loaded wxMSW-2.6.3 to C:\LinuxDev\msys\home\wxWidgets-2.6.3
> I have built the wxWidgets (took more than an hour to compile!)
> I have built the wxWidgets samples. They compile fine.
>
> I have loaded kicad-sources-2006-01-19 to
> C:\LinuxDev\msys\home\kicad-dev
>
> Now the guesswork starts.
> ??? How to install the wxWidgets that I have just compiled?
> I copied the wxWidgets\lib folder to C:\LinuxDev\wxWidgets-2.6.3
\lib
>
> I then set the environment variable WXWIN=/C/LinuxDev/wxWidgets-
2.6.3
>
> I then run "make -f makefile.g95" and get millions of errors (see
> below)
> Please help.
>
> Regards
> Derek
>
> ../include/wxstruct.h:521: `wxDC' was not declared in this scope
> ../include/wxstruct.h:521: `DC' was not declared in this scope
> ../include/wxstruct.h:521: parse error before `&' token
> ../include/wxstruct.h:522: parse error before `&' token
> ../include/wxstruct.h:523: `wxCommandEvent' was not declared in
this
> scope
> ../include/wxstruct.h:523: `event' was not declared in this scope
> ../include/wxstruct.h:523: invalid data member initialization
> ../include/wxstruct.h:523: variable or field
`OnSelectOptionToolbar'
> declared
> void
> ../include/wxstruct.h:524: `wxCommandEvent' was not declared in
this
> scope
> ../include/wxstruct.h:524: `event' was not declared in this scope
> ../include/wxstruct.h:524: invalid data member initialization
> ../include/wxstruct.h:524: variable or field `ToolOnRightClick'
> declared void
> ../include/wxstruct.h:528: `wxDC' was not declared in this scope
> ../include/wxstruct.h:528: `DC' was not declared in this scope
> ../include/wxstruct.h:528: invalid data member initialization
> ../include/wxstruct.h:528: variable or field `HandleBlockPlace'
> declared void
> ../include/wxstruct.h:529: `wxDC' was not declared in this scope
> ../include/wxstruct.h:529: `DC' was not declared in this scope
> ../include/wxstruct.h:529: invalid data member initialization
> ../include/wxstruct.h:532: `wxCommandEvent' was not declared in
this
> scope
> ../include/wxstruct.h:532: `event' was not declared in this scope
> ../include/wxstruct.h:532: invalid data member initialization
> ../include/wxstruct.h:532: variable or field `Process_Settings'
> declared void
>
Follow ups
References