Compiling LÖVE under windows

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.
Post Reply
Megalan
Prole
Posts: 4
Joined: Wed Mar 25, 2009 10:17 pm

Compiling LÖVE under windows

Post by Megalan »

Is there any way to compile LÖVE sources under windows? If no then how to compile it on linux for use on windows?
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Compiling LÖVE under windows

Post by osgeld »

just for the record ive never compiled love my self so i could (and probably am) be completely off target

http://www.mingw.org/
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Compiling LÖVE under windows

Post by bartbes »

I know there's a Visual Studio project file, so I guess you need to find Visual Studio 2005 Express (the free one), 2008 might do too.
Note that probably everything is done with VC++, and you probably need all the libs LÖVE uses as well.
Megalan
Prole
Posts: 4
Joined: Wed Mar 25, 2009 10:17 pm

Re: Compiling LÖVE under windows

Post by Megalan »

osgeld wrote:just for the record ive never compiled love my self so i could (and probably am) be completely off target

http://www.mingw.org/
Thanks for info.
bartbes wrote:I know there's a Visual Studio project file, so I guess you need to find Visual Studio 2005 Express (the free one), 2008 might do too.
Note that probably everything is done with VC++, and you probably need all the libs LÖVE uses as well.
Hm, i can't find it. Neither in sources nor in forum

Nevermind, i've found vc2008 project in svn. But which versions of libs do i need? because this happening:

Code: Select all

1>------ Build started: Project: love, Configuration: Release Win32 ------
1>Linking...
1>msvcrt.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>msvcrt.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>msvcrt.lib(MSVCR90.dll) : error LNK2005: _isspace already defined in LIBCMT.lib(_ctype.obj)
1>msvcrt.lib(MSVCR90.dll) : error LNK2005: ___iob_func already defined in LIBCMT.lib(_file.obj)
1>msvcrt.lib(MSVCR90.dll) : error LNK2005: _fclose already defined in LIBCMT.lib(fclose.obj)
1>msvcrt.lib(MSVCR90.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)
1>msvcrt.lib(MSVCR90.dll) : error LNK2005: _strrchr already defined in LIBCMT.lib(strrchr.obj)
1>LIBCMT.lib(crt0init.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Filesystem.obj : error LNK2001: unresolved external symbol "public: __thiscall love::filesystem::physfs::File::File(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (??0File@physfs@filesystem@love@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)
1>Sound.obj : error LNK2001: unresolved external symbol "public: __thiscall love::sound::sdlsound::SoundData::SoundData(class love::filesystem::File *)" (??0SoundData@sdlsound@sound@love@@QAE@PAVFile@filesystem@3@@Z)
1>Audio.obj : error LNK2001: unresolved external symbol "public: __thiscall love::audio::openal::Sound::Sound(class love::sound::SoundData *)" (??0Sound@openal@audio@love@@QAE@PAVSoundData@sound@3@@Z)
1>wrap_Audio.obj : error LNK2001: unresolved external symbol "int __cdecl love::audio::openal::wrap_Sound_open(struct lua_State *)" (?wrap_Sound_open@openal@audio@love@@YAHPAUlua_State@@@Z)
1>luasocket.obj : error LNK2001: unresolved external symbol _luaopen_socket_core
1>love.obj : error LNK2001: unresolved external symbol "public: static int __cdecl love::image::devil::Image::__advertise(struct lua_State *)" (?__advertise@Image@devil@image@love@@SAHPAUlua_State@@@Z)
1>C:\Users\Alexsey\Desktop\love-0.5-0\src\platform\msvc2008\Release\love.exe : fatal error LNK1120: 6 unresolved externals
1>Build log was saved at "file://c:\Users\Alexsey\Desktop\love-0.5-0\src\platform\msvc2008\Release\BuildLog.htm"
1>love - 14 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ps to devs, i think you need to remove liblove from libs which used by linker
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Compiling LÖVE under windows

Post by rude »

Megalan:

I haven't really fixed the Release configuration. I would also stay away from the trunk of SVN if I were you. I change it all the time. Yeah, bad practice. I know. :vamp:

There seems to be a certain interest for compiling LÖVE on Windows. I should probably add a Windows source with all dependencies next release.
TheMyst
Prole
Posts: 6
Joined: Sat Mar 21, 2009 2:36 am

Re: Compiling LÖVE under windows

Post by TheMyst »

Whenever that is. :nyu:
Post Reply

Who is online

Users browsing this forum: rabbitboots and 0 guests