Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Compiling Trouble (Warning: Noob Ahead)  (Read 3251 times)

Ringmaster

  • Bay Watcher
    • View Profile
Compiling Trouble (Warning: Noob Ahead)
« on: December 19, 2009, 07:28:31 am »

Okay, so I've grabbed myself a copy of the source code of SourceForge, said a prayer to Jonathan for allowing us all access to it, and I've made a couple of edits to it. Now, I need to find out how to compile it. I am on Windows Vista, and I use Visual Studio, can somebody help me on what I need to do to make the code compile properly?
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #1 on: December 19, 2009, 08:27:06 am »

If you haven't, go to the workspaces directory, and open up the visual studio project file there. You should be able to just compile it immediately once you load up that project. There's a green play button you can click to compile and run the program on one of the top bars if you aren't familiar with visual studio.

The original praise goes to Tarn Adams (Toady One) for releasing the source code to LCS as open source -- without his having done so, I'd have never gotten access to it myself. :)
Logged

Ringmaster

  • Bay Watcher
    • View Profile
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #2 on: December 19, 2009, 08:43:16 am »

Wow, compiled perfectly. Thanks Jonathan! ;D Can't believe I didn't just ask in the first place.
Logged

Firewolf

  • Bay Watcher
    • View Profile
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #3 on: December 19, 2009, 02:57:29 pm »

Welcome ring master its good to have people with ideas interested in the project.

I have a question myself. Is it possible to compile to project in dev++ or netbeans? Im too used to using visual studio.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #4 on: December 19, 2009, 07:19:40 pm »

I'm sure it is possible, but I couldn't tell you how.
Logged

Sisco

  • Escaped Lunatic
  • Burn...
    • View Profile
    • Spectre Studios
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #5 on: December 29, 2009, 09:23:17 pm »

Just wondering, is the full version of visual studio required? I only have 2008 Express, and it failed to build. Just wondering.

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #6 on: December 30, 2009, 02:41:56 am »

I use the full version of Visual Studio because I get it cheap through my college major, but it shouldn't be required. What failed in the build process?
Logged

Googolplexed

  • Bay Watcher
  • My avatar is of whitespace, Not the firefox logo
    • View Profile
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #7 on: December 30, 2009, 07:55:56 am »

I've been using express here
Logged

Sisco

  • Escaped Lunatic
  • Burn...
    • View Profile
    • Spectre Studios
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #8 on: December 30, 2009, 12:26:29 pm »

Here is my build log.


Realize that I am a newb with C++, I come from a background of C# and web languages.

Googolplexed

  • Bay Watcher
  • My avatar is of whitespace, Not the firefox logo
    • View Profile
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #9 on: December 30, 2009, 01:54:35 pm »

The SVN code is occasionally broken
It looks like you've done everything correctly
Assuming this is a straight compile and you haven't modified pool.cpp

EDIT: Latest SVN fixes that, update the source.
« Last Edit: December 30, 2009, 02:11:14 pm by Googolplexed »
Logged

Sisco

  • Escaped Lunatic
  • Burn...
    • View Profile
    • Spectre Studios
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #10 on: December 30, 2009, 02:09:38 pm »

Yeah, I checked the code out from svn. It might be broken.  :(

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #11 on: December 30, 2009, 02:18:40 pm »

My initial reaction is that it's not somebody breaking the build, but rather that pool.cpp may not be part of the build. Try right clicking pool.cpp on the right sidebar and picking exclude from build. It might be in a folder; try character (or creature, whatever the folder is called). If excluding pool.cpp from the build doesn't fix it, then I'm mistaken and the problem is just that somebody changed pool.cpp and didn't make sure their changes compiled before committing to SVN.

Sorry if this comes across as excessively stern, but as a general practice, people should consider it prohibited to upload code that doesn't compile to SVN. It's really easy to make sure the code compiles, so unless you're specifically asking for help getting something to compile, uploading code that doesn't is really bad form and it needlessly makes everyone else's life difficult by preventing anyone else from compiling the game. Unless the fixes are trivial and small in number, I'll revert any changes that break the build if I encounter them.
Logged

Sisco

  • Escaped Lunatic
  • Burn...
    • View Profile
    • Spectre Studios
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #12 on: December 30, 2009, 02:24:55 pm »

I was able to get it to build.  :)

You were right, pool.cpp needed to be excluded, I also had to create a game.exe file in the debug/release directories.

Googolplexed

  • Bay Watcher
  • My avatar is of whitespace, Not the firefox logo
    • View Profile
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #13 on: December 30, 2009, 02:26:48 pm »

Sorry if this comes across as excessively stern, but as a general practice, people should consider it prohibited to upload code that doesn't compile to SVN. It's really easy to make sure the code compiles, so unless you're specifically asking for help getting something to compile, uploading code that doesn't is really bad form and it needlessly makes everyone else's life difficult by preventing anyone else from compiling the game. Unless the fixes are trivial and small in number, I'll revert any changes that break the build if I encounter them.

Not sure why you're telling us, As far as I know neither I nor Sisco have SVN(Commit) access.
« Last Edit: December 30, 2009, 02:29:25 pm by Googolplexed »
Logged

Sisco

  • Escaped Lunatic
  • Burn...
    • View Profile
    • Spectre Studios
Re: Compiling Trouble (Warning: Noob Ahead)
« Reply #14 on: December 30, 2009, 02:30:03 pm »

I think he means to the general public, because somebody had to do it, and he is counting on them reading the thread.
Pages: [1] 2