gEDA-dev: first install and execution of gaf on cygwin,
some problems with pcb 20060414
jon wackley
jonw at mountaincable.net
Sun Aug 20 06:49:23 EDT 2006
Hi,
Happy to let you know that I got most of gaf to run pretty well on cygwin.
I'm still very new to the system so there are alot of things I still need to
learn. That is why I am going through the tutorial.
Did have some experiences that may have been a bit smoother. When working
through the tutorial, the section of gsch2pcb, I received errors indicating
that stemmed from the fact that common.m4 was not installed yet. I did not
see anything clearly indicating a dependency on the pcb package. Did
eventually get gsch2pcb to work when pcb was installed. That leads to the
next issue.
With the cygwin-patch file that I found, the core gaf packages compiled well
under cygwin. I was not so lucky with pcb. Originally I thought that pcb
would be consistent with the other packages and support cygwin directly
(albeit with minor tweaking). The README.win32 file indicates:
"If you have the normal cygwin and cygwin for X gtk libraries installed you
will have problems."
There seems to be a build file for mingw based builds. In the generated
Makefile I merely removed the -no-cygwin, -mwindows and the -mms-bifields
(or something to that effect) from CPPFLAGS and CFLAGS. I added HAVE_RANDOM
to CPPFLAGS src/Makefile (as native cygwin has random). Here they are:
CFLAGS = -g -I/usr/include -I/usr/X11R6/include -DXTHREADS
-DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-Wall
CPPFLAGS = -g -DHAVE_RANDOM -DPCBLIBDIR=\"${prefix}/share/pcb\"
-DPCBTREEDIR=\"${prefix}/share/pcb/newlib\"
It turns out that gd will decorate signatures with declspec for import. I
worked around this by using NONDLL before the #include <gd.h> in
/pcb-20060414/src/hid/png/png.c
The -g flag was required for the debugging a problem that showed up (more on
this later). I know that these issues should be addressed in configure.ac,
but I do not want to upset the current default. Should the default for
building under cygwin be native cygwin and leave the special win32 build
script for native win32?
At runtime I could not load netlists, I found a macro that needs to be in
statement scope for the if statement:
static int
ActionLoadFrom (int argc, char **argv, int x, int y)
{
char *function;
char *name;
char fname[256];
if (argc < 2) { /* Added statement braces */
AFAIL (loadfrom);
}
action.c:4934
Loading netlists worked with this change, did not see any documentation
conerning the load netlist dialog.
Since I am just starting I'm not sure if these issues are already addressed
or would you like formal defect reports?
Thanks,
jonw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.seul.org/pipermail/geda-dev/attachments/20060820/d26a217b/attachment.htm
More information about the geda-dev
mailing list