Re: gEDA-user: geda, pcb and cygwin

2007-06-21 Thread Peter Clifton
On Thu, 2007-06-21 at 13:09 +, Kai-Martin Knaak wrote:
> On Wed, 20 Jun 2007 17:31:53 -0400, Dan McMahill wrote:

> If I got him right, he produced the binaries for the install file he 
> posted that way. The result is impressive --- The file installed like a 
> charme. No cygwin, no Xserver. This seems to me the way to go. Maybe his 
> build script can be modified to do the same trick to geda/gschem...

Credit where credit is due, the build script I used was a pruned down
version of Dan's more complete script for building under Cygwin.

It _is_ possible to compile gaf for Windows, indeed - I have done it.
Unfortunately, I didn't have the time to sort out an installer, so it
was a bit of a hack getting it onto a machine.

The cross compile wasn't as smooth as for PCB, several patches, some now
in "git" (was about to say CVS) were needed. Also, libtool seemed to
mess up the final linking, which is a pain. In the end, for my test, I
linked each binary by hand - rather than using the build system.

The main hurdle is compiling guile (and libgmp if you use guile1.8) for
windows. The cross-compile needed the main ./configure script hacking to
disable some tests (as you can't run windows executables to test
things). Also, Guile 1.6 requires a whole LOAD of patching to make it
compile.


Results were impressive though - it works! And it works pretty
completely. The only down side (Which is now a non-issue), is you have
to disable gsch2pcb's use of M4, as that uses "fork" calls in guile,
which don't exist on windows.


Cesar Strauss has done great work on patches to make gaf compile and
work under windows, they are far cleaner than the hacks I quickly put
together.

Regards,

Peter C




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


Re: gEDA-user: geda, pcb and cygwin

2007-06-21 Thread Kai-Martin Knaak
On Wed, 20 Jun 2007 17:31:53 -0400, Dan McMahill wrote:


> 1)  building on cygwin and running with the X version of gtk under
> cygwin - you should just be able to do the usual
> 
>./configure
>make
>make install
> 
> If you don't want png/jpeg/gif export then use the configure option that
> picks the exporters you want compiled in and you won't need the gd
> library.

Ok, I'll try that first. Export to pixel graphics is not a central 
feature. In fact, I never used it until now :-) 


> 4) cross compiling from some other system.  Again I have no experience
> but as Peter has pointed out, it is possible.

If I got him right, he produced the binaries for the install file he 
posted that way. The result is impressive --- The file installed like a 
charme. No cygwin, no Xserver. This seems to me the way to go. Maybe his 
build script can be modified to do the same trick to geda/gschem...

---<(kaimartin)>---
-- 
Kai-Martin Knaak  tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik  fax: +49-511-762-2211 
Welfengarten 1, 30167 Hannover   http://www.iqo.uni-hannover.de
GPG key:http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Peter Clifton
On Wed, 2007-06-20 at 18:05 +, Kai-Martin Knaak wrote:

> As for the modified cross-compile-build-script --- Yes, I am
> interested 
> to receive a copy. PM is on its way.

Shell script to build the installer...

http://www2.eng.cam.ac.uk/~pcjc2/geda/build_installer

Apologies for the hard-coded paths, search for "pcjc2" and you'll find
them. It lives in the win32 of the toplevel sources. You run it from the
toplevel, ./win32/build_installer

NSIS installer script (modified to remove the libgd distribution)...

http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb.nsi.in


Regards,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Dan McMahill
Kai-Martin Knaak wrote:
> You may remember that I planned to distribute geda+pcb on virtual 
> machines to local students. This was not appreciated. A stripped down 
> linux machine turned out to be even more challenging to a windows user 
> than a full featured desktop environment :-|
> 
> Today, I tried to build the electronics tool chain under cygwin. Thanks 
> to the concise instructions in the wiki I got the geda tools to work 
> under cygwin. 
> 
> But with pcb I did not even get the configure script done. The build 
> script in the win32 dir fails to find the gd-library. In particular it 
> insists, that there it cannot find gd.h. Yes, I double checked, that it 
> is installed at the place where the build script says it looks for it. 
> The gdlib-devel package from cygwin didn't help either. 
> 
> Any hints anyone?

a couple of comments.

1)  building on cygwin and running with the X version of gtk under 
cygwin - you should just be able to do the usual

   ./configure
   make
   make install

If you don't want png/jpeg/gif export then use the configure option that 
picks the exporters you want compiled in and you won't need the gd library.

2)  building on cygwin but targeting a non-cygwin version of pcb (no X, 
no cygwin.dll needed).  That is what the script in the win32 directory 
is.  For that script to work, you need the windows versions of gtk (both 
the development files and the runtime) as well as the windows version of 
gd (again, both development and runtime).  This is a fairly large list 
of things to download.  On top of that, the script in the win32 
directory assumes you have extracted these files in a very particular 
location.  And finally, I've seen problems when the cygwin installation 
has glib and gtk packages installed because they end up in /usr/lib and 
/usr/include and I couldn't figure out how to keep the build from 
picking those up.

3) building from mingw or msys.  I have no experience.

4) cross compiling from some other system.  Again I have no experience 
but as Peter has pointed out, it is possible.

-Dan



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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Peter Baxendale
On Wed, 2007-06-20 at 18:05 +, Kai-Martin Knaak wrote:
> * There is an error report on start-up of pcb: Error message is actually 
> german because this is the native language of my winXP. Roughly 
> translated it says: "Can't find file "ListLibraryContents.sh" and 

The file is a shell script which, I think, lists the files in the
library path to standard out. It should probably be removed from the
source in win32 or replaced with something which works or is harmless. I
temporarily replaced it with a 'do nothing' win32 executable.

> * I like to work with local component libraries. Setting the path to the 
> local lib fails.  The reason seems to be misinterpretation of the colon 
> in windows paths. What syntax should be used for the list of paths?
> Maybe this is a consequence of the missing ListLibraryContents.sh?

I know that in msys you access c: by /c/ (ie the c drive is available as
directory c in the root). I don't know if this works in the pcb
executable?

I too have played with building a win32 version of pcb and ended up with
something which "sort of works" for "most things" but with quirks. For
me, that's not good enough to let loose on my students. Even though I
have no interest in using a win32 version of pcb and geda myself, I'm
prepared to spend some time on getting this working for my students. But
I find it hard going because of my lack of knowledge of win32 and mingw
- for instance on those issues of path specifications - and there seems
little documentation around. If anyone wants to share their
knowledge/experiences off this list, I'd be happy to hear from them.
-- 
Peter Baxendale
Durham University
School of Engineering



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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Kai-Martin Knaak
On Wed, 20 Jun 2007 16:19:22 +, Kai-Martin Knaak wrote:

>> Win32 Native - no support offered:
>> http://www2.eng.cam.ac.uk/geda/pcbinst-1.99v.exe
> 
> Thanks a bundle! I'll try that file. My milage might vary :-)

Here is my mileage so far:

* The installer worked as expected. It even installs a start-menu for the 
binary.   

* There is an error report on start-up of pcb: Error message is actually 
german because this is the native language of my winXP. Roughly 
translated it says: "Can't find file "ListLibraryContents.sh" and 
suggests to look for the file on the web. If this option is chosen, the 
application hangs longer than I dared to wait. If I choose "cancel", pcb 
starts with a working library list anyway.

* The font of the log window is a bit smallish. But I was told, that win 
users like it that way ;-)

* pcb itself looks suprisingly similar to the windows binary. Existing 
layouts load fine. Preferences and colors are interpreted correctly 
except for the pathlist (see below). I didn't try too many actions yet. 
But the ones I did worked like in linux.

* The log window contains the line: 
"Warning: Could not determine home directory (from HOME)"

* I like to work with local component libraries. Setting the path to the 
local lib fails.  The reason seems to be misinterpretation of the colon 
in windows paths. What syntax should be used for the list of paths?
Maybe this is a consequence of the missing ListLibraryContents.sh?


>> If you'd like to test it, please do - I don't think printing works, and
>> I deliberately didn't try to compile png (or other graphics) support in
>> (avoiding libgd).

Is the libgd dependence good for anything beyond the ability to set a 
background image and produce pictures in pdf docs during build? 

As for the modified cross-compile-build-script --- Yes, I am interested 
to receive a copy. PM is on its way.

Schönwettergrüße,

 ---<(kaimartin)>---

-- 
Kai-Martin Knaak  
Universität Hannover, Inst. für Quantenoptik  tel: +49-511-762-2895 
Welfengarten 1, 30167 Hannoverfax: +49-511-762-2211
GPG key:http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Kai-Martin Knaak
On Wed, 20 Jun 2007 16:57:52 +0100, Peter Clifton wrote:

> I cross-compiled with mingw under Linux, so can't help regarding Cygwin.

Ah! Good point. I didn't think about that route. 

> Win32 Native - no support offered:
> http://www2.eng.cam.ac.uk/geda/pcbinst-1.99v.exe

Thanks a bundle! I'll try that file. My milage might vary :-)


> If you'd like to test it, please do - I don't think printing works, and
> I deliberately didn't try to compile png (or other graphics) support in
> (avoiding libgd).

Ok, I might try to remove png support from my cygwin build trials too.

---<(kaimartin)>---
-- 
Kai-Martin Knaak  
Universität Hannover, Inst. für Quantenoptik  tel: +49-511-762-2895 
Welfengarten 1, 30167 Hannoverfax: +49-511-762-2211
GPG key:http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Peter Clifton
On Wed, 2007-06-20 at 12:03 -0400, DJ Delorie wrote:
> > From a usability point of view, he does have some valid points about
> > Unix paradigms being present still, which may mean its harder to use
> > for some people.
> 
> If you could get him to write up a summary of the issues, I'd be
> interested in seeing it.

I'll see what I can do, but I don't think he'll spend time on it.
Software other than his preferred package is viewed as consuming their
time. (Which as always here, is in high demand.)

I can completely understand the reasons they adopt a preferred package,
but at least they are willing to accept files produced from PCB
(assuming they are correct and don't require any rework).

It seems to me that their main issue is having no software to panelise
gerbers from different sources. (He does some panelising in Proteus, but
its gerber viewer (which can panelise and re-output) doesn't support
polygons, inspite claiming to support RS274X).


Peter




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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread DJ Delorie

> From a usability point of view, he does have some valid points about
> Unix paradigms being present still, which may mean its harder to use
> for some people.

If you could get him to write up a summary of the issues, I'd be
interested in seeing it.


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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Peter Clifton
On Wed, 2007-06-20 at 16:57 +0100, Peter Clifton wrote:
> Win32 Native - no support offered:
> http://www2.eng.cam.ac.uk/geda/pcbinst-1.99v.exe

Sorry,
http://www2.eng.cam.ac.uk/~pcjc2/geda/pcbinst-1.99v.exe

Peter




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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Peter Clifton
On Wed, 2007-06-20 at 14:00 +, Kai-Martin Knaak wrote:
> You may remember that I planned to distribute geda+pcb on virtual 
> machines to local students. This was not appreciated. A stripped down 
> linux machine turned out to be even more challenging to a windows user 
> than a full featured desktop environment :-|

I don't use the live-cd which we give our students, as I have (at least
two) perfectly good Linux installs. If you can't eat your own dog food,
its probably not good.

I've helped students use PCB under windows, and its very similar to
under Linux. Seems good - even if our in house PCB fab guys don't like
it. From a usability point of view, he does have some valid points about
Unix paradigms being present still, which may mean its harder to use for
some people.

Things like the "Buffer" menu will be unfamiliar to may windows users. I
wondered about producing a different set of menus which feel more
windows native, but don't have the time at the moment.

> Today, I tried to build the electronics tool chain under cygwin. Thanks 
> to the concise instructions in the wiki I got the geda tools to work 
> under cygwin. 
> 
> But with pcb I did not even get the configure script done. The build 
> script in the win32 dir fails to find the gd-library. In particular it 
> insists, that there it cannot find gd.h. Yes, I double checked, that it 
> is installed at the place where the build script says it looks for it. 
> The gdlib-devel package from cygwin didn't help either. 

I cross-compiled with mingw under Linux, so can't help regarding Cygwin.

> Any hints anyone?
> I'd happily take a binary version of pcb too. 

The build script in the win32 dir (close to what I did) produces a
native Win32 executable.

Win32 Native - no support offered:
http://www2.eng.cam.ac.uk/geda/pcbinst-1.99v.exe

Cross compiled off current CVS, as of just now. There are no source-code
mods, so I've not got a tarball at that URL. If anyone wants the hacked
build script I used to just build the installer after I manually
cross-compiled, I will send it by email on request.

If you'd like to test it, please do - I don't think printing works, and
I deliberately didn't try to compile png (or other graphics) support in
(avoiding libgd).

Whilst I say "no support", I don't mind hearing what does / does not
work.

Regards,

Peter Clifton




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


Re: gEDA-user: geda, pcb and cygwin

2007-06-20 Thread John Griessen
Kai-Martin Knaak wrote:
> You may remember that I planned to distribute geda+pcb on virtual 
> machines to local students. This was not appreciated. A stripped down 
> linux machine turned out to be even more challenging to a windows user 
> than a full featured desktop environment :-|

I've been experimenting with xubuntu with some results.  The xfce window manager
will preserve documents on the Desktop as a guide to getting started.
An example of what might be made for gEDA is the ubuntos cdrom .iso distribution
made for developing TinyOS code on TI MSP430 based radio-computer boards.
It gets the whole mspgcc compiler and the nesc special case c compiler all set 
up to
make code and load it in tmote radio-computers.

I think that kind of livecd running on VMWare  could be good for distributing 
gEDA.
Another thing I am working on off and on is a gobolinux rootless installation 
on top of
ubuntu because that can give you different environments (guile1.6x vs. 
guile1.8x, etc.)
in different directory trees...  I think.  Need to dig further.  It also lets 
you pull in needed
libraries even if they conflict with the distro.  It's a linux on linux.
So that would make the end result be linux-->linux-->VMWare-->Windows-XP.
Seems complicated enough!  :-)

It could be a good way to get easy
steady linux distro on VMware, then add bleeding edge programs that run with 
different
libraries they need.  And even switch distro to run on top of easily.

John Griessen


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


gEDA-user: geda, pcb and cygwin

2007-06-20 Thread Kai-Martin Knaak
You may remember that I planned to distribute geda+pcb on virtual 
machines to local students. This was not appreciated. A stripped down 
linux machine turned out to be even more challenging to a windows user 
than a full featured desktop environment :-|

Today, I tried to build the electronics tool chain under cygwin. Thanks 
to the concise instructions in the wiki I got the geda tools to work 
under cygwin. 

But with pcb I did not even get the configure script done. The build 
script in the win32 dir fails to find the gd-library. In particular it 
insists, that there it cannot find gd.h. Yes, I double checked, that it 
is installed at the place where the build script says it looks for it. 
The gdlib-devel package from cygwin didn't help either. 

Any hints anyone?
I'd happily take a binary version of pcb too. 
 
---<(kaimartin)>---
-- 
Kai-Martin Knaak  
Universität Hannover, Inst. für Quantenoptik  tel: +49-511-762-2895 
Welfengarten 1, 30167 Hannoverfax: +49-511-762-2211
GPG key:http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get



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