Skip to content

Requiring Lua dll on Windows 11 throws "not a valid Win32 application", luarocks install fails #249

@Clemapfel

Description

@Clemapfel

Attempting to download the lua version of this library using luarocks on Windows 11 throws:

> luarocks install --server=https://tinyspline.github.io/lua tinyspline
Error: No results matching query were found.

Manually downloading the luarocks package and installing it or requiring the approriate dll directly throws

> require "tinyspline"
error loading module 'tinysplinelua51' from file '.\tinysplinelua51.dll':
        %1 is not a valid Win32 application

I am on a 64-bit Windows 11 system, tested with luajit and lua 5.1

> (Get-CimInstance Win32_operatingsystem).OSArchitecture
64-bit

> luajit
LuaJIT 2.1.1707061634 -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/
JIT: ON SSE3 SSE4.1 BMI2 fold cse dce fwd dse narrow loop abc sink fuse
> print(_VERSION)
Lua 5.1

> lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> print(_VERSION)
Lua 5.1

I tried the above commands on linux and everything works perfectly there, including directly requiring the shared library, this only happens on windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions