PlaneShift

Development => Development Deliberation => Topic started by: Stronith on November 29, 2005, 06:57:51 am

Title: Compiling CS: help please
Post by: Stronith on November 29, 2005, 06:57:51 am
I\'ve followed the instruction for compiling from http://laanx.fragnetics.com/index.php?page=build_visual in an attempt to see PS from the inside-out.

I was able to successfully download and install everything I needed, but am stumped to where I went wrong.  The task of compiling CS gives me these errors right off the bat.  There are tonnes more, but I imagine if I can resolve a few, I will see where I went wrong:


plgtlfunc fatal error LNK1104: cannot open file \'zlib.lib\'
e:\\Development\\CS\\include\\csutil\\zip.h(32): fatal error C1083: Cannot open include file: \'zlib.h\': No such file or directory
e:\\Development\\CS\\include\\csutil\\zip.h(32): fatal error C1083: Cannot open include file: \'zlib.h\': No such file or directory
e:\\Development\\CS\\include\\csutil\\zip.h(32): fatal error C1083: Cannot open include file: \'zlib.h\': No such file or directory


What I\'m hoping for is a quick-fix, maybe I missed something.  

Running Visual C++.net, BTW.

Thanks, if anyone can point me in a direction to fix this up.


Title:
Post by: Ethan on November 29, 2005, 10:13:20 am
I have seen someone with the same problem on irc, chan #planeshift-build.
According to the ouput, you don\'t have a lib called zlib.lib.
Make sure you have it and that the variable(s) defining the path is pointing to it.
Else find someone on irc.
I can\'t help more...
Title:
Post by: acraig on November 29, 2005, 05:46:01 pm
zlib should be part of the cs-win32libs that you downloaded.

My first check would be to see if:
e:\\Development\\CS\\include\\csutil\\zip.h exists.  And if not I would re-download and install the ( latest ) win libs stuff from http://crystalspace3d.org/support/win32/
Title:
Post by: Stronith on November 30, 2005, 01:08:25 am
Thanks to both of you.  Between your advice I have gotten CS built.  I am new to C and Visual Studio but I think I can get this all figured out now. :)

Title: I spoke too soon
Post by: Stronith on December 02, 2005, 09:39:56 pm
I have problems with building PS itself.  I end up with a slew of errors that I suspect are all or mostly connected to one or two things I may have overlooked.  Is there somewhere that I could post the errors to have them skimmed by an experienced eye?  Perhaps it may be obvious to someone where I went wrong.

example:

e:\\Development\\planeshift\\src\\common\\paws\\pawsobjectview.cpp(649): error C2039: \'GetChildren\' : is not a member of \'iMeshWrapper\'
e:\\Development\\planeshift\\src\\common\\paws\\pawsobjectview.cpp(649): error C2227: left of \'->Add\' must point to class/struct/union
e:\\Development\\planeshift\\src\\common\\paws\\pawsobjectview.cpp(702): error C2039: \'GetChildren\' : is not a member of \'iMeshWrapper\'
        ..\\..\\..\\CS\\include\\iengine\\mesh.h(244) : see declaration of \'iMeshWrapper\'
e:\\Development\\planeshift\\src\\common\\paws\\pawsobjectview.cpp(702): error C2227: left of \'->Remove\' must point to class/struct/union
e:\\Development\\planeshift\\src\\common\\effects\\pseffectobj.cpp(324): error C2039: \'GetChildren\' : is not a member of \'iMeshWrapper\'
e:\\Development\\planeshift\\src\\common\\effects\\pseffectobj.cpp(324): error C2227: left of \'->Remove\' must point to class/struct/union



I\'ve checked and rechecked all the steps thus far and it seems all is done that should have been...

Thanks in advance if anyone can help.
Title:
Post by: acraig on December 02, 2005, 09:52:56 pm
The reason for this is that you are using a \'too recent\' version of PlaneShift.  The current release of CS to use is Oct 6, 2005.   It sounds like you are using the most recent version.   What I suggest is going to your CS directory and doing:

cvs update -D \"2005-10-06 00:00:00\"

And rebuild that.   You may also have to do the same for CEL.  See http://laanx.fragnetics.com/ ( on the left hand side ) for the exact cvs dates you should be using for the various projects.

OR

I can provide you with the fixes for those error. They are easy to fix and would be quicker than rebuilding everything.