From: Andreas Enge <andreas@enge.fr>
To: guix-devel@gnu.org
Subject: Camlp4 error
Date: Sun, 23 Aug 2015 18:23:37 +0200 [thread overview]
Message-ID: <20150823162337.GA22728@debian> (raw)
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
Hello,
the attached (partial) package is supposed to add GTK+ bindings for OCaml, which
I would like to have for unison. Building currently fails with the following
message:
camlp4o pa_macro.cmo -D HAS_PRINTEXC_BACKTRACE -impl gtkSignal.ml4 -o gtkSignal.ml
Camlp4: Uncaught exception: DynLoader.Error ("Camlp4MacroParser.cmo", "file not found in path")
Makefile:515: recipe for target 'gtkSignal.ml' failed
The file Camlp4MacroParser.cmo is available in
/gnu/store/ikshd53q3pp3mdcsjqp5kkfakmcjs4xp-camlp4-4.02.0+1/lib/camlp4/Camlp4Parsers/
Does someone familiar with OCaml know what to do? Do we need a search path
specification?
Maybe relevant: configure complains about
checking for ocamlfind... no
./configure: line 2670: no: command not found
configure: WARNING: Ignoring ocamlfind
Thanks for your help!
Andreas
[-- Attachment #2: lablgtk.patch --]
[-- Type: text/plain, Size: 1845 bytes --]
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 12d813f..3e68917 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -26,6 +26,7 @@
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
#:use-module (gnu packages gcc)
+ #:use-module (gnu packages gtk)
#:use-module (gnu packages base)
#:use-module (gnu packages emacs)
#:use-module (gnu packages texinfo)
@@ -472,3 +473,37 @@ a collection of files and directories to be stored on different hosts
brought up to date by propagating the changes in each replica
to the other.")
(license gpl3+)))
+
+(define-public lablgtk
+ (package
+ (name "lablgtk")
+ (version "2.18.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://forge.ocamlcore.org/frs/download.php/"
+ "1479/lablgtk-2.18.3.tar.gz"))
+ (sha256
+ (base32
+ "1bybn3jafxf4cx25zvn8h2xj9agn1xjbn7j3ywxxqx6az7rfnnwp"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("camlp4" ,camlp4)
+ ("ocaml" ,ocaml)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("gtk+" ,gtk+-2)))
+ (arguments
+ `(#:parallel-build? #f)) ; just in case
+ (home-page "http://lablgtk.forge.ocamlcore.org/")
+ (synopsis "GTK+ bindings for OCaml")
+ (description
+ "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
+a strongly-typed object-oriented interface that is compatible with the
+dynamic typing of GTK+. Most widgets and methods are available. LablGtk
+also provides bindings to
+gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
+gnomeui, gtksourceview, gtkspell,
+libglade (and it an generate OCaml code from .glade files),
+libpanel, librsvg and quartz.")
+ (license lgpl2.1)))
next reply other threads:[~2015-08-23 16:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-23 16:23 Andreas Enge [this message]
2015-08-23 16:40 ` Camlp4 error Andreas Enge
2015-08-23 16:51 ` 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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150823162337.GA22728@debian \
--to=andreas@enge.fr \
--cc=guix-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).