all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Camlp4 error
@ 2015-08-23 16:23 Andreas Enge
  2015-08-23 16:40 ` Andreas Enge
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Enge @ 2015-08-23 16:23 UTC (permalink / raw)
  To: guix-devel

[-- 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)))

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Camlp4 error
  2015-08-23 16:23 Camlp4 error Andreas Enge
@ 2015-08-23 16:40 ` Andreas Enge
  2015-08-23 16:51   ` Andreas Enge
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Enge @ 2015-08-23 16:40 UTC (permalink / raw)
  To: guix-devel

PS: Or do I need to update to a special version of camlp4? Their version
    numbers are a bit confusing. Their latest releases (counting backwards)
    are 4.02+6, 4.02.1+3, 4.02+5, 4.02+4, 4.02,1+1, ....
    The part before the "+" looks like the OCaml version, the "+X" like the
    patch level of camlp4. But there is no version 4.02.3*.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Camlp4 error
  2015-08-23 16:40 ` Andreas Enge
@ 2015-08-23 16:51   ` Andreas Enge
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Enge @ 2015-08-23 16:51 UTC (permalink / raw)
  To: guix-devel

On Sun, Aug 23, 2015 at 06:40:01PM +0200, Andreas Enge wrote:
> PS: Or do I need to update to a special version of camlp4? Their version
>     numbers are a bit confusing. Their latest releases (counting backwards)
>     are 4.02+6, 4.02.1+3, 4.02+5, 4.02+4, 4.02,1+1, ....
>     The part before the "+" looks like the OCaml version, the "+X" like the
>     patch level of camlp4. But there is no version 4.02.3*.

Updating to 4.02+6, which is also the version available in Nix, solves my
problem. So please disregard my previous messages.

Andreas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-23 16:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-23 16:23 Camlp4 error Andreas Enge
2015-08-23 16:40 ` Andreas Enge
2015-08-23 16:51   ` Andreas Enge

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.