我在英国利物浦大学的生物信息学硕士研究期间,在编程模块中介绍该语言后,我一直在教自己Perl。
我已经决定在业余时间享受乐趣,我会练习构建基本游戏的新技能,所以下载了Perl pdf中的SDL :: Manual Writing Games。
我已按照安装SDL的说明进行操作:
1.3安装SDL Perl
我们假设存在最新版本的Perl语言(至少是Perl 5.10)和支持包。我们还假设您可以从CPAN安装软件包,包括SDL Perl本身。
1.3.1 Windows
Alien :: SDL将安装32位和64位的二进制文件,因此无需编译任何内容。
我正在使用Windows机器。
在命令提示符中输入“cpan Alien :: SDL”
我也尝试过:
1.3.4 CPAN安装
在安装SDL Perl之前,请确保您拥有构建SDL所需的最新版本的模块:
$ sudo cpan CPAN
$ sudo cpan YAML Module::Build
完成这两个步骤后,CPAN将能够安装SDL:
$ sudo cpan SDL
当我尝试运行第一个示例脚本时:
use strict;
use warnings;
use SDL;
use SDLx::App;
my $app = SDLx::App->new();
sleep( 2 );
我收到此错误:
无法在test.pl第5行找到@INC中的SDL.pm(您可能需要安装SDL模块)(@INC包含:C:/ Perl / site / lib C:/ Perl / lib。) 。 BEGIN失败 - 编译在test.pl第5行中止。
我在线搜索了解决方案,但没有发现任何有效的方法。我尝试过安装草莓perl,并按照上述步骤操作,但没有成功。
提前感谢您的帮助。
编辑回应评论:
我正在运行从www.activestate.com/activeperl/downloads下载的ActiveState Perl
perl 5,版本24,颠覆1(v5.24.1)为MSWin32-x86-multi-thread-64int构建二进制版本2402 [401627]
通过运行cpan -D SDL确定cpan安装模块SDL的位置后,结果表明该模块尚未安装。
再次尝试在Windows上运行SDL模块,在命令提示符下运行“cpan SDL”,但在提示结束时收到此消息:
Configuring F/FR/FROGGS/SDL-2.546.tar.gz with Build.PL
*************************** !!!WARNING!!! ********************************
This Release breaks back compatibility support with versions 2.4x and below
**************************************************************************
Using 'My::Builder::Windows' class ...
fileparse(): need a valid pathname at C:/Perl/lib/ExtUtils/CBuilder /Base.pm line 48.
Warning: No success on command[C:\Perl\bin\perl.exe Build.PL --installdirs=site]
FROGGS/SDL-2.546.tar.gz
C:\Perl\bin\perl.exe Build.PL --installdirs=site -- NOT OK
编辑No2以回应@Borodin的回答
我使用“cpan”进入程序并获得cpan>提示。然后尝试了:
CPAN>安装SDL
失败的安装日志如下:
cpan> install SDL
Reading 'C:\Perl\cpan\Metadata'
Database was generated on Sun, 05 Mar 2017 16:17:03 GMT
Running install for module 'SDL'
Checksum for C:\Perl\cpan\sources\authors\id\F\FR\FROGGS\SDL-2.546.tar.gz ok
Scanning cache C:\Perl/cpan/build for sizes
.......--------------------------------------------------------------------- DONE
DEL(1/45): C:\Perl\cpan\build\Alien-SDL-1.446-Ry63hQ
DEL(2/45): C:\Perl\cpan\build\tmp-8260
DEL(3/45): C:\Perl\cpan\build\File-ShareDir-1.102-ZEDEAk
DEL(4/45): C:\Perl\cpan\build\Alien-SDL-1.446-uYw0HW.yml
DEL(5/45): C:\Perl\cpan\build\Alien-SDL-1.446-uYw0HW
DEL(6/45): C:\Perl\cpan\build\tmp-9900
DEL(7/45): C:\Perl\cpan\build\File-ShareDir-1.102-D3CWex
DEL(8/45): C:\Perl\cpan\build\Alien-SDL-1.446-8w1iMC
DEL(9/45): C:\Perl\cpan\build\File-ShareDir-Install-0.11-eZrfcU
DEL(10/45): C:\Perl\cpan\build\File-ShareDir-Install-0.11-eZrfcU.yml
DEL(11/45): C:\Perl\cpan\build\Class-Inspector-1.31-q85DoY
DEL(12/45): C:\Perl\cpan\build\Class-Inspector-1.31-q85DoY.yml
DEL(13/45): C:\Perl\cpan\build\File-ShareDir-1.102-0NJhW3
DEL(14/45): C:\Perl\cpan\build\File-ShareDir-1.102-0NJhW3.yml
DEL(15/45): C:\Perl\cpan\build\Alien-SDL-1.446-8w1iMC.yml
DEL(16/45): C:\Perl\cpan\build\SDL-2.546-uInIpE
DEL(17/45): C:\Perl\cpan\build\SDL-2.546-uInIpE.yml
DEL(18/45): C:\Perl\cpan\build\Alien-SDL-1.446-mjDNhS
DEL(19/45): C:\Perl\cpan\build\Alien-SDL-1.446-mjDNhS.yml
DEL(20/45): C:\Perl\cpan\build\Alien-SDL-1.446-bMFs_e
DEL(21/45): C:\Perl\cpan\build\Alien-SDL-1.446-bMFs_e.yml
DEL(22/45): C:\Perl\cpan\build\CPAN-2.16-dKjoJS
DEL(23/45): C:\Perl\cpan\build\CPAN-2.16-dKjoJS.yml
DEL(24/45): C:\Perl\cpan\build\SDL-2.546-PQW9_Y
DEL(25/45): C:\Perl\cpan\build\Alien-SDL-1.446-rcxZIw
DEL(26/45): C:\Perl\cpan\build\Alien-SDL-1.446-rcxZIw.yml
DEL(27/45): C:\Perl\cpan\build\SDL-2.546-PQW9_Y.yml
DEL(28/45): C:\Perl\cpan\build\SDL-2.546-1bjrml
DEL(29/45): C:\Perl\cpan\build\Alien-SDL-1.446-RHakeY
DEL(30/45): C:\Perl\cpan\build\Alien-SDL-1.446-RHakeY.yml
DEL(31/45): C:\Perl\cpan\build\SDL-2.546-1bjrml.yml
DEL(32/45): C:\Perl\cpan\build\Alien-SDL-1.446-c8W7Wx
DEL(33/45): C:\Perl\cpan\build\Alien-SDL-1.446-c8W7Wx.yml
DEL(34/45): C:\Perl\cpan\build\SDL-2.546-F3Cec8.yml
DEL(35/45): C:\Perl\cpan\build\SDL-2.546-F3Cec8
DEL(36/45): C:\Perl\cpan\build\tmp-3500
DEL(37/45): C:\Perl\cpan\build\Alien-SDL-1.446-4WCocG
DEL(38/45): C:\Perl\cpan\build\Alien-SDL-1.446-lm9Pyz
DEL(39/45): C:\Perl\cpan\build\Alien-SDL-1.446-lm9Pyz.yml
DEL(40/45): C:\Perl\cpan\build\Test-Deep-1.126-EbwC2Z
DEL(41/45): C:\Perl\cpan\build\Test-Deep-1.126-EbwC2Z.yml
DEL(42/45): C:\Perl\cpan\build\Test-Warn-0.32-NqNVqB
DEL(43/45): C:\Perl\cpan\build\Test-Warn-0.32-NqNVqB.yml
DEL(44/45): C:\Perl\cpan\build\Test-Most-0.35-MKUUN1
DEL(45/45): C:\Perl\cpan\build\Test-Most-0.35-MKUUN1.yml
SDL-2.546
SDL-2.546/INSTALL
SDL-2.546/META.yml
SDL-2.546/TODO
SDL-2.546/OFL.txt
SDL-2.546/typemap
SDL-2.546/META.json
SDL-2.546/CHANGELOG
SDL-2.546/MANIFEST
SDL-2.546/COPYING
SDL-2.546/OFL-FAQ.txt
SDL-2.546/Build.PL
SDL-2.546/lib
SDL-2.546/lib/SDL_perl.pm
SDL-2.546/lib/SDL.pm
SDL-2.546/lib/SDLx
SDL-2.546/lib/SDLx/Music.pm
SDL-2.546/lib/SDLx/Controller.pm
SDL-2.546/lib/SDLx/Validate.pm
SDL-2.546/lib/SDLx/Sprite.pm
SDL-2.546/lib/SDLx/SFont.pm
SDL-2.546/lib/SDLx/Layer.pm
SDL-2.546/lib/SDLx/Text.pm
SDL-2.546/lib/SDLx/Sound.pm
SDL-2.546/lib/SDLx/Surface.pm
SDL-2.546/lib/SDLx/App.pm
SDL-2.546/lib/SDLx/Rect.pm
SDL-2.546/lib/SDLx/TTF.pm
SDL-2.546/lib/SDLx/FPS.pm
SDL-2.546/lib/SDLx/LayerManager.pm
SDL-2.546/lib/SDLx/Sprite
SDL-2.546/lib/SDLx/Sprite/Animated.pm
SDL-2.546/lib/SDLx/Surface
SDL-2.546/lib/SDLx/Surface/TiedMatrixRow.pm
SDL-2.546/lib/SDLx/Surface/TiedMatrix.pm
SDL-2.546/lib/SDLx/Music
SDL-2.546/lib/SDLx/Music/Data.pm
SDL-2.546/lib/SDLx/Music/Default.pm
SDL-2.546/lib/SDLx/Controller
SDL-2.546/lib/SDLx/Controller/State.pm
SDL-2.546/lib/SDLx/Controller/Interface.pm
SDL-2.546/lib/SDLx/Controller/Timer.pm
SDL-2.546/lib/Module
SDL-2.546/lib/Module/Build
SDL-2.546/lib/Module/Build/SDL.pm
SDL-2.546/lib/SDL
SDL-2.546/lib/SDL/Event.pm
SDL-2.546/lib/SDL/Cursor.pm
SDL-2.546/lib/SDL/PixelFormat.pm
SDL-2.546/lib/SDL/Net.pm
SDL-2.546/lib/SDL/AudioCVT.pm
SDL-2.546/lib/SDL/Palette.pm
SDL-2.546/lib/SDL/Audio.pm
SDL-2.546/lib/SDL/Tutorial.pm
SDL-2.546/lib/SDL/Events.pm
SDL-2.546/lib/SDL/VideoInfo.pm
SDL-2.546/lib/SDL/Overlay.pm
SDL-2.546/lib/SDL/CDTrack.pm
SDL-2.546/lib/SDL/RWOps.pm
SDL-2.546/lib/SDL/AudioSpec.pm
SDL-2.546/lib/SDL/GFX.pm
SDL-2.546/lib/SDL/Constants.pm
SDL-2.546/lib/SDL/Time.pm
SDL-2.546/lib/SDL/MultiThread.pm
SDL-2.546/lib/SDL/Mixer.pm
SDL-2.546/lib/SDL/TTFont.pm
SDL-2.546/lib/SDL/SMPEG.pm
SDL-2.546/lib/SDL/Config.pm
SDL-2.546/lib/SDL/Mouse.pm
SDL-2.546/lib/SDL/Joystick.pm
SDL-2.546/lib/SDL/Image.pm
SDL-2.546/lib/SDL/Surface.pm
SDL-2.546/lib/SDL/Pango.pm
SDL-2.546/lib/SDL/Rect.pm
SDL-2.546/lib/SDL/TTF.pm
SDL-2.546/lib/SDL/Video.pm
SDL-2.546/lib/SDL/Color.pm
SDL-2.546/lib/SDL/CD.pm
SDL-2.546/lib/SDL/CDROM.pm
SDL-2.546/lib/SDL/Version.pm
SDL-2.546/lib/SDL/GFX
SDL-2.546/lib/SDL/GFX/Framerate.pm
SDL-2.546/lib/SDL/GFX/ImageFilter.pm
SDL-2.546/lib/SDL/GFX/FPSManager.pm
SDL-2.546/lib/SDL/GFX/BlitFunc.pm
SDL-2.546/lib/SDL/GFX/Rotozoom.pm
SDL-2.546/lib/SDL/GFX/Primitives.pm
SDL-2.546/lib/SDL/SMPEG
SDL-2.546/lib/SDL/SMPEG/Info.pm
SDL-2.546/lib/SDL/TTF
SDL-2.546/lib/SDL/TTF/Font.pm
SDL-2.546/lib/SDL/Pango
SDL-2.546/lib/SDL/Pango/Context.pm
SDL-2.546/lib/SDL/Tutorial
SDL-2.546/lib/SDL/Tutorial/Animation.pm
SDL-2.546/lib/SDL/Tutorial/LunarLander.pm
SDL-2.546/lib/SDL/Mixer
SDL-2.546/lib/SDL/Mixer/Music.pm
SDL-2.546/lib/SDL/Mixer/MixMusic.pm
SDL-2.546/lib/SDL/Mixer/Samples.pm
SDL-2.546/lib/SDL/Mixer/Channels.pm
SDL-2.546/lib/SDL/Mixer/Groups.pm
SDL-2.546/lib/SDL/Mixer/Effects.pm
SDL-2.546/lib/SDL/Mixer/MixChunk.pm
SDL-2.546/lib/SDL/Net
SDL-2.546/lib/SDL/Net/IPaddress.pm
SDL-2.546/lib/SDL/Net/TCP.pm
SDL-2.546/lib/SDL/Net/UDP.pm
SDL-2.546/lib/SDL/Internal
SDL-2.546/lib/SDL/Internal/Loader.pm
SDL-2.546/lib/pods
SDL-2.546/lib/pods/SDL.pod
SDL-2.546/lib/pods/SDLx
SDL-2.546/lib/pods/SDLx/Text.pod
SDL-2.546/lib/pods/SDLx/Surface.pod
SDL-2.546/lib/pods/SDLx/Sound.pod
SDL-2.546/lib/pods/SDLx/SFont.pod
SDL-2.546/lib/pods/SDLx/Rect.pod
SDL-2.546/lib/pods/SDLx/Music.pod
SDL-2.546/lib/pods/SDLx/App.pod
SDL-2.546/lib/pods/SDLx/Sprite.pod
SDL-2.546/lib/pods/SDLx/Controller.pod
SDL-2.546/lib/pods/SDLx/Layer.pod
SDL-2.546/lib/pods/SDLx/LayerManager.pod
SDL-2.546/lib/pods/SDLx/Sprite
SDL-2.546/lib/pods/SDLx/Sprite/Animated.pod
SDL-2.546/lib/pods/SDLx/Controller
SDL-2.546/lib/pods/SDLx/Controller/State.pod
SDL-2.546/lib/pods/SDLx/Controller/Interface.pod
SDL-2.546/lib/pods/SDL
SDL-2.546/lib/pods/SDL/Video.pod
SDL-2.546/lib/pods/SDL/RWOps.pod
SDL-2.546/lib/pods/SDL/Surface.pod
SDL-2.546/lib/pods/SDL/Overlay.pod
SDL-2.546/lib/pods/SDL/Rect.pod
SDL-2.546/lib/pods/SDL/Event.pod
SDL-2.546/lib/pods/SDL/Mixer.pod
SDL-2.546/lib/pods/SDL/Events.pod
SDL-2.546/lib/pods/SDL/CD.pod
SDL-2.546/lib/pods/SDL/Color.pod
SDL-2.546/lib/pods/SDL/AudioSpec.pod
SDL-2.546/lib/pods/SDL/CDROM.pod
SDL-2.546/lib/pods/SDL/Credits.pod
SDL-2.546/lib/pods/SDL/Time.pod
SDL-2.546/lib/pods/SDL/Joystick.pod
SDL-2.546/lib/pods/SDL/Version.pod
SDL-2.546/lib/pods/SDL/CDTrack.pod
SDL-2.546/lib/pods/SDL/Palette.pod
SDL-2.546/lib/pods/SDL/Audio.pod
SDL-2.546/lib/pods/SDL/Pango.pod
SDL-2.546/lib/pods/SDL/Platform.pod
SDL-2.546/lib/pods/SDL/Image.pod
SDL-2.546/lib/pods/SDL/MPEG.pod
SDL-2.546/lib/pods/SDL/Cursor.pod
SDL-2.546/lib/pods/SDL/Mouse.pod
SDL-2.546/lib/pods/SDL/Tutorial.pod
SDL-2.546/lib/pods/SDL/PixelFormat.pod
SDL-2.546/lib/pods/SDL/MultiThread.pod
SDL-2.546/lib/pods/SDL/AudioCVT.pod
SDL-2.546/lib/pods/SDL/Deprecated.pod
SDL-2.546/lib/pods/SDL/Cookbook.pod
SDL-2.546/lib/pods/SDL/TTF.pod
SDL-2.546/lib/pods/SDL/SMPEG.pod
SDL-2.546/lib/pods/SDL/VideoInfo.pod
SDL-2.546/lib/pods/SDL/GFX
SDL-2.546/lib/pods/SDL/GFX/ImageFilter.pod
SDL-2.546/lib/pods/SDL/GFX/BlitFunc.pod
SDL-2.546/lib/pods/SDL/GFX/Rotozoom.pod
SDL-2.546/lib/pods/SDL/GFX/FPSManager.pod
SDL-2.546/lib/pods/SDL/GFX/Primitives.pod
SDL-2.546/lib/pods/SDL/GFX/Framerate.pod
SDL-2.546/lib/pods/SDL/TTF
SDL-2.546/lib/pods/SDL/TTF/Font.pod
SDL-2.546/lib/pods/SDL/Pango
SDL-2.546/lib/pods/SDL/Pango/Context.pod
SDL-2.546/lib/pods/SDL/Tutorial
SDL-2.546/lib/pods/SDL/Tutorial/Animation.pod
SDL-2.546/lib/pods/SDL/Tutorial/LunarLander.pod
SDL-2.546/lib/pods/SDL/Mixer
SDL-2.546/lib/pods/SDL/Mixer/Samples.pod
SDL-2.546/lib/pods/SDL/Mixer/MixMusic.pod
SDL-2.546/lib/pods/SDL/Mixer/Effects.pod
SDL-2.546/lib/pods/SDL/Mixer/Music.pod
SDL-2.546/lib/pods/SDL/Mixer/Groups.pod
SDL-2.546/lib/pods/SDL/Mixer/MixChunk.pod
SDL-2.546/lib/pods/SDL/Mixer/Channels.pod
SDL-2.546/lib/pods/SDL/Cookbook
SDL-2.546/lib/pods/SDL/Cookbook/PDL.pod
SDL-2.546/lib/pods/SDL/Cookbook/OpenGL.pod
SDL-2.546/MacOSX
SDL-2.546/MacOSX/Makefile.test
SDL-2.546/MacOSX/Info.plist
SDL-2.546/MacOSX/main.c
SDL-2.546/MacOSX/SDLPerl.icns
SDL-2.546/share
SDL-2.546/share/GenBasR.ttf
SDL-2.546/scripts
SDL-2.546/scripts/gl_const.pl
SDL-2.546/scripts/auto_constants.pl
SDL-2.546/scripts/const.pl
SDL-2.546/scripts/SDLpp.pl
SDL-2.546/scripts/MultiThreadPOC.pl
SDL-2.546/scripts/sdl_const.pl
SDL-2.546/scripts/sdl_module_maker.pl
SDL-2.546/test
SDL-2.546/test/data
SDL-2.546/test/data/README
SDL-2.546/test/data/chest.png
SDL-2.546/test/data/electrohar.ttf
SDL-2.546/test/data/font.bmp
SDL-2.546/test/data/logo.png
SDL-2.546/test/data/font.png
SDL-2.546/test/data/highlight.png
SDL-2.546/test/data/5x7.fnt
SDL-2.546/test/data/icon.bmp
SDL-2.546/test/data/hero.bmp
SDL-2.546/test/data/LargeFont.bmp
SDL-2.546/test/data/picture.jpg
SDL-2.546/test/data/menu.png
SDL-2.546/test/data/sample.wav
SDL-2.546/test/data/24P_Arial_NeonYellow.png
SDL-2.546/test/data/wood_dark.png
SDL-2.546/test/data/silence.wav
SDL-2.546/test/data/hero.png
SDL-2.546/test/data/24P_Copperplate_Blue.png
SDL-2.546/test/data/pattern_red_white_2x2.bmp
SDL-2.546/test/data/test-mpeg.mpg
SDL-2.546/test/data/picture.tif
SDL-2.546/test/data/wood_light.png
SDL-2.546/test/data/tribe_i.wav
SDL-2.546/test/data/picture.bmp
SDL-2.546/test/data/button_light.png
SDL-2.546/test/data/button_dark.png
SDL-2.546/inc
SDL-2.546/inc/My
SDL-2.546/inc/My/Builder.pm
SDL-2.546/inc/My/Builder
SDL-2.546/inc/My/Builder/Unix.pm
SDL-2.546/inc/My/Builder/Windows.pm
SDL-2.546/inc/My/Builder/Darwin.pm
SDL-2.546/src
SDL-2.546/src/SMPEG.xs
SDL-2.546/src/SDL.xs
SDL-2.546/src/Image.xs
SDL-2.546/src/helper.h
SDL-2.546/src/defines.h
SDL-2.546/src/ppport.h
SDL-2.546/src/GFX
SDL-2.546/src/GFX/README
SDL-2.546/src/GFX/Primitives.xs
SDL-2.546/src/GFX/Framerate.xs
SDL-2.546/src/GFX/BlitFunc.xs
SDL-2.546/src/GFX/GFX.xs
SDL-2.546/src/GFX/Rotozoom.xs
SDL-2.546/src/GFX/FPSManager.xs
SDL-2.546/src/GFX/CHANGELOG
SDL-2.546/src/GFX/ImageFilter.xs
SDL-2.546/src/SMPEG
SDL-2.546/src/SMPEG/Info.xs
SDL-2.546/src/TTF
SDL-2.546/src/TTF/README
SDL-2.546/src/TTF/TTF.xs
SDL-2.546/src/TTF/objects
SDL-2.546/src/TTF/objects/Font.xs
SDL-2.546/src/Pango
SDL-2.546/src/Pango/Pango.xs
SDL-2.546/src/Pango/objects
SDL-2.546/src/Pango/objects/Context.xs
SDL-2.546/src/SDLx
SDL-2.546/src/SDLx/Timer.h
SDL-2.546/src/SDLx/Layer.h
SDL-2.546/src/SDLx/SFont.xs
SDL-2.546/src/SDLx/Validate.h
SDL-2.546/src/SDLx/LayerManager.h
SDL-2.546/src/SDLx/Validate.xs
SDL-2.546/src/SDLx/SFont.h
SDL-2.546/src/SDLx/LayerManager.xs
SDL-2.546/src/SDLx/Layer.xs
SDL-2.546/src/SDLx/Surface.xs
SDL-2.546/src/SDLx/Timer.xs
SDL-2.546/src/SDLx/Controller
SDL-2.546/src/SDLx/Controller/Interface.h
SDL-2.546/src/SDLx/Controller/Interface.xs
SDL-2.546/src/SDLx/Controller/State.xs
SDL-2.546/src/Mixer
SDL-2.546/src/Mixer/README
SDL-2.546/src/Mixer/Music.xs
SDL-2.546/src/Mixer/Groups.xs
SDL-2.546/src/Mixer/Effects.xs
SDL-2.546/src/Mixer/Channels.xs
SDL-2.546/src/Mixer/Samples.xs
SDL-2.546/src/Mixer/Mixer.xs
SDL-2.546/src/Mixer/objects
SDL-2.546/src/Mixer/objects/MixChunk.xs
SDL-2.546/src/Mixer/objects/MixMusic.xs
SDL-2.546/src/support
SDL-2.546/src/support/darwin_support.h
SDL-2.546/src/support/win32.c
SDL-2.546/src/support/darwin_support.m
SDL-2.546/src/Core
SDL-2.546/src/Core/MultiThread.xs
SDL-2.546/src/Core/CDROM.xs
SDL-2.546/src/Core/Video.xs
SDL-2.546/src/Core/Joystick.xs
SDL-2.546/src/Core/Audio.xs
SDL-2.546/src/Core/Mouse.xs
SDL-2.546/src/Core/Time.xs
SDL-2.546/src/Core/Events.xs
SDL-2.546/src/Core/objects
SDL-2.546/src/Core/objects/VideoInfo.xs
SDL-2.546/src/Core/objects/AudioCVT.xs
SDL-2.546/src/Core/objects/CDTrack.xs
SDL-2.546/src/Core/objects/CD.xs
SDL-2.546/src/Core/objects/AudioSpec.xs
SDL-2.546/src/Core/objects/Event.xs
SDL-2.546/src/Core/objects/RWOps.xs
SDL-2.546/src/Core/objects/typemap
SDL-2.546/src/Core/objects/Version.xs
SDL-2.546/src/Core/objects/Overlay.xs
SDL-2.546/src/Core/objects/Color.xs
SDL-2.546/src/Core/objects/Rect.xs
SDL-2.546/src/Core/objects/Palette.xs
SDL-2.546/src/Core/objects/Surface.xs
SDL-2.546/src/Core/objects/keysym.xs
SDL-2.546/src/Core/objects/Cursor.xs
SDL-2.546/src/Core/objects/PixelFormat.xs
SDL-2.546/examples
SDL-2.546/examples/GFX
SDL-2.546/examples/GFX/script_roto.pl
SDL-2.546/examples/cookbook
SDL-2.546/examples/cookbook/pogl_sdl_texture.pl
SDL-2.546/examples/cookbook/1.pl
SDL-2.546/examples/cookbook/openglapp.pl
SDL-2.546/examples/cookbook/pdl.pl
SDL-2.546/examples/SDLx
SDL-2.546/examples/SDLx/SDLx_text_zoom.pl
SDL-2.546/examples/SDLx/SDLx_controller_two_squares.pl
SDL-2.546/examples/SDLx/SDLx_LayerManager_Chess.pl
SDL-2.546/examples/SDLx/SDLx_text.pl
SDL-2.546/examples/SDLx/SDLx_text_wordwrap.pl
SDL-2.546/examples/SDLx/app.pl
SDL-2.546/examples/SDLx/SDLx_C_Interface.pl
SDL-2.546/examples/SDLx/SDLx_sprite.pl
SDL-2.546/examples/SDLx/SDLx_text_styles.pl
SDL-2.546/examples/SDLx/SDLx_Sound.pl
SDL-2.546/examples/SDLx/SDLx_text_shadow.pl
SDL-2.546/examples/SDLx/pong.pl
SDL-2.546/examples/SDLx/music.pl
SDL-2.546/examples/SDLx/SDLx_sprite_animated.pl
SDL-2.546/examples/pixel_operations
SDL-2.546/examples/pixel_operations/starry.pl
SDL-2.546/examples/pixel_operations/tie_matrix.pl
SDL-2.546/examples/pixel_operations/fast_pixel_write.pl
SDL-2.546/examples/pixel_operations/sols
SDL-2.546/examples/pixel_operations/sols/ch02.pl
SDL-2.546/t
SDL-2.546/t/sdlx_sprite.t
SDL-2.546/t/sdlx_app.t
SDL-2.546/t/mixer_mixchunk.t
SDL-2.546/t/gfx_primitives2.t
SDL-2.546/t/core_video.t
SDL-2.546/t/core_cd.t
SDL-2.546/t/core_multi.t
SDL-2.546/t/core_video_convert_surface.t
SDL-2.546/t/sdlx_text.t
SDL-2.546/t/core_rect.t
SDL-2.546/t/image.t
SDL-2.546/t/core_error.t
SDL-2.546/t/pango.t
SDL-2.546/t/core_rwops.t
SDL-2.546/t/gfx_framerate.t
SDL-2.546/t/extendingrect.t
SDL-2.546/t/core_palette.t
SDL-2.546/t/core_audiospec.t
SDL-2.546/t/core_timer.t
SDL-2.546/t/ttf.t
SDL-2.546/t/gfx_imagefilter.t
SDL-2.546/t/00-load.t
SDL-2.546/t/image_xpm_array.t
SDL-2.546/t/core_joystick.t
SDL-2.546/t/sdlx_sprite_animated.t
SDL-2.546/t/sdlx_controller.t
SDL-2.546/t/core_audio.t
SDL-2.546/t/gfx_rotozoom.t
SDL-2.546/t/gfx_fpsmanager.t
SDL-2.546/t/colorpm.t
SDL-2.546/t/mixer_channels.t
SDL-2.546/t/sdlx_sfont.t
SDL-2.546/t/core_surface.t
SDL-2.546/t/sdlx_fps.t
SDL-2.546/t/sdlx_music.t
SDL-2.546/t/mixer_music.t
SDL-2.546/t/sdlx_controller_interface.t
SDL-2.546/t/core_version.t
SDL-2.546/t/mixer.t
SDL-2.546/t/mixer_mixmusic.t
SDL-2.546/t/sdlx_validate.t
SDL-2.546/t/sdlx_layermanager.t
SDL-2.546/t/mixer_effects.t
SDL-2.546/t/mixer_samples.t
SDL-2.546/t/core_overlay.t
SDL-2.546/t/sdlx_surface.t
SDL-2.546/t/core_mouse.t
SDL-2.546/t/ttf_font.t
SDL-2.546/t/gfx_primitives.t
SDL-2.546/t/gfx.t
SDL-2.546/t/sdlx_rect.t
SDL-2.546/t/sdlgamerect.t
SDL-2.546/t/sdlx_sound.t
SDL-2.546/t/core.t
SDL-2.546/t/smpeg.t
SDL-2.546/t/config.t
SDL-2.546/t/core_events.t
SDL-2.546/t/mixer_groups.t
SDL-2.546/t/core_video_gamma.t
SDL-2.546/t/lib
SDL-2.546/t/lib/SDL
SDL-2.546/t/lib/SDL/TestTool.pm
Configuring F/FR/FROGGS/SDL-2.546.tar.gz with Build.PL
*************************** !!!WARNING!!! ********************************
This Release breaks back compatibility support with versions 2.4x and below
**************************************************************************
Using 'My::Builder::Windows' class ...
fileparse(): need a valid pathname at C:/Perl/lib/ExtUtils/CBuilder/Base.pm line 48.
Warning: No success on command[C:\Perl\bin\perl.exe Build.PL --installdirs=site]
FROGGS/SDL-2.546.tar.gz
C:\Perl\bin\perl.exe Build.PL --installdirs=site -- NOT OK
答案 0 :(得分:0)
SDL在ActivePerl上安装得很好
关于Alien::SDL
,即主SDL
模块所需的SDL 二进制文件。它还需要一些其他的东西,但cpan
应该为你安装所有这些
我建议您使用cpan
输入程序并获取cpan>
提示。然后尝试
cpan> install SDL
它应该测试并安装您需要的任何模块,最后SDL
本身
如果失败,请将失败的安装日志添加到您的问题
答案 1 :(得分:0)
建议在Ubuntu中安装,SDL安装没有问题。如果您不想切换,请在USB记忆棒上试用Ubuntu:https://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows