all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: Stuck on KiCad dependency wxPython
Date: Thu, 7 Jul 2016 09:31:20 +0300	[thread overview]
Message-ID: <20160707063120.GB17506@debian-netbook> (raw)
In-Reply-To: <20160707002228.GA16818@jasmine>

[-- Attachment #1: Type: text/plain, Size: 3678 bytes --]

On Wed, Jul 06, 2016 at 08:22:28PM -0400, Leo Famulari wrote:
> On Mon, May 23, 2016 at 12:13:19AM -0400, Leo Famulari wrote:
> > On Mon, Feb 15, 2016 at 08:40:46AM +0100, Danny Milosavljevic wrote:
> > > this patch adds kicad, an electronics design automation tool, to "engineering.scm".
> > 
> > Cool, I would really like to offer KiCad in Guix. This fell through the
> > cracks but I'd like to resurrect it!
> 
> KiCad recommends we build with support for scripting with wxPython [0],
> so I'm packaging that, but I'm stuck.
> 
> It's a complicated package. It ./configures with Autotools, but builds
> and installs with Python setuptools. I've attached my rough WIP patch.
> 
> Parts of the package definition are cribbed from Debian [1], Nix [2],
> and Arch [3].
> 
> It fails to find the wx headers, as below. I've tried adding them to
> C_INCLUDE_PATH or setting -I/gnu/store/...-wxwidgets... in #:make-flags.
> 
> Any advice?
> 
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DSWIG_PYTHON_SILENT_MEMLEAK -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -I/gnu/store/2kf45v7w0iypnbcyk53ghihdqqlphay4-gtk+-2.24.30/include/gtk-2.0 -I/gnu/store/2kf45v7w0iypnbcyk53ghihdqqlphay4-gtk+-2.24.30/lib/gtk-2.0/include -I/gnu/store/pmqssiwi3sdpgyxfiyv9g5w1dmhzg662-libpng-1.5.26/include/libpng15 -I/gnu/store/1qsvhrcgji1bgzq16cg96n8ahd2yhb7d-pango-1.40.1/include/pango-1.0 -I/gnu/store/fqnr5fllihp95kan3a6cwg28b9fnqjd5-gdk-pixbuf+svg-2.34.0/include/gdk-pixbuf-2.0 -I/gnu/store/qizy1vd86sxvn7dgwafi1c8vqhnq8nrr-atk-2.20.0/include/atk-1.0 -I/gnu/store/vl3fs2xf64mgy4rw69fhddgh5zx3vwbf-harfbuzz-1.2.4/include/harfbuzz -I/gnu/store/7hkzdkd6svcmc76hxqzlj5s7im01791r-cairo-1.14.6/include/cairo -I/gnu/store/6m4xdh1rj3np9w2fikf8wlq6lka1hmsg-glib-2.48.0/include/glib-2.0 -I/gnu/store/6m4xdh1rj3np9w2fikf8wlq6lka1hmsg-glib-2.48.0/lib/glib-2.0/include -I/gnu/store/8ifqb1iyyz2vgaap51izb2d306kfpqv4-pixman-0.34.0/include/pixman-1 -I/gnu/store/fcxz8rsfkwvjmwc5xrx446ndl0hrc702-freetype-2.6.3/include/freetype2 -I/gnu/store/pmqssiwi3sdpgyxfiyv9g5w1dmhzg662-libpng-1.5.26/include/libpng15 -I/gnu/store/jd5qm8r971dyh4h7dnfc07kmpfifspsb-python-2.7.10/include/python2.7 -c src/helpers.cpp -o build/temp.linux-x86_64-2.7/src/helpers.o -O3 -pthread
> cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
> In file included from src/helpers.cpp:17:0:
> include/wx/wxPython/wxPython_int.h:35:19: fatal error: wx/wx.h: No such file or directory
>  #include <wx/wx.h>
>                    ^
> compilation terminated.
> error: command 'gcc' failed with exit status 1
> phase `build' failed after 0.7 seconds
> builder for `/gnu/store/lnvf3rz9nggjybrb7kx1pxca57qqmxbn-python-wxpython-3.0.2.0.drv' failed with exit code 1
> 
> [0]
> http://kicad-pcb.org/download/source/
> 
> [1]
> https://anonscm.debian.org/cgit/freewx/wx.git/tree/debian/repack.sh?id=refs/heads/wxpy3.0-debian
> 
> [2]
> https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/wxPython/3.0.nix
> 
> [3]
> https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/wxpython


/gnu/store/h38zwyj2a64dpai99gavv3anhk303xyp-wxwidgets-3.0.2/include/wx-3.0/wx/wx.h

looks like you'll need (string-append "-I" (assoc-ref %build-inputs
"wxwidgets") "/include/wx-3.0") as a configure flag

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-07-07  6:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15  7:40 [PATCH] gnu: add kicad Danny Milosavljevic
2016-02-15 11:35 ` Ben Woodcroft
2016-05-23  4:13 ` Leo Famulari
2016-07-07  0:22   ` Stuck on KiCad dependency wxPython Leo Famulari
2016-07-07  6:31     ` Efraim Flashner [this message]
2016-07-08  0:51       ` Leo Famulari
2016-07-08 10:15         ` Ricardo Wurmus
2016-07-12  9:24           ` Ludovic Courtès
2016-09-22  8:27         ` Danny Milosavljevic
2016-09-22  8:45           ` Danny Milosavljevic
2016-09-22  9:26             ` python-build-system: Allow build flags Danny Milosavljevic
2016-09-22 10:43             ` [PATCH] guix: python-build-system: Honor configure-flags also when building Danny Milosavljevic
2016-09-22  9:10           ` Stuck on KiCad dependency wxPython Danny Milosavljevic
2016-09-30  0:51             ` Theodoros Foradis
2016-09-30  7:09               ` Danny Milosavljevic
2016-08-03 23:54   ` [PATCH] gnu: add kicad Danny Milosavljevic
2016-08-04  8:31     ` Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160707063120.GB17506@debian-netbook \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.