← Back to team overview

kicad-developers team mailing list archive

Re: Help with kicad make

 

--8-9798813317-9315867684=:7 Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Derek,

Just read your message.

I just posted another message in the same area (see Building Windows
version of KiCad
<http://tech.groups.yahoo.com/group/kicad-devel/message/155> ). In my
case, everything went ok up until the generation of the KiCAD exe files.

I also used MinGW and MSYS, due to the abscense of a VC++ 2005 Express
Edition make environment.

I used version 2.7.0-1 of wxWidgets and build 26-08-2006 of KiCAD.

But then, when trying to start the exe files, none of them is really
reacting. Still don't know why.

What I did to overcome a few "annoying" things, is to adapt the
/etc/profile file into MSYS.

I added the following two lines of code:

export WXWIN=3D<location_of_wxWidgets-2.7.0-1>

and

alias kicad=3D"<location_of_the_kicad_sources>

The former will make sure the environment variable WXWIN is defined at
all times when running the msys.bat file.
The latter makes it comfortable to switch to the source directory of
KiCad, independent of your current location.

What's the current status at your site now?

Best rgds,

--Geert

--- In kicad-devel@xxxxxxxxxxxxxxx, "derek_noffke" <derek01@...> wrote:
>
> 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=3D/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
> =3D { 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=3D/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
> >
>

 --8-9798813317-9315867684=:7 Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Derek,<br><br>Just read your message.<br><br>I just posted another messa=
ge in the same area (see <a href=3D"http://tech.groups.yahoo.com/group/kica=
d-devel/message/155">Building Windows version of KiCad</a>).&nbsp; In my ca=
se, everything went ok up until the generation of the KiCAD exe files.<br><=
br>I also used MinGW and MSYS, due to the abscense of a VC++ 2005 Express E=
dition make environment.<br><br>I used version 2.7.0-1 of wxWidgets and bui=
ld 26-08-2006 of KiCAD.<br><br>But then, when trying to start the exe files=
, <b>none of them is really reacting</b>.&nbsp; Still don't know why.<br><b=
r>What I did to overcome a few "annoying" things, is to adapt the /etc/prof=
ile file into MSYS.<br><br>I added the following two lines of code:<br><br>=
export WXWIN=3D&lt;location_of_wxWidgets-2.7.0-1&gt;<br><br>and<br><br>alia=
s kicad=3D"&lt;location_of_the_kicad_sources&gt;<br><br>The former will mak=
e sure the environment variable WXWIN is defined at all times when running =
the msys.bat file.<br>The latter makes it comfortable to switch to the sour=
ce directory of KiCad, independent of your current location.<br><br>What's =
the current status at your site now?<br><br>Best rgds,<br><br>--Geert<br><b=
r><br>--- In kicad-devel@xxxxxxxxxxxxxxx, "derek_noffke" &lt;derek01@...&gt=
; wrote:<br>&gt;<br>&gt; Hi Again,<br>&gt; <br>&gt; For future readers of t=
his thread here are a few notes.<br>&gt; 1) To set the environment variable=
WXWIN as per the how-to-build.txt <br>&gt; exiting the msys did not work f=
or me. Instead I used the msys <br>&gt; command<br>&gt; <br>&gt; export wx=
win=3D/c/linuxdev/wxWidgets-2.6.3<br>&gt; <br>&gt; 2) In order to see the e=
rrors I used the following make command.<br>&gt; <br>&gt; make -f makefile.=
g95 2&gt; err.txt<br>&gt; <br>&gt; This places any error messages in a err.=
txt file. Without this I <br>&gt; would still be searching through the 250=
00 lines of output looking <br>&gt; for the error messages.<br>&gt; <br>&gt=
; 3) I first tried kicad-sources-2006-01-19. The first error was <br>&gt; =
caused by the wxwin in 1) above not being set. The next error was <br>&gt;=
that the wxwigdets include/wx/setup.h could not be found. I copied <br>&g=
t; the setup.h from include/wx/msw and this solved that error.<br>&gt; <br>=
&gt; 4) I then arbitarily decided to rather try kicad-sources-2006-06-<br>&=
gt; 26 No errors!!!!<br>&gt; <br>&gt; 5) Now the actual problem that I wa=
s trying to address. If a gerber <br>&gt; plot has more than D99 (91 tools=
) then the output is corrupt (wrong <br>&gt; tool used for track etc).<br>&=
gt; <br>&gt; I modified the pcbplot.h from line 123 as follows:<br>&gt; <br=
>&gt; #define MAX_D_CODE 247<br>&gt; <br>&gt; eda_global int ref_D_CODE [MA=
X_D_CODE+1]<br>&gt; #if defined MAIN<br>&gt; =3D { 10,<br>&gt; =
10,11,12,13,14,15,16,17,18,19,70,71,<br>&gt; 20,21,22,23,24,25,26,=
27,28,29,72,73,<br>&gt; 30,31,32,33,34,35,36,37,38,39,<br>&gt; =
40,41,42,43,44,45,46,47,48,49,<br>&gt; 50,51,52,53,54,55,56,57,=
58,59,<br>&gt; 60,61,62,63,64,65,66,67,68,69,<br>&gt; 74,75=
,76,77,78,79,<br>&gt; 80,81,82,83,84,85,86,87,88,89,<br>&gt; =
90,91,92,93,94,95,96,97,98,99,<br>&gt; 100,101,102,103,104,105,10=
6,107,108,109,<br>&gt; 110,111,112,113,114,115,116,117,118,119,<br>=
&gt; 120,121,122,123,124,125,126,127,128,129,<br>&gt; 130,1=
31,132,133,134,135,136,137,138,139,<br>&gt; 140,141,142,143,144,145=
,146,147,148,149,<br>&gt; 150,151,152,153,154,155,156,157,158,159,<=
br>&gt; 160,161,162,163,164,165,166,167,168,169,<br>&gt; 17=
0,171,172,173,174,175,176,177,178,179,<br>&gt; 180,181,182,183,184,=
185,186,187,188,189,<br>&gt; 190,191,192,193,194,195,196,197,198,19=
9,<br>&gt; 200,201,202,203,204,205,206,207,208,209,<br>&gt; =
210,211,212,213,214,215,216,217,218,219,<br>&gt; 220,221,222,223,2=
24,225,226,227,228,229,<br>&gt; 230,231,232,233,234,235,236,237,238=
,239,<br>&gt; 240,241,242,243,244,245,246,247,248,249,<br>&gt; =
250,251,252,253,254,255,<br>&gt; -1}<br>&gt; #endif<br>&gt; <br=
>&gt; This solved my gerber plot problem.<br>&gt; <br>&gt; I then tried (an=
d failed) to see why the plotgerb.cpp code on line <br>&gt; 726 did not war=
n that the DCODES had been exausted. <br>&gt; <br>&gt; if( ref_D_CODE[=
num_new_D_code] &lt; 0 ) <br>&gt; { /* Tous les DCODES prevus sont e=
puises */<br>&gt; nb_plot_erreur++ ;Affiche_erreur(nb_plot_erreur) =
;<br>&gt; return (-1) ;<br>&gt; }<br>&gt; <br>&gt; This error t=
rap is executed but no error message appears.<br>&gt; <br>&gt; Regards<br>&=
gt; Derek<br>&gt; <br>&gt; <br>&gt; --- In kicad-devel@xxxxxxxxxxxxxxx, "de=
rek_noffke" derek01@ <br>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi All,<br>&=
gt; &gt; <br>&gt; &gt; My OS is WinXP<br>&gt; &gt; I have installed MinGW-3=
.1.0-1 to C:\LinuxDev\MinGW<br>&gt; &gt; I have installed MSYS-1.0.9 to C:\=
LinuxDev\msys<br>&gt; &gt; I have installed msysDTK-1.0.0<br>&gt; &gt; The =
hello world examples compile fine<br>&gt; &gt; <br>&gt; &gt; I have loaded =
wxMSW-2.6.3 to C:\LinuxDev\msys\home\wxWidgets-2.6.3<br>&gt; &gt; I have bu=
ilt the wxWidgets (took more than an hour to compile!)<br>&gt; &gt; I have =
built the wxWidgets samples. They compile fine.<br>&gt; &gt; <br>&gt; &gt;=
I have loaded kicad-sources-2006-01-19 to <br>&gt; &gt; C:\LinuxDev\msys\h=
ome\kicad-dev<br>&gt; &gt; <br>&gt; &gt; Now the guesswork starts. <br>&gt=
; &gt; ??? How to install the wxWidgets that I have just compiled? <br>&gt;=
&gt; I copied the wxWidgets\lib folder to C:\LinuxDev\wxWidgets-2.6.3<br>&=
gt; \lib<br>&gt; &gt; <br>&gt; &gt; I then set the environment variable WXW=
IN=3D/C/LinuxDev/wxWidgets-<br>&gt; 2.6.3<br>&gt; &gt; <br>&gt; &gt; I then=
run "make -f makefile.g95" and get millions of errors (see <br>&gt; &gt; b=
elow)<br>&gt; &gt; Please help.<br>&gt; &gt; <br>&gt; &gt; Regards<br>&gt; =
&gt; Derek<br>&gt; &gt; <br>&gt; &gt; ../include/wxstruct.h:521: `wxDC' was=
not declared in this scope<br>&gt; &gt; ../include/wxstruct.h:521: `DC' wa=
s not declared in this scope<br>&gt; &gt; ../include/wxstruct.h:521: parse =
error before `&amp;' token<br>&gt; &gt; ../include/wxstruct.h:522: parse er=
ror before `&amp;' token<br>&gt; &gt; ../include/wxstruct.h:523: `wxCommand=
Event' was not declared in <br>&gt; this <br>&gt; &gt; scope<br>&gt; &gt; .=
./include/wxstruct.h:523: `event' was not declared in this scope<br>&gt; &g=
t; ../include/wxstruct.h:523: invalid data member initialization<br>&gt; &g=
t; ../include/wxstruct.h:523: variable or field <br>&gt; `OnSelectOptionToo=
lbar' <br>&gt; &gt; declared <br>&gt; &gt; void<br>&gt; &gt; ../include/=
wxstruct.h:524: `wxCommandEvent' was not declared in <br>&gt; this <br>&gt;=
&gt; scope<br>&gt; &gt; ../include/wxstruct.h:524: `event' was not declare=
d in this scope<br>&gt; &gt; ../include/wxstruct.h:524: invalid data member=
initialization<br>&gt; &gt; ../include/wxstruct.h:524: variable or field `=
ToolOnRightClick' <br>&gt; &gt; declared void<br>&gt; &gt; ../include/wxstr=
uct.h:528: `wxDC' was not declared in this scope<br>&gt; &gt; ../include/wx=
struct.h:528: `DC' was not declared in this scope<br>&gt; &gt; ../include/w=
xstruct.h:528: invalid data member initialization<br>&gt; &gt; ../include/w=
xstruct.h:528: variable or field `HandleBlockPlace' <br>&gt; &gt; declared =
void<br>&gt; &gt; ../include/wxstruct.h:529: `wxDC' was not declared in thi=
s scope<br>&gt; &gt; ../include/wxstruct.h:529: `DC' was not declared in th=
is scope<br>&gt; &gt; ../include/wxstruct.h:529: invalid data member initia=
lization<br>&gt; &gt; ../include/wxstruct.h:532: `wxCommandEvent' was not d=
eclared in <br>&gt; this <br>&gt; &gt; scope<br>&gt; &gt; ../include/wxstru=
ct.h:532: `event' was not declared in this scope<br>&gt; &gt; ../include/wx=
struct.h:532: invalid data member initialization<br>&gt; &gt; ../include/wx=
struct.h:532: variable or field `Process_Settings' <br>&gt; &gt; declared v=
oid<br>&gt; &gt;<br>&gt;<br>
 --8-9798813317-9315867684=:7-- 




References