guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get started in guile & programming generally


From: Joshua Branson
Subject: Re: How to get started in guile & programming generally
Date: Fri, 19 Oct 2018 13:02:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Joshua Branson <address@hidden> writes:

> Amirouche Boubekki <address@hidden> writes:
>
>> Using guix on my Ubuntu I successfully installed chickadee master.
>>
>> Try to install guix again and report the error you have please :]
>> Le mer. 29 août 2018 à 23:09, Joshua Branson <address@hidden> a écrit :
>>>
>
> Thanks for the encouragement!  I successfully install guix via the
> binary installation method.  I'm sure chickadee will install without any
> problems.  If it doesn't, I'll let you know.


Ok, so weird issues.  I've got chickadee installed via guile, but
running the example game isn't working so well.

guix package -I chickadee

address@hidden guile]$ guix package -I chickadee
guile-chickadee 0.2.0   out     
/gnu/store/zzyjhz348rp189gk94p0myk1wiakvmrv-guile-chickadee-0.2.0

address@hidden guile]$ guix package -I chickadee
guile-chickadee 0.2.0   out     
/gnu/store/zzyjhz348rp189gk94p0myk1wiakvmrv-guile-chickadee-0.2.0
address@hidden guile]$ cat chickadee.scm 
#!/usr/bin/guile \
-e main -s
!#

(use-modules (chickadee)
             (chickadee math vector)
             (chickadee render sprite)
             (chickadee render texture))

(define sprite #f)

(define (load)
  (set! sprite (load-image "images/logo.png")))

(define (draw alpha)
  (draw-sprite sprite (vec2 256.0 176.0)))

(add-hook! load-hook load)
(add-hook! draw-hook draw)

(run-game)


address@hidden guile]$ ./chickadee.scm 
guile: warning: failed to install locale
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/joshua/programming/guile/./chickadee.scm
;;; WARNING: compilation of /home/joshua/programming/guile/./chickadee.scm 
failed:
;;; no code for module (chickadee)
Backtrace:
           9 (primitive-load "/home/joshua/programming/guile/./chick?")
In ice-9/eval.scm:
   721:20  8 (primitive-eval (use-modules (chickadee) (chickadee ?) ?))
In ice-9/psyntax.scm:
  1235:36  7 (expand-top-sequence ((use-modules (chickadee) (# ?) ?)) ?)
  1182:24  6 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
   285:10  5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/boot-9.scm:
  3377:20  4 (process-use-modules _)
   222:17  3 (map1 (((chickadee)) ((chickadee math vector)) ((# ?)) ?))
  3378:31  2 (_ ((chickadee)))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)

ERROR: In procedure scm-error:
no code for module (chickadee)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]