Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Clemapfel opened this issue Jun 25, 2024 · 1 comment

Comments

@Clemapfel
Copy link

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.

@msteinbeck
Copy link
Owner

Is your Lua installation a 32-bit version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants