Author Topic: I need help with compiling CS in Ubuntu...  (Read 4540 times)

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
I need help with compiling CS in Ubuntu...
« on: December 26, 2007, 11:28:47 pm »
I downloaded it with the SVN commands.
It compiled fine with no errors, but it put all the files that had been made in my home directory. (not the Development one)
Is it soposed to do that? If not how can  fix this?

EDIT:::

I moved the compilied files to the cs folder, and it works, but when I tried to configure CEL the terminal says this:
Code: [Select]
checking for cs-config-1.1... no
checking for cs-config-1.2... ./cs-config-1.2
checking if Crystal Space version >= 1.1... yes (version 1.2)
checking if Crystal Space SDK is usable... no
configure: error:
*** Crystal Space could not be found or was unusable. The latest version is
*** always available from http://www.crystalspace3d.org/
*** Also, be sure that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.
I did use the command to export the crystal space directory before this.

Thanks,
Gergon
« Last Edit: December 26, 2007, 11:56:54 pm by Gergon »

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #1 on: December 27, 2007, 01:17:12 am »
echo $CRYSTAL

What does that command produce?
----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #2 on: December 27, 2007, 02:09:44 am »
It doesn't do anything.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: I need help with compiling CS in Ubuntu...
« Reply #3 on: December 27, 2007, 08:39:45 am »
Quote
We should add the CRYSTAL environment variable to the .bashrc file so applications outside the Crystal Space tree know where to find the .so's.

export CRYSTAL=/home/user/development/cs
looks like you missed part of this step

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #4 on: December 27, 2007, 02:52:47 pm »
I did, I guess I was hurrying and didn't read it and used it as a command.  ;D

I have added the working directory's, but it still does the same thing, CS is unusable.
I know the directory's are set right because when I type in export $CRYSTAL, it comes up with the right directory.
What could be the problem?  ???

In the mean time, ill recompile it and see if it helps.   ;)
« Last Edit: December 28, 2007, 05:38:39 am by Gergon »

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #5 on: December 28, 2007, 05:02:21 pm »
It works now, thanks for the help, but CEL is not detecting Jam, I'll redownload it.
But I still can't figure out why it puts all the compiled files in my home directory.

Thanks for your help!
Gergon

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: I need help with compiling CS in Ubuntu...
« Reply #6 on: December 28, 2007, 05:15:22 pm »
you mean all the files you downloaded are in one folder?

dont do that download the files again but this time follow the build guide putting cal3d in a cal3d folder cs in a cs folder cel in a cel folder and ps in a planeshift folder. then start the build process over again

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #7 on: December 28, 2007, 07:07:19 pm »
Oh, no, there in separate folders, see my directory is /home/cody/Development/(cs, cel, cal3d, or planeshift).
When I compile something like cs, all the built files get put in /home/cody.

Also, when I go to build CEL the terminal says this:
Code: [Select]
Jamfile: No such file or directory
don't know how to make libs
don't know how to make plugins
don't know how to make cel-config
...found 4 target(s)...
...can't find 3 target(s)...
I do have Jam installed, what could be the problem there?

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: I need help with compiling CS in Ubuntu...
« Reply #8 on: December 28, 2007, 07:20:04 pm »
did you configure first? [are you reading and following word for word the build guide?]

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #9 on: December 28, 2007, 07:45:12 pm »
Yes, I configured it first, but it put all the files that it configured in the /home directory, I moved them back to the Development directory in the cel folder.

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #10 on: December 28, 2007, 08:05:09 pm »
 :sweatdrop: Well, it started to compile, I configured it again, instead of using the command on the compiling guide I typed in jam right after the configuring was finished.

Gergon

  • Traveller
  • *
  • Posts: 27
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #11 on: December 29, 2007, 12:34:28 am »
Thanks for the help everyone.  :thumbup:
« Last Edit: December 29, 2007, 04:19:59 pm by Gergon »

MustangMR

  • Hydlaa Resident
  • *
  • Posts: 128
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #12 on: April 26, 2008, 08:17:00 am »
I'm having problems compiling CS now too.  I am using SuSe 10.1 and the gcc is 4.1.0.  I'm getting:

Quote
C++ ./out/linuxx86/optimize/plugins/sndsys/renderer/software/source.o
plugins/sndsys/renderer/software/source.cpp: In member function ‘void SndSysSourceSoftware3D::SetupFilters()’:
plugins/sndsys/renderer/software/source.cpp:560: internal compiler error: in merge_alias_info, at tree-ssa-copy.c:235
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.suse.de/feedback> for instructions.

Is it too obvious to ask if 4.1.0 is the problem?  I'm seeing a few people say they can do it with 4.1.1, or has anyone seen a similar problem before with this module?
« Last Edit: April 26, 2008, 10:19:51 am by MustangMR »

Vornne

  • Testers
  • Hydlaa Resident
  • *
  • Posts: 189
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #13 on: April 26, 2008, 11:48:01 pm »
After a quick google, it seems you will need to update your compiler, here for example.

MustangMR

  • Hydlaa Resident
  • *
  • Posts: 128
    • View Profile
Re: I need help with compiling CS in Ubuntu...
« Reply #14 on: April 27, 2008, 06:34:56 am »
Thanks.  Yeah, I was being lazy. Was going to check CS's page today and see what might be happening, but I was pretty positive it would end up being my version.  I love Linux, but man, they do break things way too much.  Sometimes just get tired of chasing all their bugs.