X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-07-29_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=85 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1607290119 From: "Chris Smith (space DOT dandy AT icloud DOT com) [via geda-user AT delorie DOT com]" Content-type: multipart/alternative; boundary="Apple-Mail=_F6380BB7-CCC6-43A5-9D78-13684BDD7A54" Message-id: MIME-version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: pcb-rnd compilation (Mac/Linux) (was Re: [geda-user] Stay or go? (Mac)) Date: Fri, 29 Jul 2016 12:34:14 +0100 References: <305C8358-7EE6-43FD-8D86-21BE3CE07FC6 AT wellesley DOT edu> <9736B62A-0B4D-4CE3-A38B-027198DCA93F AT icloud DOT com> <2AF8F550-1AE6-43D1-80E3-F2F1B3C4C079 AT icloud DOT com> <6B3BFC54-029A-422B-A44A-F1C7AB2B920D AT icloud DOT com> To: geda-user AT delorie DOT com In-reply-to: X-Mailer: Apple Mail (2.3124) X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1469792057; bh=Jbk/O+zj1quLaV1v3jtGvhM7vT2wQWWH7iN8ay0FksU=; h=From:Content-type:Message-id:MIME-version:Subject:Date:To; b=djy1alCg0Lh0oqtm9k7iJzWn0SlT6VRezsgplbhEQNcT0w81Y4c1oQNx/MqIFPCY4 jUugjY3q9C6mJ5vkKjFrsBRhTv3xU718Mm0Pz2Jpu7z986gyJElZwtgApglpJMCe9q 1OD4/o085PVbK4yIEiqTfofg19vz8B8QS7xcEEbmZZe8IcR7Up4f55TZEnVgUvwftP PzivZ0z0Wm5dQHxbQFfngapEL6KOrMflwyzMBwa7PBDsYUBB04+uNagRYFt+RwIXoU KADGR7TDn1DNtC6QEegduwonIUoZpBYR+vzS+bt1RNOWbjQ2nSbntoarlEG2FUwr5f VQ0/hbinvrCjg== Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --Apple-Mail=_F6380BB7-CCC6-43A5-9D78-13684BDD7A54 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi igor2, > On 29 Jul 2016, at 12:01, gedau AT igor2 DOT repo DOT hu wrote: >=20 > On Fri, 29 Jul 2016, Chris Smith (space DOT dandy AT icloud DOT com = ) [via geda-user AT delorie DOT com = ] wrote: >=20 >>=20 >> pcb-rnd runs, but isn?t quite right. There are several GTK widgets = missing from the various preferences dialogs ? however I suspect this is = due to my GTK installation rather than pcb-rnd. >=20 > Could you please send me a screenshot of the broken widgets in = private? >=20 > There's been a lot of changes to the preferences window content, = becuase of the conf rewrite, which is not finished yet. The original = preferences window stuff, called "User's PoV" should be almost fully = functional, without anything missing. The "Config's PoV" subtree is = unfinished; it has the frame and the basic structures but no proper = widgets to change settings. Ok, that would explain it, it=E2=80=99s only the Config PoV that has = issues. >> Now for the problems. I have tried compiling on Linux (Ubuntu 11.10 = and 15.04) without success. Configuration and compilation go well, but = there are many errors at the linking stage, e.g.: >>=20 >> ../src_plugins/hid_gtk/gtk_conf_list.o: In function `button_ins_cb': >> gtk_conf_list.c:(.text+0x1f0): undefined reference to = `gtk_tree_view_get_type' >> gtk_conf_list.c:(.text+0x1ff): undefined reference to = `g_type_check_instance_cast' >> gtk_conf_list.c:(.text+0x207): undefined reference to = `gtk_tree_view_get_selection' >>=20 >> As far as I can tell I have all the GTK libraries installed, and in = fact I have compiled mainline pcb on my 11.10 install without issues in = the past. >=20 > The code section referred in the error message is new in pcb-rnd, that = explains why you don't have this problem with mainline. It looks a bit = tricky, as the code doesn't reference these calls directly. I will need = some time to debug this. >=20 > Could you please tell me the exact version of the gtk library you = tried with (I think dpkg -l would show versions)? libgtk2.0-0 2.24.6-0ubuntu5 libgtk2.0-bin 2.24.6-0ubuntu5 libgtk2.0-cil 2.12.10-2ubuntu1 libgtk2.0-common 2.24.6-0ubuntu5 libgtk2.0-dev 2.24.6-0ubuntu5 >>=20 >> Other notes I have made: >>=20 >> 1. M4 seems to be a requirement, but I?m not sure for which options. >=20 > There shouldn't be any M4 dependency in pcb-rnd: ./configure is in C, = the build system uses make, shell and awk. Dynamic/parametric footprint = generation is not done via (hardwired/mandatory) M4 either. >=20 > If you see any reference for M4 as requirement or any code that = doesn't compile or work without M4, please let me know the location so I = can fix it. ./configure --prefix=3D/usr/local --buildin-hid_gtk --disable-gd = --disable-gpmi [snip] Checking for flex... Not found. Checking for bison... Not found. Generating Makefile.conf (0) Generating gts/Makefile (0) Generating pcb/Makefile (0) Generating pcb/buildin (0) Generating util/gsch2pcb-rnd/Makefile (0) Runtime error at config.auto.h.in 236:1: variable = 'libs/script/m4/bin/path' does not exist Generating config.auto.h (-1) Error generating some of the files >> 2. Bison is required for -io_pcb and -import_edif options. >=20 > Correct. I already have the generated files commited, the goal is that = you should be able to build without bison & flex, these tools should be = needed only for those developers who want to change the formats. >=20 > I think it works with io_pcb, but I think I forgot to make the changes = to import_edif. Will look into this in ~6 hours. Will do test builds on = a bison-free machine. Thanks for reporting this. For import_edif: yacc ../src_plugins/import_edif/edif.y=20 make[1]: yacc: Command not found : recipe for target '../src_plugins/import_edif/edif.c' failed I could have sworn I got an error with io_pcb too, but I can=E2=80=99t = duplicate it now. Regards, Chris =E2=80=94 Chris Smith --Apple-Mail=_F6380BB7-CCC6-43A5-9D78-13684BDD7A54 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi igor2,

On 29 Jul 2016, at 12:01, gedau AT igor2 DOT repo DOT hu = wrote:

On Fri, 29 Jul 2016, Chris Smith (space DOT dandy AT icloud DOT com) [via geda-user AT delorie DOT com] wrote:


pcb-rnd runs, but isn?t quite right. =  There are several GTK widgets missing from the various preferences = dialogs ? however I suspect this is due to my GTK installation rather = than pcb-rnd.

Could you please send me a screenshot of = the broken widgets in private?

There's been a lot of changes to the preferences = window content, becuase of the conf rewrite, which is not finished yet. = The original preferences window stuff, called "User's PoV" should be = almost fully functional, without anything missing. The "Config's PoV" = subtree is unfinished; it has the frame and the basic structures but no = proper widgets to change settings.

Ok, = that would explain it, it=E2=80=99s only the Config PoV that has = issues.

Now for the problems.  I have tried compiling on Linux = (Ubuntu 11.10 and 15.04) without success.  Configuration and = compilation go well, but there are many errors at the linking stage, = e.g.:

../src_plugins/hid_gtk/gtk_conf_list.o:= In function `button_ins_cb':
gtk_conf_list.c:(.text+0x1f0):= undefined reference to `gtk_tree_view_get_type'
gtk_conf_list.c:(.text+0x1ff): undefined reference to = `g_type_check_instance_cast'
gtk_conf_list.c:(.text+0x207): = undefined reference to `gtk_tree_view_get_selection'

As far as I can tell I have all the GTK libraries installed, = and in fact I have compiled mainline pcb on my 11.10 install without = issues in the past.

The code section referred in the error = message is new in pcb-rnd, that explains why you don't have this problem = with mainline. It looks a bit tricky, as the code doesn't reference = these calls directly. I will need some time to debug this.

Could you please tell me the exact = version of the gtk library you tried with (I think dpkg -l would show = versions)?

libgtk2.0-0 = 2.24.6-0ubuntu5
libgtk2.0-bin = 2.24.6-0ubuntu5
libgtk2.0-cil = 2.12.10-2ubuntu1
libgtk2.0-common = 2.24.6-0ubuntu5
libgtk2.0-dev = 2.24.6-0ubuntu5


Other notes I have made:

1. M4 seems to be a requirement, but I?m not sure for which = options.

There shouldn't be any M4 dependency in = pcb-rnd: ./configure is in C, the build system uses make, shell and awk. = Dynamic/parametric footprint generation is not done via = (hardwired/mandatory) M4 either.

If you see any reference for M4 as requirement = or any code that doesn't compile or work without M4, please let me know = the location so I can fix it.

./configure = --prefix=3D/usr/local --buildin-hid_gtk --disable-gd = --disable-gpmi

[snip]
Checking for flex... Not = found.
Checking for bison... Not found.
Generating = Makefile.conf (0)
Generating gts/Makefile = (0)
Generating pcb/Makefile (0)
Generating = pcb/buildin  (0)
Generating util/gsch2pcb-rnd/Makefile = (0)
Runtime error at config.auto.h.in 236:1: variable = 'libs/script/m4/bin/path' does not exist
Generating = config.auto.h (-1)
Error generating some of the = files

2. Bison is required for -io_pcb and -import_edif = options.

Correct. I already have the generated = files commited, the goal is that you should be able to build without = bison & flex, these tools should be needed only for those developers = who want to change the formats.

I think it works with io_pcb, but I think I = forgot to make the changes to import_edif. Will look into this in ~6 = hours. Will do test builds on a bison-free machine. Thanks for reporting = this.

For = import_edif:
yacc =  ../src_plugins/import_edif/edif.y 
make[1]: yacc: = Command not found
<builtin>: recipe for target = '../src_plugins/import_edif/edif.c' failed

I could have sworn I got an error with = io_pcb too, but I can=E2=80=99t duplicate it now.
Regards,
Chris
=E2=80=94
Chris Smith <space DOT dandy AT icloud DOT com>


= --Apple-Mail=_F6380BB7-CCC6-43A5-9D78-13684BDD7A54--