Best way to dust off an old project

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
zorocke
Halfling
Posts: 48
Joined: Mon Dec 22, 2008 5:01 pm

Best way to dust off an old project

Post by zorocke »

Today I was looking into dusting off an old project that I had never completed. Of course, all the dependencies and such have long since been moved or deleted on my system... :( So when i went to compile I was confronted with nothing but a list of errors.

After about 2 hours of trying to get the dependencies back and in their proper place such as Ogre and Newton, I am still confronted with a list of errors. Some of which to do newer versions of the libraries.

I'm wondering, should I spend more time trying to get my old project to build or might it be easier to create a new visual studios solution and start the project from scratch using my old code as a reference to speed the project along?

Currently i see more benefits in the second option such as getting to familiarize myself with my code, and an opportunity to possibly upgrade to better or more active dependencies.
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Re: Best way to dust off an old project

Post by Klaim »

I'm wondering, should I spend more time trying to get my old project to build or might it be easier to create a new visual studios solution and start the project from scratch using my old code as a reference to speed the project along?
I've done this a long time ago. It was really easier to use the old code in a new VS project and re-setup the dependencies.

That said, it's totally dependant on the project. If the problem is just with the VS project/solution file, then just recreate it.
User avatar
stoneCold
OGRE Expert User
OGRE Expert User
Posts: 867
Joined: Fri Oct 01, 2004 9:13 pm
Location: Carinthia, Austria
x 1

Re: Best way to dust off an old project

Post by stoneCold »

You can save yourself a lot of trouble by using environment variables, such as $(OGRE_HOME), etc. in your VS project settings (include/library directories).
my tweets | www.fuse-software.com | home of vektrix (Flash GUI for Ogre3D) and caspin (ActionScript 3 Virtual Machine Wrapper)
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Re: Best way to dust off an old project

Post by Klaim »

Personally I have projects and dependencies directly in my svn, making the project easy to get for other devs (just checkout and compile -- but still requires boost). That way i avoid any dependency problem.
User avatar
KungFooMasta
OGRE Contributor
OGRE Contributor
Posts: 2087
Joined: Thu Mar 03, 2005 7:11 am
Location: WA, USA
x 16
Contact:

Re: Best way to dust off an old project

Post by KungFooMasta »

I vote for re-writing, re-using old code/ideas where feasible. I have an old project as well, and that would be the approach I would take. My current framework is much better than the previous one, and I've learned a lot since then. (this is my first project btw :lol: )
Creator of QuickGUI!
Fulmens
Gremlin
Posts: 151
Joined: Sun Jun 22, 2008 8:29 pm
Location: Nantes, France
x 1

Re: Best way to dust off an old project

Post by Fulmens »

Moreover, "rewriting" it will help you remember how it works. And be ashamed of the code you wrote back then :mrgreen:
"Oh My Gawd, why would I do that in such a lame way ?!"
zorocke
Halfling
Posts: 48
Joined: Mon Dec 22, 2008 5:01 pm

Re: Best way to dust off an old project

Post by zorocke »

KungFooMasta wrote:I vote for re-writing, re-using old code/ideas where feasible. I have an old project as well, and that would be the approach I would take. My current framework is much better than the previous one, and I've learned a lot since then. (this is my first project btw :lol: )
I've started with this strategy. I'm documenting my progress on my blog.
Post Reply