[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: Re: Cygwin port



Cesar Strauss wrote:
> DJ Delorie wrote:
> 
>>> It works. I have successfully managed to build gEDA/gaf out of the 
>>> box on Cygwin.
>>
>>
>> and pcb ?
>>
>>
> 
> The Pcb build system on Cygwin appears to build only a native (MinGW) 
> binary, instead of a Cygwin one. See:
> 
> http://archives.seul.org/geda/dev/Jun-2006/msg00074.html
> 
> [Note that Pcb runs fine on Cygwin, the setbacks mentioned above apply 
> only to the native build.]
> 
> I will prepare patches to allow for both possibilities (building Cygwin 
>  binaries as well as native ones from within Cygwin).
> 
> Normally, native (MinGW) binaries are build from within MSYS, a Cygwin 
> fork provided by the MinGW team, containing only the minimal tools to 
> run configure and make. However, it does not carry some required tools 
> like flex and bison, so it does makes sense to use Cygwin to drive the 
> Pcb native build. Just be sure to install native versions of all 
> required libraries first. The cygcheck utility can be run to verify 
> there is no dependency on the cygwin1.dll file.
> 
> Starting with a patched configure script to remove the Cygwin specific 
> changes, some ways to build native Pcb on Cygwin are:
> 
> Install MinGW and native GTK and:
> $ PATH=/c/GTK/bin:/c/MinGW/bin:$PATH
> $ export PKG_CONFIG_PATH=c:/GTK/lib/pkgconfig
> $ ./configure --build=i686-pc-mingw32 --disable-doc \
> --with-exporters="bom gerber ps" --with-printer="" --prefix=c:/geda
> 
> or (without MinGW installed)
> $ PATH=/c/GTK/bin:$PATH
> $ export CC="gcc -mno-cygwin"
> $ export CPP="gcc -E -mno-cygwin"
> $ export PKG_CONFIG_PATH=c:/GTK/lib/pkgconfig
> $ ./configure --build=i686-pc-mingw32 --disable-doc \
> --with-exporters="bom gerber ps" --with-printer="" --prefix=c:/geda

I should probably put the -mno-cygwin bit into win32/build_pcb.  The 
idea is running ./win32/build_pcb under cygwin should produce a windows 
installer that works without cygwin.

Was there really anything else besides those couple of lines right at 
the beginning of configure.ac and the thing in src/Makefile.am that 
links in the desktop icon?


-Dan


_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev