Building LOVE (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
A32
Prole
Posts: 3
Joined: Fri Feb 12, 2010 4:26 am

Building LOVE (Windows)

Post by A32 »

I'm having a hard time building LOVE on Windows with MSVC2008:

Code: Select all

1>------ Build started: Project: love, Configuration: Debug Win32 ------
1>Compiling...
1>File.cpp
1>Graphics.cpp
1>Generating Code...
1>Compiling...
1>love.cpp
1>Compiling...
1>resources.cpp
1>Compiling...
1>auxiliar.c
1>buffer.c
1>except.c
1>inet.c
1>io.c
1>luasocket.c
1>mime.c
1>options.c
1>select.c
1>tcp.c
1>timeout.c
1>udp.c
1>wsocket.c
1>Generating Code...
1>Compiling...
1>luasocket.cpp
1>Compiling...
1>Exception.cpp
1>Matrix.cpp
1>MemoryData.cpp
1>Object.cpp
1>Reference.cpp
1>runtime.cpp
1>utf8.cpp
1>Vector.cpp
1>wrap_Data.cpp
1>Generating Code...
1>Compiling...
1>Timer.cpp
1>wrap_Timer.cpp
1>Generating Code...
1>Compiling...
1>Decoder.cpp
1>FLACDecoder.cpp
1>ModPlugDecoder.cpp
1>Mpg123Decoder.cpp
1>Sound.cpp
1>VorbisDecoder.cpp
1>Generating Code...
1>Compiling...
1>Sound.cpp
1>SoundData.cpp
1>wrap_Decoder.cpp
1>wrap_Sound.cpp
1>wrap_SoundData.cpp
1>Generating Code...
1>Compiling...
1>GrahamScanConvexHull.cpp
1>Compiling...
1>b2BlockAllocator.cpp
1>b2Body.cpp
1>b2BroadPhase.cpp
1>b2CircleContact.cpp
1>b2CircleShape.cpp
1>b2CollideCircle.cpp
1>b2CollidePoly.cpp
1>b2Collision.cpp
1>b2Contact.cpp
1>b2ContactManager.cpp
1>b2ContactSolver.cpp
1>b2Distance.cpp
1>b2DistanceJoint.cpp
1>b2GearJoint.cpp
1>b2Island.cpp
1>b2Joint.cpp
1>b2Math.cpp
1>b2MouseJoint.cpp
1>b2PairManager.cpp
1>b2PolyAndCircleContact.cpp
1>Generating Code...
1>Compiling...
1>b2PolyContact.cpp
1>b2PolygonShape.cpp
1>b2PrismaticJoint.cpp
1>b2PulleyJoint.cpp
1>b2RevoluteJoint.cpp
1>b2Settings.cpp
1>b2Shape.cpp
1>b2StackAllocator.cpp
1>b2TimeOfImpact.cpp
1>b2World.cpp
1>b2WorldCallbacks.cpp
1>Generating Code...
1>Compiling...
1>Body.cpp
1>CircleShape.cpp
1>Contact.cpp
1>DistanceJoint.cpp
1>GearJoint.cpp
1>Joint.cpp
1>MouseJoint.cpp
1>Physics.cpp
1>PolygonShape.cpp
1>PrismaticJoint.cpp
1>PulleyJoint.cpp
1>RevoluteJoint.cpp
1>Shape.cpp
1>World.cpp
1>wrap_Body.cpp
1>wrap_CircleShape.cpp
1>wrap_Contact.cpp
1>wrap_DistanceJoint.cpp
1>wrap_GearJoint.cpp
1>wrap_Joint.cpp
1>Generating Code...
1>Compiling...
1>wrap_MouseJoint.cpp
1>wrap_Physics.cpp
1>wrap_PolygonShape.cpp
1>wrap_PrismaticJoint.cpp
1>wrap_PulleyJoint.cpp
1>wrap_RevoluteJoint.cpp
1>wrap_Shape.cpp
1>wrap_World.cpp
1>Generating Code...
1>Compiling...
1>Joint.cpp
1>Shape.cpp
1>Generating Code...
1>Compiling...
1>Mouse.cpp
1>wrap_Mouse.cpp
1>Generating Code...
1>Compiling...
1>Mouse.cpp
1>Compiling...
1>Keyboard.cpp
1>wrap_Keyboard.cpp
1>Generating Code...
1>Compiling...
1>Keyboard.cpp
1>Compiling...
1>Joystick.cpp
1>wrap_Joystick.cpp
1>Generating Code...
1>Compiling...
1>Joystick.cpp
1>Compiling...
1>Image.cpp
1>ImageData.cpp
1>Generating Code...
1>Compiling...
1>EncodedImageData.cpp
1>ImageData.cpp
1>wrap_Image.cpp
1>wrap_ImageData.cpp
1>Generating Code...
1>Compiling...
1>Font.cpp
1>Glyph.cpp
1>Graphics.cpp
1>Image.cpp
1>ImageFont.cpp
1>ParticleSystem.cpp
1>Quad.cpp
1>SpriteBatch.cpp
1>TrueTypeFont.cpp
1>wrap_Font.cpp
1>wrap_Glyph.cpp
1>wrap_Graphics.cpp
1>wrap_Image.cpp
1>wrap_ParticleSystem.cpp
1>wrap_Quad.cpp
1>wrap_SpriteBatch.cpp
1>Generating Code...
1>Compiling...
1>GLee.c
1>Compiling...
1>Drawable.cpp
1>Volatile.cpp
1>Generating Code...
1>Compiling...
1>File.cpp
1>Filesystem.cpp
1>wrap_File.cpp
1>wrap_FileData.cpp
1>wrap_Filesystem.cpp
1>Generating Code...
1>Compiling...
1>FileData.cpp
1>Compiling...
1>Event.cpp
1>wrap_Event.cpp
1>Generating Code...
1>Compiling...
1>Event.cpp
1>Compiling...
1>Audio.cpp
1>Source.cpp
1>Generating Code...
1>Compiling...
1>Audio.cpp
1>Pool.cpp
1>Source.cpp
1>Generating Code...
1>Compiling...
1>Source.cpp
1>wrap_Audio.cpp
1>wrap_Source.cpp
1>Generating Code...
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>lua.lib(lapi.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>   Creating library C:\love_src\platform\msvc2008\Debug\love.lib and object C:\love_src\platform\msvc2008\Debug\love.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Image.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall love::graphics::Image::~Image(void)" (??1Image@graphics@love@@UAE@XZ)
1>wrap_Image.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl love::graphics::Image::getConstant(char const *,enum love::graphics::Image::FilterMode &)" (?getConstant@Image@graphics@love@@SA_NPBDAAW4FilterMode@123@@Z)
1>wrap_Image.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl love::graphics::Image::getConstant(enum love::graphics::Image::FilterMode,char const * &)" (?getConstant@Image@graphics@love@@SA_NW4FilterMode@123@AAPBD@Z)
1>wrap_Image.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl love::graphics::Image::getConstant(char const *,enum love::graphics::Image::WrapMode &)" (?getConstant@Image@graphics@love@@SA_NPBDAAW4WrapMode@123@@Z)
1>wrap_Image.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl love::graphics::Image::getConstant(enum love::graphics::Image::WrapMode,char const * &)" (?getConstant@Image@graphics@love@@SA_NW4WrapMode@123@AAPBD@Z)
1>C:\love_src\platform\msvc2008\Debug\love.exe : fatal error LNK1120: 5 unresolved externals
1>Build log was saved at "file://c:\love_src\platform\msvc2008\Debug\BuildLog.htm"
1>love - 6 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Help!
User avatar
bmelts
Party member
Posts: 380
Joined: Fri Jan 30, 2009 3:16 am
Location: Wiscönsin
Contact:

Re: Building LOVE (Windows)

Post by bmelts »

Oh. Sorry, that's kinda my fault. I added a source file to the repository and the MSVC project hasn't been updated to reflect that.

Just add src/modules/graphics/Image.cpp to your project and it should work fine.

rude/someone else with both Windows and repo access: can you update the MSVC project file?
A32
Prole
Posts: 3
Joined: Fri Feb 12, 2010 4:26 am

Re: Building LOVE (Windows)

Post by A32 »

Oh thank you very much :-) All is well now!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests