all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot build guile-chickadee.
@ 2018-06-20  1:03 Ricardo Wurmus
  2018-06-20  7:00 ` Pierre Neidhardt
  2018-06-20 14:43 ` Joshua Branson
  0 siblings, 2 replies; 8+ messages in thread
From: Ricardo Wurmus @ 2018-06-20  1:03 UTC (permalink / raw)
  To: help-guix; +Cc: davet

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

Hi there,

I’m trying to get Chickadee packaged.  Attached is a package definition.
The build fails when chickadee/render/shapes.scm is supposed to be
compiled:

--8<---------------cut here---------------start------------->8---
…
  GEN      chickadee/render/shapes.go
Backtrace:
          19 (primitive-load-path "sdl2" #<procedure d72da0 at ice-9…>)
In ice-9/eval.scm:
   721:20 18 (primitive-eval _)
In ice-9/psyntax.scm:
  1234:36 17 (expand-top-sequence _ _ _ #f _ _ _)
  1181:24 16 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   284:10 15 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) …)
In ice-9/eval.scm:
   293:34 14 (_ #<module (#{ g112}#) d75f00>)
In ice-9/boot-9.scm:
   2866:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2879:24 12 (_)
   230:29 11 (map1 _)
   230:29 10 (map1 _)
   230:29  9 (map1 _)
   230:29  8 (map1 _)
   230:17  7 (map1 (((sdl2 bindings) #:prefix #:ffi)))
  2805:10  6 (resolve-interface (sdl2 bindings) #:select _ #:hide _ # …)
   268:13  5 (for-each #<procedure 13ebac0 at ice-9/boot-9.scm:2805…> …)
  2818:41  4 (_ _)
  1475:39  3 (symbol-append #:ffi SDLK_F19)
   230:17  2 (map1 (#:ffi SDLK_F19))
In unknown file:
           1 (symbol->string #:ffi)
In ice-9/boot-9.scm:
   760:25  0 (dispatch-exception _ _ _)

ice-9/boot-9.scm:760:25: In procedure dispatch-exception:
ice-9/boot-9.scm:760:25: In procedure symbol->string: Wrong type argument in position 1 (expecting symbol): #:ffi
make: *** [Makefile:1047: chickadee/render/shapes.go] Error 1
--8<---------------cut here---------------end--------------->8---

Any ideas what might be wrong here?

-- 
Ricardo


[-- Attachment #2: 0001-gnu-Add-guile-chickadee.patch --]
[-- Type: text/x-patch, Size: 3025 bytes --]

From d3854140439110bd66742c1252a0768141cd6a61 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Wed, 20 Jun 2018 02:59:23 +0200
Subject: [PATCH] gnu: Add guile-chickadee.

* gnu/packages/game-development.scm (guile-chickadee): New variable.
---
 gnu/packages/game-development.scm | 38 ++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 3d6a038d9..5a192d939 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2015, 2016, 2017 David Thompson <davet@gnu.org>
 ;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016, 2017 Kei Kebreau <kkebreau@posteo.net>
-;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016, 2017 Julian Graham <joolean@gmail.com>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
@@ -74,6 +74,7 @@
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages sdl)
+  #:use-module (gnu packages texinfo)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages video)
   #:use-module (gnu packages xdisorg)
@@ -1233,3 +1234,38 @@ related games such as Heretic and Hexen.  It comes with a 3d preview mode and
 a 2D editor view.")
     (home-page "http://eureka-editor.sourceforge.net/")
     (license license:gpl2+)))
+
+(define-public guile-chickadee
+  (package
+    (name "guile-chickadee")
+    (version "0.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://files.dthompson.us/chickadee/"
+                                  "chickadee-" version ".tar.gz"))
+              (sha256
+               (base32
+                "10qx0ha5gsayybd186r1my7vc7rf5fbzp9jvmc4xg9a8wz8rqhah"))))
+    (build-system gnu-build-system)
+    (propagated-inputs
+     `(("guile-opengl" ,guile-opengl)
+       ("guile-sdl2" ,guile-sdl2)))
+    (inputs
+     `(("guile" ,guile-2.2)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("texinfo" ,texinfo)))
+    (home-page "https://dthompson.us/projects/chickadee.html")
+    (synopsis "Game development toolkit for Guile Scheme with SDL2 and OpenGL")
+    (description "Chickadee is a game development toolkit for Guile Scheme
+built on top of SDL2 and OpenGL.  Chickadee aims to provide all the features
+that parenthetically inclined game developers need to make 2D (and eventually
+3D) games in Scheme, such as:
+
+@enumerate
+@item extensible, fixed-timestep game loop
+@item OpenGL-based rendering engine
+@item keyboard, mouse, controller input
+@item REPL-driven development model
+@end enumerate\n")
+    (license license:gpl3+)))
-- 
2.17.1


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

end of thread, other threads:[~2018-06-20 14:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20  1:03 Cannot build guile-chickadee Ricardo Wurmus
2018-06-20  7:00 ` Pierre Neidhardt
2018-06-20  9:01   ` Ricardo Wurmus
2018-06-20  9:27     ` Ricardo Wurmus
2018-06-20 12:23       ` Thompson, David
2018-06-20 12:37         ` Ricardo Wurmus
2018-06-20 12:44           ` Thompson, David
2018-06-20 14:43 ` Joshua Branson

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.