Author Topic: Building PS on the Mac  (Read 8939 times)

MagicFitz

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #15 on: January 31, 2005, 07:47:05 am »
Thanks for the speedy respone (same day isn\'t something I expected :) ).

The problem I have (I should\'ve been clearer in the first place) is that fink can\'t seem to find these libraries to install.

For mysql14-dev I get a \"no package found for specification mysql14-dev\" and for the other two I get \"no matching version found for libiconv-shlibs/libjpeg-dev.\"

I take it this is a problem peculiar to my situation and no one elses? :(

Maybe I will have to just wait.

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #16 on: January 31, 2005, 08:11:07 am »
Perhaps your fink installation/configuration is wacked?  I know mine usually is...  Have you tried the \"fink list\" command, as in \"fink list libjpeg\" ?  That might tell you what is available.

I am slowly committing fixes that I\'ve made in my own local copy to CVS in order to make things easier for people interested in compiling it from source.

Of course, a whole lotta you would be much happier to not *have* to :)
Quidquid latine dictum sit, altum sonatur.

mrflecko

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
jam problem
« Reply #17 on: January 31, 2005, 11:42:13 am »
Hi all

I\'m trying to install jam from the link provided early in this thread, but I have no idea how to install it based on the package I installed.  Fink can\'t find \'jam\' (or a number of other packages, for that matter), and I\'m a little lost at this stage without it.

Can anyone help me out?

Thanks!

Mathious

  • Hydlaa Resident
  • *
  • Posts: 79
    • View Profile
(No subject)
« Reply #18 on: January 31, 2005, 07:41:10 pm »
Quote
Originally posted by solubacni

If you installed jam using fink you have to have /sw/bin in your PATH environment variable.  If you couldn\'t \"see\" jam in fink then you need to add the unstable trees to your /sw/etc/fink.conf.  See fink docs for further info.

Cheers,
solubacni


nice one - thing thinks should be working fine now - TY for the tip Solubacni!

Edit:
Everything seems to be compiling fine now - just wanna say thanks to all who have contributed to this thread.

And to anyone out there who wants to play PS - get the source code and build - its no walk in the park esp for newbs, but well worth it!
« Last Edit: January 31, 2005, 08:42:43 pm by Mathious »
Join me in my quest!  @ http://www.slim.filetap.com

MagicFitz

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #19 on: February 01, 2005, 01:00:05 am »
I did a little slewthing and you were right Mr. Fryer :)  My Fink config was whacked.  For all those in a similar position to what I was in you need to add

unstable/main

and

unstable/crypto

to the Trees line in your fink.conf file, found in /sw/etc/

It must be that the missing libraries are classified as unstable and as such aren\'t found when Fink searches the stable list. :)

Hope this helps someone!..I\'m off to compile the Planeshift...the wonderful Planeshift of OZ. ;)

EDIT: What a retard....I didn\'t even read solubacni\'s response...which would\'ve saved some time searching through the Fink website.
« Last Edit: February 01, 2005, 01:01:49 am by MagicFitz »

solubacni

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #20 on: February 01, 2005, 03:28:36 am »
I\'ve since connected, haphazardly created a character and screwed around for a bit.  Still a bit of work to go before this is playable, I think.  It has recently dawned on me just how huge this project is.  Wow.

Perhaps there ought to be some careful solicitation of professional \"sponsors\" to help make this happen?  Lots of work to do...
« Last Edit: February 01, 2005, 06:00:32 pm by solubacni »

Mathious

  • Hydlaa Resident
  • *
  • Posts: 79
    • View Profile
...looks like I spoke too soon
« Reply #21 on: February 01, 2005, 07:03:56 pm »
How do I configure the crystal enviroment variable? I seem to get that error after I try to compile anything from Cel onwards....

Edit:
...silly me - just read Solubacni\'s guide to install in its entirety once more - I think I may have found the answers... the stuff in the read me in the support directory right?
« Last Edit: February 01, 2005, 07:48:01 pm by Mathious »
Join me in my quest!  @ http://www.slim.filetap.com

Mathious

  • Hydlaa Resident
  • *
  • Posts: 79
    • View Profile
Tearing out my hair....
« Reply #22 on: February 01, 2005, 08:14:28 pm »
Matt:~/Desktop/PS/planeshift Matt$ ./updater.app/Contents/MacOS/updater
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

NOTIFY: MacOS/X 2D OpenGL driver for Crystal Space 0.99 r0
Written by Matt Reda
WARNING: Could not open driver database file \'/config/gldrivers.xml\'
NOTIFY: OpenGL renderer: ATI Radeon 9200 OpenGL Engine (vendor: ATI Technologies Inc.) version 1.3 ATI-1.3.36
NOTIFY: Using windowed mode at resolution 640x480.
NOTIFY: Pixel format: Color: 0 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 0 AccumAlpha: 0 MultiSamples: 0
WARNING! Crystal Space performs better in 24 or 32 bit display mode!
WARNING: Shader /shader/std_lighting.xml not available  Failure imminent!
Bus error


The updater starts - then terminal gives me the above..... any thoughts?
Join me in my quest!  @ http://www.slim.filetap.com

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #23 on: February 01, 2005, 08:17:28 pm »
If you\'re operating on the command line, and the directory containing crystal space is  \"/Users/mathious/CS\", then you can use the command \"defaults write NSGlobalDomain CrystalSpaceRoot /Users/mathious/CS\"

The name of your CS folder will probably be different, but that\'s just an example.  Note that this does not actually set the CRYSTAL environment variable, but the mac version of crystal space also uses the \"defaults\" system to find things.

The changes to internallibs.sh are necessary if you\'re using different versions of the shared libraries from me.  Running internallibs.sh is also not necessary if you\'ve compiled it on your own machine and you have all the depedencies installed via fink.

EDIT:

In response to the immediately previous post, either you\'re missing the file or your vfs.cfg is looking in the wrong place for it.  If you\'re relying on Crystalspace in a separate directory, you shouldn\'t have a vfs.cfg in the same folder as your updater.  The vfs.cfg which I mistakenly committed to planeshift cvs is only applicable to a \"packaged\" configuration of planeshift.
« Last Edit: February 01, 2005, 08:20:13 pm by dfryer »
Quidquid latine dictum sit, altum sonatur.

Mathious

  • Hydlaa Resident
  • *
  • Posts: 79
    • View Profile
(No subject)
« Reply #24 on: February 01, 2005, 08:27:49 pm »
Thanks for the uber-speedy response Daniel, unfortunately I still cant get it going.
I get similar read outs when I try to launch any of the applications - here is what i get trying to launch PsClient.app :-

Matt:~/desktop/ps/planeshift Matt$ ./psclient.app/Contents/MacOS/psclient
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder
ERROR: Failed to load plug-in module `/Users/Matt/Desktop/PS/planeshift/psclient.app/Contents/Resources/opcode.csplugin\'.
Reason: File does not exist (/Users/Matt/Desktop/PS/planeshift/psclient.app/Contents/Resources/opcode.csbundle)
WARNING: could not load plugin \'crystalspace.collisiondetection.opcode\'

crystalspace.canvas.openglcommon.driverdb:
  Could not open driver database file \'/config/gldrivers.xml\'
  WARNING! Crystal Space performs better in 24 or 32 bit display mode!
Bus error

Also: if I remove VFS.cfg from the Planeshift folder terminal returns this :

Matt:~ Matt$ /Users/Matt/Desktop/PS/planeshift/updater.app/Contents/MacOS/updater
Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

ERROR: csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment variable set?
Matt:~ Matt$


Im gonna be patient with it though - after all, if I can stand to try and build it 5 times, im sure I can try and figure out what im doing wrong now lol.
But seriously - does anyone know what im doing wrong here?
I think ive followed all the instructions as best as I can...

Edit:
I suppose its important to keep in mind that I (and no doubt others trying to build PS) am simply trying to make sense of instructions. Truth be told I honestly dont know 100% what Im doing, although I am trying my best to understand.
« Last Edit: February 01, 2005, 08:44:56 pm by Mathious »
Join me in my quest!  @ http://www.slim.filetap.com

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #25 on: February 01, 2005, 08:42:26 pm »
Try copying the entire CS/data/shader/ and CS/data/config/ folders into planeshift/data.  If folders with those names exist, merge the contents.
Quidquid latine dictum sit, altum sonatur.

Mathious

  • Hydlaa Resident
  • *
  • Posts: 79
    • View Profile
(No subject)
« Reply #26 on: February 01, 2005, 08:53:24 pm »
...tried copying the folders - same thing happening with updater:-

Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

ERROR: csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment variable set?
Matt:~ Matt$

Edit: Im a dumbass! forgot to pu the vfs.cfg back in the planeshift folder.
Tried re-running the updater and this was the terminal output:-

Crystal Space for MacOS/X 0.99 r0 [MacOS/X-powerpc-GCC]
Ported to MacOS/X by Eric Sunshine

WARNING: could not load plugin \'crystalspace.renderloop.step.generic.type\'
Failed to load plugin crystalspace.renderloop.step.generic.type; pandemonium will ensue.
NOTIFY: MacOS/X 2D OpenGL driver for Crystal Space 0.99 r0
Written by Matt Reda
NOTIFY: Applied: Work around broken ATI point sprites
NOTIFY: OpenGL renderer: ATI Radeon 9200 OpenGL Engine (vendor: ATI Technologies Inc.) version 1.3 ATI-1.3.36
NOTIFY: Using windowed mode at resolution 640x480.
NOTIFY: Pixel format: Color: 0 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 0 AccumAlpha: 0 MultiSamples: 0
WARNING! Crystal Space performs better in 24 or 32 bit display mode!
Critical files () not found (Server only)
Could not open fontfile /planeshift/data/ttf/verdana.ttf!
Bus error

Edit:
Just tried downloading the replacement VFS.cfg from cvs (as suggested in the \"MacOs Package\" Thread) and PSclient is now double clickable and starts up - although it does not look like it\'s been told how to connect to laanx.
The updater still doesnt work though.

With regard to updating 3.0.0.4 (I know this is sorta in the wrong thread but hey :p ) - I tried running the (my old binary package install) updater and it returns the error that the repository file could not be downloaded.
Just downloading the Full updated package as we speak - eta 7 hours... *yawn*
« Last Edit: February 01, 2005, 09:46:32 pm by Mathious »
Join me in my quest!  @ http://www.slim.filetap.com

Mathious

  • Hydlaa Resident
  • *
  • Posts: 79
    • View Profile
By the way...
« Reply #27 on: February 01, 2005, 09:25:15 pm »
...been meaning to ask about your sig:-
 \"Quidquid latine dictum sit, altum sonatur.\"
....what does it mean?

Edit:
..Scratch that Dfryer - a quick bit of googling explained your sig - very nice!
:D
« Last Edit: February 01, 2005, 09:37:40 pm by Mathious »
Join me in my quest!  @ http://www.slim.filetap.com

MagicFitz

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #28 on: February 02, 2005, 01:15:06 am »
It looks like I may be out of the compilation race guys.

No matter what I do to my copy of Fink (including sacrificing several chickens to the FinkGod) it can\'t seem to find the source code for libjpeg-dev or libiconv-shlibs.

\"fink list\" doesn\'t show them as available packages and neither does the fink website.  I\'ve looked through dselect and apt-get as well (despite them being poor seconds to fink list, IMO) and they don\'t show up there either.

If anyone has any pointers as to where I can get these libraries from.  I\'d be very appreciative otherwise I\'ll just have to wait for the compiled version to be officially released.

Maybe someone could go to their /sw/src/ directory and upload the compressed source code found in there to somewhere on the net for me? ;)  I don\'t, however, expect anyone to do this as its a major hassle.

At least this dusted off my old computer science skills a bit.  Unfortunately it also showed me that by and large they are dead and twitching on the floor. ;)

Good luck to everyone compiling and thanks for all the help.  I\'ll check back every so often to see how people are going.

Your 1 man compilation cheer squad ;),

Fitz

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #29 on: February 03, 2005, 06:07:41 pm »
To be quite honest, I don\'t see libiconv-shlibs either... you could try libiconv-dev, but I don\'t even know what it\'s used for, so you could always press on without it.  If you have some version of libjpeg as well, you should be fine.

Perhaps, in fact, try libjpeg-shlibs and libiconv-dev?

Just a thought :)
Quidquid latine dictum sit, altum sonatur.