X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Fri, 29 Jul 2016 13:01:56 +0200 (CEST) X-X-Sender: igor2 AT igor2priv To: "Chris Smith (space DOT dandy AT icloud DOT com) [via geda-user AT delorie DOT com]" X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" From: gedau AT igor2 DOT repo DOT hu Subject: Re: pcb-rnd compilation (Mac/Linux) (was Re: [geda-user] Stay or go? (Mac)) In-Reply-To: <6B3BFC54-029A-422B-A44A-F1C7AB2B920D@icloud.com> Message-ID: 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> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 Hello Chris, On Fri, 29 Jul 2016, Chris Smith (space DOT dandy AT icloud DOT com) [via geda-user AT delorie DOT com] wrote: > Hi igor2, > >> On 28 Jul 2016, at 19:28, gedau AT igor2 DOT repo DOT hu wrote: >> >> On Thu, 28 Jul 2016, Chris Smith (space DOT dandy AT icloud DOT com) [via geda-user AT delorie DOT com] wrote: >> >>> Ok, I?ve just tried a basic configuration and I?m getting a configure error: >>> ./configure --prefix=/usr/local --disable-hid_gtk --disable-hid_lesstif >>> --disable-gd --disable-gpmi >> >> Fixed. Please svn up and ./configure again. > > > First the good news: your fix worked and compilation on my Mac was straight-forward and went without error. I was also able to build with ?buildin-hid_gtk after installing GTK+ using their jhbuild system (which also worked out of the box). [I should point out that I have XCode installed, plus autoconf/autotools.] Thank you! > > 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. > 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)? > > 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. > 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. > My final configuration is ./configure ?buildin-hid_gtk ?disable-gd ?disable-gpmi ?disable-io_pcb ?disable-import_edif > > What is io_pcb? It refers to an ?original? pcb format, does that mean the current format or an older, obsolete one? Yup, the original, mainline-compatible file format. It is a plugin now, in the "io" class, which means it can load and save a format that is cosnsidered native. Pcb-rnd can handle multiple alternative io plugins, giving options to alternative file formats. There's no other working implementation yet, but that is likely to change this year. As an extreme example, you can even disable it and then you won't be able to load or save. It probably doesn't make much sense, unless you want to use pcb to draw (from the GUI, from action scripts or python scripts, etc) then export, then quit. Thank you for your feedback, saved all pending bugs. Best regards, Igor2