Error when trying to launch program that uses libtcod for ruby

tudor

I just installed the libtcod ruby gem, and i wanted to see if the demo works. When I start the demo, it gives me an error:

C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Coul (LoadError)ibrary 'libtcod-mingw': The specified module could not be found.
.
Could not open library 'libtcod-mingw.dll': The specified module could not be found.
.
Could not open library 'C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/clib/i686/libtcod-mingw.dll': The specified moR♀)
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in `map'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in `ffi_lib'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:23:in `<module:TCOD>'

        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:3:in `<top (required)>'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod.rb:5:in `<top (required)>'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
        from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        from C:/Users/<some user>/Desktop/libtcod.rb:1:in `<main>'
Fred

Had the same problem trying to get the example code to work. I fixed it by just dragging the libtcod-mingw.dll and SDL.dll into the project directory.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Getting the "main class not found" error when trying to launch any Java Program

"process launch failed: unknown error" when trying to run Rust program via LLDB

Ruby program do not launch

Error kernel_require.rb:55:in `require': cannot load such file when trying to run ruby program

loadFileSystems error when calling a program that uses libhdfs

Supervisor: ERROR (spawn error) when trying to launch gunicorn

Permission denied error when using UseUrls() when trying to launch Kestrel

Compiler error when trying to run the below program

"An Unknown error occurred" When trying to launch my Siri Shortcut

Error when trying to launch powershell script from WinForms App

URI Error with Ruby when trying to run an application

Eclipse Main program Launch error

Error in App.js when trying to launch local React testing when switching to using hooks

java.lang.NumberFormatException Error shows when trying to run program

BEX error when trying to compile/run a program using Intellij IDEA

Error at top of program when trying to run java code

Trying to resolve ClassNotFound error when running program using OrmLite

when I am trying to launch my app in my device and I am getting the error as launch option nil in my xcode?

Error: No such file or directory, when trying to execute [ruby script/generate]?

BUILD FAILED Error When Trying to Install Ruby 2.4.2

Error occurs when trying to install Homebrew on a Mac for Ruby on Rails

Ruby on Rails - Postgres error when trying to start Rails Server

Error when trying to install devise in Ruby on Rails 7.0.0

startActivity throws error when trying to launch Settings.ACTION_LOCATION_SOURCE_SETTINGS

Getting error when trying to launch node.js app with PM2 Cluster

FBSOpenApplicationErrorDomain error 3 when trying to launch a watch kit app on a physical device

Flutter: Error when trying to launch app after inserting new permissions package

"Installation or uninstallation is not working temporarily" error when trying to launch Tizen watch application from Tizen SDK

"error constructing proxy..." when trying to launch gnome-terminal as root

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive