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