konsumer / konsumer/lua-openmpt

libopenmpt not found unless in love2d project root (windows)

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hi! I've been trying to include this into a project, and after a bit of poking around got it working on windows.

unfortunately, it only seems to work if I put openmpt.lua and all the openmpt libraries into the root directory of the love2D project. if I try to put any of it in a subdirectory, I get this error:

`cannot load module 'libopenmpt': The specified module could not be found.`

resulting from this line:

`local openmpt = ffi.load("libopenmpt.dll")`

regardless of specifying the relative path.

anything I could be doing wrong? again, it works fine if I just dump all the files into the project root.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with openmpt.lua at the ffi.load("libopenmpt.dll") call and reproduce the Windows behavior with the files in the project root versus a subdirectory. Check what path handling is involved, and consider the issue done when libopenmpt and its related libraries load successfully from the intended subdirectory in a LÖVE project.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
desktop, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.