Kai-Martin Knaak wrote:
> If I interpret the recent thread on windows installers correctly, much 
> work has already been done and we are "almost there". So I decided to try 
> and push it a bit more, to get it to the point where an windows 
> installable toolchain gschem-gnetlist-pcb-gerbv exists and can be updated 
> when new versions of geda/gaf/pcb are released. Since I am quite a noob 
> at windows, but working with linux at my dayjob since 1996, 
> crosscompiling seems like the only option. However, there are all kinds 
> of windows machines available for testing at my day job.
> 
> -------------------------------------
> Summary on what has already been achieved (correct me if I am wrong):
> 
> * gschem: Peter Clifton reported success for a crosscompile with Mingw32 
> after some tweaking. 
> 
> * gnetlist: According to Peter C. it gnetlist crosscompiled nearly out of 
> the box.
> 
> * gsch2pcb: no cross compile success reported yet.
> 
> * pcb: There is a windows installer for version 1.99 based on the nsis 
> installer. (Who did this?)

there is a windows installer I think for the latest release on sourceforge.

> * gerbv: There is a windows port available at sourceforge :-)
> 
> ----------------
> 
> To get me started, I'd like to reproduce the nsis installer of pcb with 
> the current version. Whoever achieved this major mile stone, can you 
> supply me with notes on which tools to use, tweaks to make and docs to 
> read? 

pcb and gerbv are the same.  What you need is:

- I did all this under cygwin.  Don't install gtk for cygwin, if you do, 
you may have some headaches to sort out in terms of making sure you 
don't pick them up in the build.  You'll need make, gcc, and if you're 
building from cvs sources, you'll need cvs, autoconf, and automake.

- install nsis

- download pcb or gerbv sources

- download a whole pile of dependencies.  Basically everything from the 
win32 page of gtk for windows.  I'm uploading them all to 
http://gerbv.sf.net/gtk_win32/2008Q1/ right now.  Put these all in 
${HOME}/gtk_win32_downloads

- extract the gtk stuff with gerbv/win32/extract_gtk_win32 or the same 
script in the same place in the pcb source tree.

- build from the top level pcb or gerbv directory with ./win32/build_pcb 
(or ./win32/build_gerbv).  Those are essentially identical scripts. 
Both take --help.  "all" they do is invoke the usual ./configure && make 
&& make install but with all the correct flags and environment to find 
all the gtk/win32 runtime stuff.  Then it calls the nsis program to 
create the installer.

Once you have the environment (cygwin and all the gtk downloads) set up, 
it is actually relatively straightforward.  Both pcb and gerbv *should* 
build fine under this setup.  Still, I don't build either tool with any 
regularity under cygwin so there is always a chance of lossage.


Have fun!

-Dan




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

Reply via email to