[Pal-devel] Can't run examples/hello.lisp
David N Murray
dmurray at jsbsystems.com
Wed Jan 2 16:53:24 UTC 2008
Hi,
I'm test-driving pal and can't seem to get hello.lisp to run. From the
command prompt, I get this:
dnm at fili:~/lisp/pal/examples$ sbcl
This is SBCL 1.0.13, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (load "hello") ; I modified hello to do the asdf call
; loading system definition from /home/dnm/lisp/systems/pal.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM PAL {AFB0F51}> as PAL
; loading system definition from /home/dnm/lisp/systems/cffi.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM CFFI {B0F1AA9}> as CFFI
T
* (hello-1)
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
(:VENDOR "NVIDIA Corporation" :RENDERED "Quadro2 MXR/AGP/SSE2" :VERSION
"1.2 (1.5.3)" :EXTENSIONS
"GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_point_sprite GL_NV_texgen_reflection GL_NV_texture_rectangle GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays "
:MAX-TEXTURE-SIZE 2048)
debugger invoked on a TYPE-ERROR in thread #<THREAD "initial thread" {A712751}>:
The value
#(#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
...)
is not of type
(OR (MEMBER T NIL) (SIMPLE-VECTOR 255)).
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.
(PAL-FFI:MAKE-FONT)
0]
I get a similar error when running it under slime:
The value
#(#1=#S(PAL::GLYPH
:CHAR #\
:POS #S(PAL:VEC :X 0.0 :Y 0.0)
:WIDTH 1
:HEIGHT 1
:XOFF 0)
#1# #1# #1# #1# #1# #1# #1# #1# #1# ...)
is not of type
(OR (MEMBER T NIL) (SIMPLE-VECTOR 255)).
[Condition of type TYPE-ERROR]
Restarts:
0: [ABORT-REQUEST] Abort handling SLIME request.
1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" {B953131}>)
Backtrace:
0: (PAL-FFI:MAKE-FONT)
1: (PAL:LOAD-FONT #<unavailable argument>)
2: (HELLO-1)
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (HELLO-1) #<NULL-LEXENV>)
--more--
In both cases, it creates the frame with a title and black background. My
environment is a slackware linux box hosting sbcl and the libraries, but I'm
accessing it via a windows box using ssh (PuTTY) and my X-server is Xming.
I have no problem running other X apps in this environment. BTW, the
graphics card identified by pal is the graphics card on my windows box,
which makes sense.
It looks like it can't find/create/use a default font. Thoughts?
TIA,
Dave
More information about the pal-devel
mailing list