How do I Edit/Compile the Source Code?

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.
Lüv
Prole
Posts: 29
Joined: Fri Oct 19, 2012 11:24 pm
Location: Greenville, South Carolina

Re: How do I Edit/Compile the Source Code?

Post by Lüv »

I'm using 0.8.0 and this is how I got the stuff...
for the source code I got hg and went to my command propt and chose my file directory then typed "hg clone https://bitbucket.org/rude/love"
Then for the Dependances I got this one from the wiki under
2.dependences
For 0.8.0, up-to-date-ish binaries are found here.

Wiki link: https://love2d.org/wiki/Building_L%C3%96VE
Lüv
Prole
Posts: 29
Joined: Fri Oct 19, 2012 11:24 pm
Location: Greenville, South Carolina

Re: How do I Edit/Compile the Source Code?

Post by Lüv »

After I got those 2, I put the dependences in the source code folder
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: How do I Edit/Compile the Source Code?

Post by Boolsheet »

If you use Mercurial and clone a repository, it will automatically update the working tree to the last commit in the default branch. If you want to modify and build LÖVE 0.8.0, you have to go back to that specific commit. It has a tag, so you can just execute the following:

Code: Select all

C:
cd C:\Users\Christopher\Downloads\love\
hg update 0.8.0
You now have the older version of the source code just as it was used for the official 0.8.0 release. The Visual Studio project files have also changed, you need the other SDK for them. I recommend deleting the files from the newer SDK because they might bite each other.

It looks like you didn't combine the SDK correctly with the repository, it doesn't find the Lua header. The SDKs have the directories 'love/platform/msvc2010', just like the repository. In the end, the 'lib' and 'include' directories from the SDK should be beside the Visual Studio project files.
Shallow indentations.
Lüv
Prole
Posts: 29
Joined: Fri Oct 19, 2012 11:24 pm
Location: Greenville, South Carolina

Re: How do I Edit/Compile the Source Code?

Post by Lüv »

Ok, so I completly restarted the thing and I followed the tutorial and did what you said with the update thing. So the file called "love-win-sdk-msvc2010", Do I put the folder inside of it, called "Love", inside of the "Love" Folder that I got from the "hg clone https://bitbucket.org/rude/love" that I updated with "hg update 0.8.0"?

Sorry for the bad explaining
Lüv
Prole
Posts: 29
Joined: Fri Oct 19, 2012 11:24 pm
Location: Greenville, South Carolina

Re: How do I Edit/Compile the Source Code?

Post by Lüv »

Heres a better explaination:

This Is What My Downloads Floder Looks Like:

• love (Folder)
• love-win-sdk-msvc2010 (Folder)
• love-win-sdk-msvc2010 (win-rar file)

So, Do I put the love-win-sdk-msvc2010 (Folder) into the love (Folder) or do I open up the love-win-sdk-msvc2010 (Folder) and put the folder that is inside the love-win-sdk-msvc2010 (Folder) which is called "Love" (Folder) into the other love (Folder) that is in the main directory of Downloads. Or do I go further into the love-win-sdk-msvc2010 (Folder)?
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: How do I Edit/Compile the Source Code?

Post by Boolsheet »

Let's make this easy. Go into the love-win-sdk-msvc2010 directory until you see the platform directory. Copy the platform folder and paste it into the love repository directory. Yes, you're going to merge it with the already existing platform directory in the love repository.

By the way, people like it if you use the edit button instead of posting two messages in a row.
Shallow indentations.
Lüv
Prole
Posts: 29
Joined: Fri Oct 19, 2012 11:24 pm
Location: Greenville, South Carolina

Re: How do I Edit/Compile the Source Code?

Post by Lüv »

Ok, Thanks. Sorry for the double post. I'm kinda new to forums. So Which file do I open up in the love\platform\msvc2010 to edit/compile the source? There is the following that I think is one of the right ones:
• love (Microsoft Visual Studio Solution)
• love (VC++ Project)
•love.vcxproj (VC++ Project Filters File)
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: How do I Edit/Compile the Source Code?

Post by Boolsheet »

The solution would be the correct thing to open. However, Visual Studio will resolve it properly if you open one of the others.

(Does Windows hide the known file extensions for you? Do you keep this setting enabled by choice? I find it a real pain.)
Shallow indentations.
Lüv
Prole
Posts: 29
Joined: Fri Oct 19, 2012 11:24 pm
Location: Greenville, South Carolina

Re: How do I Edit/Compile the Source Code?

Post by Lüv »

It Does not show me, How do I enable it to show me?
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: How do I Edit/Compile the Source Code?

Post by Boolsheet »

Don't ask me. Ask Microsoft!
Shallow indentations.
Post Reply

Who is online

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