Author Topic: Has anyone compiled a static client?  (Read 632 times)

Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Has anyone compiled a static client?
« on: July 07, 2013, 06:54:56 am »
I am out of ideas on this, what am I missing?
---------------------------------------
./out/linux/optimize/src/plugins/database/mysql/static/dbmysql_dal.o ./out/linux/optimize/src/plugins/database/_dbmysql_static_reg.o

...failed Archive ./out/linux/optimize/libs/libplaneshift_database_staticplugins-0.5.a ...
...skipped psclient_static for lack of planeshift_database_staticplugins...
----------------------------------------
I thought it was mysql but you can see with the last couple of lines of the compile has done that (or at least some of it).
Any ideas appreciated.

steuben

  • Veteran
  • *
  • Posts: 1834
    • View Profile
    • Myspace
Re: Has anyone compiled a static client?
« Reply #1 on: July 07, 2013, 07:30:24 am »
you bugged the folks in the build channel?
may laanx frighten the shadow from my path.
hardly because the shadow built the lexx.
the shadow will frighten laanx from my path.

Neeno

  • Traveller
  • *
  • Posts: 29
    • View Profile
    • GreatShift
Re: Has anyone compiled a static client?
« Reply #2 on: July 07, 2013, 08:29:47 am »
I have the same problem too...
Maybe you could tell me, if you find a solution.  :)

Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: Has anyone compiled a static client?
« Reply #3 on: July 07, 2013, 08:50:37 am »
Yes I have asked on the build channel and I will certainly post any progress I make, if I do. I have for the moment run out of things to try.

apalazzi

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: Has anyone compiled a static client?
« Reply #4 on: July 08, 2013, 03:03:21 am »
I am out of ideas on this, what am I missing?
---------------------------------------
./out/linux/optimize/src/plugins/database/mysql/static/dbmysql_dal.o ./out/linux/optimize/src/plugins/database/_dbmysql_static_reg.o

...failed Archive ./out/linux/optimize/libs/libplaneshift_database_staticplugins-0.5.a ...
...skipped psclient_static for lack of planeshift_database_staticplugins...
----------------------------------------
I thought it was mysql but you can see with the last couple of lines of the compile has done that (or at least some of it).
Any ideas appreciated.

Which command are you using to compile the client? jam client_static doesn't seem to do anything...

Bye
Andrea

Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: Has anyone compiled a static client?
« Reply #5 on: July 08, 2013, 03:13:31 am »
jam client_static got me that far but first I had to compile crystalspace with jam staticplugins

there is also a jam staticplugins for planeshift but that fails about the same place the client does. I thought it might be lack of mysql statci libraries but as far as I can tell they are there in the normal path /usr/lib/libmysqlclient.a


Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: Has anyone compiled a static client?
« Reply #6 on: July 09, 2013, 01:13:41 am »
Seriously folks how can you compile a client and get it to run on another system that has not done a full up install of crystalspace?
I have been trying to come up with some ways to just include libraries but no joy so far. :(

apalazzi

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: Has anyone compiled a static client?
« Reply #7 on: July 10, 2013, 05:03:30 am »
Seriously folks how can you compile a client and get it to run on another system that has not done a full up install of crystalspace?
I have been trying to come up with some ways to just include libraries but no joy so far. :(

You can ship all the libraries (.so) in your client package and then add the library path to LD_LIBRARY_PATH.

Let's say that the client extracts all of its files under a directory PSCLIENT; you put all the required libraries (including CS dependancies) in $PSCLIENT/lib , then provide a pslaunch.sh that looks like this:
Code: [Select]
#!/bin/sh

# set the variable PSCLIENT to the current directory
export PSCLIENT=$(pwd)
export LD_LIBRARY_PATH=$PSCLIENT/lib:$LD_LIBRARY_PATH
./pslaunch

This in theory; in practice I haven't tried it.

EDIT: just a little cleanup to make the launcher script more clear.

Bye
Andrea
« Last Edit: July 10, 2013, 06:09:48 am by apalazzi »

Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: Has anyone compiled a static client?
« Reply #8 on: July 17, 2013, 11:25:43 am »
My most recent attemp, the static build actually completed with the new instructions on
https://planeshift.svn.sf.net/svnroot/planeshift/trunk/docs/compiling.html
for compiling static
Still client wouldnt run, I set up bash as suggested here and copied the libs it wanted from crystalspace then it

SCF_NOTIFY: scanning plugin directory: /compile/planeshift (context ‘{none}’; recursive no)
SCF_NOTIFY: scanning plugin directory: /compile/planeshift/lib (context ‘{none}’; recursive no)
NOTIFY: loading plugin instance for crystalspace.kernel.vfs
WARNING: could not load plugin ‘crystalspace.kernel.vfs’
 * This likely means that the plugins could not be found.
 If you're a user: Check the working directory the application starts from -
  usually, it is the same as the directory with the executable.
  If in doubt, contact the vendor.
 If you're a developer: Check if the CRYSTAL environment var points to the
  correct location - usually the directory CS was built in.
  You can also use the ‘--verbose’ command line switch to troubleshoot
  where CS looks for plugins.
ERROR: csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment variable set?

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Has anyone compiled a static client?
« Reply #9 on: July 17, 2013, 11:41:02 am »
If you are a developer, an environment variable CRYSTAL has to be set to point at some CrystalSpace libraries. The Compiling Guide in the SVN (this used to be linked in the topic of the IRC channel #planeshift-build on Freenode) should explain...

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: Has anyone compiled a static client?
« Reply #10 on: July 17, 2013, 09:57:57 pm »
But a static client is for (or should be) using by users - not everyone who wants to play a game like PS is going to be installing crystalspace.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Has anyone compiled a static client?
« Reply #11 on: July 18, 2013, 01:05:22 am »
Ah, my bad; of course it may be required during the compiling, but the final client should not need it. I thought these messages appeared during the compilation, but they are errors of the client, so they appear to be hints that the compilation was incomplete.

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Chetty

  • Traveller
  • *
  • Posts: 12
    • View Profile
Re: Has anyone compiled a static client?
« Reply #12 on: October 06, 2013, 12:18:26 am »
Well I am back at trying to get a static client

it pretty much ends the compile with some version of
...failed Archive ./out/linux/optimize/libs/libplaneshift_database_staticplugins-0.0.a ...
...skipped client_static for lack of planeshift_database_staticplugins...
...failed updating 1 target(s)...

looking back through the compiler output I find:
./out/linux/optimize/src/plugins/common/bgloader/static/bgloader_loader_objects.o: No such file or directory
./out/linux/optimize/src/plugins/common/bgloader/static/bgloader_loader_objects.o

Since regular compiles work fine I assume there is a problem somewhere in the jam files but I have no clue how to find/fix it.