8nt
8nt

Reputation: 61

Cannot locate SDL2.dll in Rakudo

Recently I've been trying to learn the Raku language, and I tried to make a simple Snake Game. The code starts with this :

use SDL2::Raw;
use Cairo;

But when I compile using rakudo raku.raku, I get this error :

Cannot locate native library 'SDL2.dll': error 0x7e
  in method setup at C:\Program Files\Rakudo\share\perl6\core\sources\60460C9F1B4C4D337A9E1B809E754542AE8E6474 (NativeCall) line 319
  in method setup at C:\Program Files\Rakudo\share\perl6\core\sources\60460C9F1B4C4D337A9E1B809E754542AE8E6474 (NativeCall) line 366
  in sub raku-nativecall at C:\Program Files\Rakudo\share\perl6\core\sources\24CEF9BE56A579865C79D79E9E44D51012C345EA (NativeCall::Dispatcher) line 46
  in block <unit> at raku.raku line 10

I succesfully installed SDL2::Raw and Cairo with zef install SDL2::Raw and zef install cairo and when I type zef list, it lists the modules as installed :

===> Found via Zef::Repository::LocalCache
Cairo:ver<0.3.2>
SDL2::Raw:ver<0.3>

Random information : line 10 of raku.raku is SDL_Init(VIDEO); and line 319 of 60460C9F1B4C4D337A9E1B809E754542AE8E6474 is nqp::buildnativecall(self,

Thanks for any answer !

Upvotes: 6

Views: 126

Answers (1)

Scimon Proctor
Scimon Proctor

Reputation: 4558

I would check the documentation for SDL2::Raw which gives instructions on making sure you have the SDL2 libraries installed.

As it looks like you're on windows you want https://libsdl.org/download-2.0.php

Upvotes: 5

Related Questions