Author Topic: Libaries needed for PS  (Read 1942 times)

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
Libaries needed for PS
« on: January 24, 2005, 05:25:55 am »
Could a list of libraries and their version numbers be provided, especially the version numbers of the libraries used by the developers.

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
(No subject)
« Reply #1 on: January 24, 2005, 07:57:22 am »
In the instructions for compiling there is written there and then, which kind of libraries PS requires, if that can be a starting point. Have you checked that out?

Ie: for Windows/MSVC:

http://cvs.sourceforge.net/viewcvs.py/planeshift/planeshift/docs/compiling-visualc.txt?rev=1.6&view=markup

Ary
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

confused

  • Hydlaa Citizen
  • *
  • Posts: 269
    • View Profile
(No subject)
« Reply #2 on: January 24, 2005, 05:42:20 pm »
I must be missing the file for Linux.

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
(No subject)
« Reply #3 on: January 24, 2005, 05:45:42 pm »
http://laanx.fragnetics.com/gentoo.php

Here there are build instructions for Gentoo (and you will see on top the one for Debian)

Ary
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

bitula

  • Hydlaa Resident
  • *
  • Posts: 58
    • View Profile
(No subject)
« Reply #4 on: January 25, 2005, 10:39:30 pm »
As far as I have experienced you donot need any third-party compiled libs, cause everything is reproducable from source. Just checkout CS, cel and planeshift (and curl) and you can build the whole game.

altair

  • Traveller
  • *
  • Posts: 19
    • View Profile
(No subject)
« Reply #5 on: January 29, 2005, 07:01:27 pm »
If you are building on Fedora Core 3 you will need to add libidn to get the updater to build. You can get it from gnu here:

http://ftp://alpha.gnu.org/pub/gnu/libidn/

Aerig

  • Hydlaa Resident
  • *
  • Posts: 76
    • View Profile
(No subject)
« Reply #6 on: February 03, 2005, 03:26:04 pm »
Erm, dont want to argue ;), but compiling with MSVC I have had so far had to download about a dozen extra libraries, several related to sound and graphics but a few others also.

In the process of attempting to compile the server, I have also had to turn of several of the subprojects (I think MNG might have been one of them) with the result that (tbh mostly due to needing time for RL stuff) that I have more or less aborted the attempt until I can get more time and/or the compilation process under MSVC is documented a bit more fully.

I just dont have the time to compile until an error crops up, go check where to get the library that is missing and resulting in the error, download it, install it, compile it, remove any errors in compiling it and then move on to the next library.

I second the call for a full list of what support libraries are required and where to get them.


With respect to compiling under MSVC it would also be nice if the support libraries had a preallocated space within the source tree which the project file was preconfigured to refer to so that people wanting to compile the server source would only have to download the relevant libraries and extract them in the appropraite directories within the source tree for it to compile.

And, again, I\'d like to suggest that it would be a good idea if the source for all relevant libraries was included (as permitted by the distributors) in the CVS so that people keen to work on PS would not have to spend a week hunting around for all of them themselves.

While I can see that overcoming the problem of finding all these libraries and installing them is one way to ensure that the people who contribute to PS are competent to do so, I would also like to point out that there are very many programmers who are not necessarily extremely familiar with the process of hunting down support libraries and installing them, but who are, nevertheless, perfectly capabale of producing excellent code.

Since November, I have read at least half a dozen posts here made my programmers who appear perfectly competent to turn out good C++ code but who are not conversant with Linux style code environments and practice and so have been baffled in fulfilling an earnest desire to help further the PS project.

While completely unfamiliar with C++, I have compiled pretty much the entire base Linux system from source and am still finding compiling PS to be problematic.

While I admit that I have not had as much time to put into it as I would like, surely that is some indication of how much of an obstacle getting past the compilation stage must be for people who are more used to working in a Windows environment.

My perspective on this is basically as follows. While I am not part of the development team (yet), I think that PS is a fantastically inspiring project that very many people would both like to see progress and would like to contribute to.

Now that the work on the underlying game engine seems to be relatively complete and to have resulted in a stable platform for development of a more complete ingame engine, it would surely be extremely helpful for the project to have the help of those additional people who find the project as interesting and inspiring as myself and are keen to help it move forward.

That and the fact that the bulk of the work of implementing a complete game seems still to be done has me feeling that you may agree with me that now would be a very good time to consolidate on what the project has achieved so far and make it easier for new members to join the team, by providing introductoory documentation on where a developer new to the project should start in familiarising themselves with the source code and on reviewing the source install and compile documentation so that it is much easier for people to join the PS project and begin to develop code for it.

Having said that, I have been very busy over the last few months and have not had a chance to update my copy of the source or to check for the improved documentation that you have already said was a goal that you wanted to achieve after the release of CB.

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #7 on: February 03, 2005, 04:03:23 pm »
Quote
Originally posted by Aerig
Erm, dont want to argue ;), but compiling with MSVC I have had so far had to download about a dozen extra libraries, several related to sound and graphics but a few others also.


Hmm, that seems very strange.  If you could be a bit more specific then I could probably have a clearer picture of what is missing.  On Windows 99% of the required extra libraries should be part of the Crystal Space Windows library package that you need to install when building Crystal Space.  The only other libraries I can think of is the mysql one if you want to build the server and the libcurl one for the updater.

When I wrote my gentoo doc it was on almost a totally new install and almost everything I needed was already there.

So a list of the ones that are missing that you had to go find would be a good help.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #8 on: February 03, 2005, 04:03:24 pm »
This might help with the depencies:

Quote
Originally posted by Karosh_Steinkatz in another thread
Quote
Originally posted by confused
Quote
Originally posted by Karosh_Steinkatz
They are not that secret ;) CS, CEL and Cal3d were compiled in optimize mode and PS in debug. But I tweaked it\'s Jamrules file to use -g2 instead of -g3 due to the resulting size.

Karosh, Seeing that your clients have been the most stable binaries. Could you list the dependancy libraries used with the versions.


Sure ;)
I used a Slackware 10 out-of-the-box install and I think I only installed OpenAL which wasn\'t on the CDs or in the package list. So I got it from here: http://flightgear.stockill.org.uk/old/
Here is a list of the deps, but I\'m listing only the libs I was shipping with:
libXxf86vm.so.1
libaa.so.1
libasound.so.2
libcal3d.so.10
libcrypto.so.0
libfreetype.so.6
libgcc_s.so.1
libgpm.so.1
libjpeg.so.62
liblcms.so.1
libm.so.6
libmikmod.so.2
libmng.so.1
libncurses.so.5
libnsl.so.1
libogg.so.0
libopenal.so.0
libpng12.so.0
libslang.so.1
libssl.so.0
libstdc++.so.5
libvorbis.so.0
libvorbisfile.so.3
libz.so.1

The version numbers might differ on your system, though. Besides, I think that you think that the binaries were stable because I tested them before I released them ;) CVS has the tendency to be broken sometimes, you know :rolleyes:

A little tip: Check the cvs history file before you get the sources to see if it\'s worth to get it ;)


The list is possibly not 100% complete, but these are the libs that cal3d/cs/cel/ps need and not very common to be installed by default.

If you want a full list check this file: http://www.mortalsaviour.de/download/deps It should contain all required libs, but is rather unsorted, because it\'s part of creating my installer, which I do mostly by hand.

Edit: forgot half of a sentence.. bleh  :rolleyes:
« Last Edit: February 03, 2005, 04:05:22 pm by Karosh_Steinkatz »


Back to Planeshift again \\o/

AryHann

  • Veteran
  • *
  • Posts: 1244
  • WonderWoman
    • View Profile
De MSVC
« Reply #9 on: February 03, 2005, 04:13:55 pm »
The compiling instructions for MSVC are not completely updated. I have sent an updated version, a couple of days ago. Sometimes, it can be tricky, if you haven\'t heard the words CEL, NR and OR to understand that something in the documentation is not exactly alligned with the reality. A part the cURL thing, anyhow, the doc provided with the CVS version for compiling under MSVC is pretty complete.

Some of the problems, might be that the projects files are often not updated at all. zlib.lib that wants to be opened, while PS shouldn\'t need it, or files that disappear that are still in the project, and that manually need to be removed, and new files that need to be added. Certainly, if you follow what it is happening in the CVS update, updating manually such things it is not a problem, but I can understand that a person that is not so \"deep in the subject\" finds some trouble.

I also think that PS is not just a project that needs contribution, but also a project that can be used for other projects as well, and I personally miss this kind of orientation, both in the documentation and in the generic approach of the code. No surprise, obviously, but...
 .
Ary
PS: I hope to not sound polemic, sorry if I am
AryHann

http://www.reflex.lth.se/culture/annelov - Virtual Annelöv -
Engine Dep. - One of Talad's Angels - Aka ww & Ahrijani's Goddess

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
(No subject)
« Reply #10 on: February 03, 2005, 04:19:19 pm »
What we really need is somebody who\'s core focus is on project maintenance.  Somebody that can handle all the MSVC/Jam/OS X stuff so that it behaves in a good way and can keep the build instructions up to date etc.   I agree that sometimes the documentation and structure may be not all that it could be but that\'s what happens when it\'s not an exciting area to work in :).

I try to add in any helpful information that people provide so if you have any notes about building then by all means send them along.  I\'ve be building this for a long time now so things that may seem obvious to me might not be for others.
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Aerig

  • Hydlaa Resident
  • *
  • Posts: 76
    • View Profile
(No subject)
« Reply #11 on: February 03, 2005, 05:16:50 pm »
First, thanks for the replies to my earlier post.

I have not yet given up trying to get the source compiling properly on Windows and will be glad to contribute myself any easier to use project files and any documentation on how to do it faster under MSVC once I have managed to do that.

As I note bleow, I have also just finished building a new machine and deliberately installed RH9 for the sole purpose of having an alternative means of getting the PS server up and running and I will also be happy to make an attempt at writing some docs to cover multiple platform compilation wrt to WXP an Linux at least.

I dont mind that side of project maintenance too much and since I am more interested, on the server side, in reading the source and watching it work so that I can maybe contribute some engine design and algorithms than I am in learning C++ to write the stuff myself, helping to help other people get past the hurdles that I have faced so far would be at least one way that I could help PS become the game that I am really looking forward to seeing completed ... and playing :D


The library directories that I have in my PS dev folder so far are ...

cal3d
cel
CS
curl
ft (freetype)
jpeglib
lib3ds
libmng
mikmod
mjpg
mysql
ode
ode++ (one of these ode\'s is irrelevant)
ogg
oggdrop
openal
openglut
planeshift
vorbis

As far as I can remember I was aboiut halfway through compiling the CS plugins when I hit an error caused by failing to compile another plugin that was problematic.

I have also just looked at the source tree again for the first time since mid-December and actually noticed the www directory ;)

Since this is possibly the only folder that I actually need, since I have asked if I could help with quest design, ensuring that the current CVS is complete with respect to that directory would let me get started on familiarising myself with how to go about that.

The version that I have at present is missing the www/secure directory and possibly others, so I cant use the web admin functions to start writing quests.

NB I am okay on PHP and hoped I would be able to recreate the content of the config file that seems to be missing, but the only parts I have come across so far that are easily reconstructable are the server access variables, $db_*.

Errors on the index page are similar to

Notice: Undefined index: loggedin in f:\\www\\htdocs\\planeshift\\serverconsole\\index.php on line 17

Notice: Undefined index: page in f:\\www\\htdocs\\planeshift\\serverconsole\\commonfunctions.php on line 120


I\'ve just built myself a new machine and am still in the process of reinstalling / net installing most of the stuff I have on my old one so if anyone out there does not mind emailing me a complete copy of the www directory from the current PS distribution I would greatly appreciate the time that would save me and the chance to get started on familiarising myself with the quest construction engine that seems to be in there and to get on with contributing some stuff

You can email me to spam@aerig.plus.com if you dont mind taking the time to do it.

lol spam@ is only just in case some email spam spider is reading this forum ;)  8)