His build system isn't the problem, he manages to build working DLLs for standalone Lua. And doesn't QTCreator use the same toolchain anyway (MinGW)?arampl wrote:Try rebuild dll with VS or QT Creator.
[SOLVED]HELP! How to make a dll available for Love2D ?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: HELP! How to make a dll available for Love2D ?
- dracula004
- Prole
- Posts: 17
- Joined: Tue Mar 03, 2015 2:50 am
- Location: Asia
Re: HELP! How to make a dll available for Love2D ?
I build it with lua5.1.4.S0lll0s wrote:Maybe you are building The DLL for an incompatible lua version? Löve is Lua 5.1 / Luajit, your "regular" lua might be 5.2.
Re: HELP! How to make a dll available for Love2D ?
http://wiki.qt.io/Mingw:S0lll0s wrote:His build system isn't the problem, he manages to build working DLLs for standalone Lua. And doesn't QTCreator use the same toolchain anyway (MinGW)?arampl wrote:Try rebuild dll with VS or QT Creator.
"There are actually different MinGW toolchains and packages available:
MinGW.org is the original project. The latest version gcc 4.7.2. It only compiles for 32 bit binaries.
MinGW-w64 is a fork with the original aim to also support generation of 64 bit binaries. By now it also supports a much larger part of the Win32 API. The MinGW-w64 project does host several different binary packages, done by different people.
There are binary installers targetting MinGW for both Qt 4 and Qt 5. Up to Qt 4.8.6, Qt 4 ones are built with a MinGW.org toolchain using gcc 4.4. Newer Qt 4.8 binary packages ship with a mingw-w64 based toolchain. For Qt 5, a newer MinGW-w64 toolchain is actually required."
(I mean that MinGW-w64 improves not only 64-bit stuff)
I've thought Code::Blocks is outdated somehow and MinGW too.
@dracula004: Are you sure you need cpp and not plain c for your library?
- dracula004
- Prole
- Posts: 17
- Joined: Tue Mar 03, 2015 2:50 am
- Location: Asia
Re: HELP! How to make a dll available for Love2D ?
As same with the luamidi:https://github.com/dwiel/luamidi, it built with g++ 8 years ago,works well in love2d today.arampl wrote:http://wiki.qt.io/Mingw:S0lll0s wrote:His build system isn't the problem, he manages to build working DLLs for standalone Lua. And doesn't QTCreator use the same toolchain anyway (MinGW)?arampl wrote:Try rebuild dll with VS or QT Creator.
"There are actually different MinGW toolchains and packages available:
MinGW.org is the original project. The latest version gcc 4.7.2. It only compiles for 32 bit binaries.
MinGW-w64 is a fork with the original aim to also support generation of 64 bit binaries. By now it also supports a much larger part of the Win32 API. The MinGW-w64 project does host several different binary packages, done by different people.
There are binary installers targetting MinGW for both Qt 4 and Qt 5. Up to Qt 4.8.6, Qt 4 ones are built with a MinGW.org toolchain using gcc 4.4. Newer Qt 4.8 binary packages ship with a mingw-w64 based toolchain. For Qt 5, a newer MinGW-w64 toolchain is actually required."
(I mean that MinGW-w64 improves not only 64-bit stuff)
I've thought Code::Blocks is outdated somehow and MinGW too.
@dracula004: Are you sure you need cpp and not plain c for your library?
Re: HELP! How to make a dll available for Love2D ?
Oh you can use Lua FFI.
Example :
https://github.com/CapsAdmin/goluwa/blo ... s/init.lua
And it works.
Example :
https://github.com/CapsAdmin/goluwa/blo ... s/init.lua
And it works.
- dracula004
- Prole
- Posts: 17
- Joined: Tue Mar 03, 2015 2:50 am
- Location: Asia
Re: HELP! How to make a dll available for Love2D ?
thx, I will have a try.Lapin wrote:Oh you can use Lua FFI.
Example :
https://github.com/CapsAdmin/goluwa/blo ... s/init.lua
And it works.
- dracula004
- Prole
- Posts: 17
- Joined: Tue Mar 03, 2015 2:50 am
- Location: Asia
Re: HELP! How to make a dll available for Love2D ?
I tried the alien lib for lua. And the same, works well in standalone lua, but crashed in love2d...Lapin wrote:Oh you can use Lua FFI.
Example :
https://github.com/CapsAdmin/goluwa/blo ... s/init.lua
And it works.
here is the project files: when I run main.lua in love2d, it crashes.
when I run lua_script.lua in standalone lua, it works well.
Re: HELP! How to make a dll available for Love2D ?
Can you post the error that is given in the console? Or does LOVE really crash?
Can you post the C/C++ source? That would be really helpful for us to help you.
Can you post the C/C++ source? That would be really helpful for us to help you.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
- dracula004
- Prole
- Posts: 17
- Joined: Tue Mar 03, 2015 2:50 am
- Location: Asia
Re: HELP! How to make a dll available for Love2D ?
The source was already attached in former post.I~=Spam wrote:Can you post the error that is given in the console? Or does LOVE really crash?
Can you post the C/C++ source? That would be really helpful for us to help you.
I'm trying to build that dll with vs.
Re: HELP! How to make a dll available for Love2D ?
I downloaded the source before (and just now) and there are no c or c++ files in there. Can you post the C/C++ source (not just lua) The .dll file is not really any help.dracula004 wrote:The source was already attached in former post.
I'm trying to build that dll with vs.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests