[SOLVED]HELP! How to make a dll available for Love2D ?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: HELP! How to make a dll available for Love2D ?

Post by I~=Spam »

I don't use windows so I don't know how to do it either. :P

Here is what I have so far (I used VS 2013) and it gives me the error: "%1 is not a valid Win32 application"

Grrrr. This is why I don't use windows... :x (I do know this might not be entirely window's fault though :P)

Link: https://www.dropbox.com/s/xiqfgnnpvxa3x ... b.zip?dl=0
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: HELP! How to make a dll available for Love2D ?

Post by I~=Spam »

I got it working! :awesome: :awesome: :awesome:

Here is a repository with support for building in linux and windows (I have only tried VS in windows): https://github.com/GoogleBot42/IronBox Look at my CMakeLists.txt. That is what is really important. Also the declaration of the openlib function has to change somewhat if compiling on windows.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
User avatar
dracula004
Prole
Posts: 17
Joined: Tue Mar 03, 2015 2:50 am
Location: Asia

Re: HELP! How to make a dll available for Love2D ?

Post by dracula004 »

I~=Spam wrote:I got it working! :awesome: :awesome: :awesome:

Here is a repository with support for building in linux and windows (I have only tried VS in windows): https://github.com/GoogleBot42/IronBox Look at my CMakeLists.txt. That is what is really important. Also the declaration of the openlib function has to change somewhat if compiling on windows.
nice work! awesome!!!
github:https://github.com/Nigh

email:xianyi.xia#outlook.com
User avatar
dracula004
Prole
Posts: 17
Joined: Tue Mar 03, 2015 2:50 am
Location: Asia

Re: HELP! How to make a dll available for Love2D ?

Post by dracula004 »

Solved.

The work project is on github:
https://github.com/Nigh/simple_dll_for_Love2D

thx much for your help. :ultrahappy:
github:https://github.com/Nigh

email:xianyi.xia#outlook.com
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: HELP! How to make a dll available for Love2D ?

Post by I~=Spam »

Thats great! Could you mark the thread as solved so others too can find this answer. ;)
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests