Author Topic: CS compile error?? End without sprcal3d.so  (Read 1044 times)

Gauss_Cleric

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
CS compile error?? End without sprcal3d.so
« on: February 12, 2005, 09:18:50 pm »
Hi there, this is a copy of a post in the \"Linux: Couldn\'t find mesh error\" thread in the Technical forum. I\'ll posting here since I think is the best place. Here it goes:

--------------
Hi there, this is my first post in this forum, so I\'ll tell the whole story.

I have a gentoo box and after downloading the linux client wich worked alright but witch suffered from the known updater problem (for some reason the updater doesn\'t work as it should and you end up with a different version of planeshift than the server), I tried the gentoo guide in

http://laanx.fragnetics.com/gentoo.php

to build from the source.

Well, when I\'m building the CS (the 3D engine) I get this error when compiling sprcal3d:


C++ ./out/linuxx86/debug/plugins/mesh/sprcal3d/object/sprcal3d.o
plugins/mesh/sprcal3d/object/sprcal3d.cpp: In member function `bool
   csSpriteCal3DMeshObjectFactory::LoadCoreSkeleton(iVFS*, const char*)\':
plugins/mesh/sprcal3d/object/sprcal3d.cpp:297: error: cannot convert `
   CalCoreSkeletonPtr\' to `CalCoreSkeleton*\' in initialization
plugins/mesh/sprcal3d/object/sprcal3d.cpp: In member function `int
   csSpriteCal3DMeshObjectFactory::LoadCoreAnimation(iVFS*, const char*, const
   char*, int, float, float, float, int, int, int, bool)\':
plugins/mesh/sprcal3d/object/sprcal3d.cpp:324: error: cannot convert `
   CalCoreAnimationPtr\' to `CalCoreAnimation*\' in initialization
plugins/mesh/sprcal3d/object/sprcal3d.cpp: In member function `int
   csSpriteCal3DMeshObjectFactory::LoadCoreMesh(iVFS*, const char*, const
   char*, bool, iMaterialWrapper*)\':
plugins/mesh/sprcal3d/object/sprcal3d.cpp:365: error: cannot convert `
   CalCoreMeshPtr\' to `CalCoreMesh*\' in initialization
plugins/mesh/sprcal3d/object/sprcal3d.cpp: In member function `int
   csSpriteCal3DMeshObjectFactory::LoadCoreMorphTarget(iVFS*, int, const char*,
   const char*)\':
plugins/mesh/sprcal3d/object/sprcal3d.cpp:404: error: cannot convert `
   CalCoreMeshPtr\' to `CalCoreMesh*\' in initialization

    g++ -c -o ./out/linuxx86/debug/plugins/mesh/sprcal3d/object/sprcal3d.o -I. -I./include -I./include -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -g3 -DCS_DEBUG -fPIC -I/usr/local/games/planeshift/cal3d/src/cal3d/.libs/  plugins/mesh/sprcal3d/object/sprcal3d.cpp

...failed C++ ./out/linuxx86/debug/plugins/mesh/sprcal3d/object/sprcal3d.o ...
...skipped sprcal3d.so for lack of sprcal3d.o...
Copy sprcal3d.csplugin


As you can see in the first lines, It appears there a real bug in the source. In continues to do the make but you\'ll end without sprcal3d.so wich ultimately results in the \"failed to load crystal.pluging.mesh.loader\" log error when you run psclient.

I would like sugestions as to what to do next. I really want to play this game (it\'s promising).

Are there release dates for a corrected updater so I don\'t need to build everything from CVS source?

I\'ll copy this post in a new topic since this error generates the \"Couldn\'t find mesh error\" but really belongs somewhere else.

Cheers, and sorry for the long post.
------------

Although it appears to be a CS (Crystal Space) bug and therefore not a CB (Planeshift) bug I think this is the best since it explains some error encountered in the CB.

BTW, when compiling from CVS is it really needed to do it with the --enable-debug flags wich generates slower code?

Cheers,

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #1 on: February 12, 2005, 09:27:49 pm »
Did you compile in linux or windows (with mingw)?  What is your version of gcc?
You can try an older snapshot of CS, if it\'s not because of your compiler. Get it with \'co -D 2005-02-10 CS\' for example.
The --enable-debug is not a must. You can use it or not, depending if you want to debug it when PS crashes. But I think it\'s enough to build PS in debug and the rest in optimize.


Back to Planeshift again \\o/

Gauss_Cleric

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #2 on: February 12, 2005, 09:39:27 pm »
I compiled in my gentoo linux box using gcc 3.3.5. I try that of using an older snapshot. Sinice the bug appeared only in CS, I\'ll only do that in CS.

I\'ll let you know if it worked.

BTW, what is that mingw you\'re talking about? Never heard that before.

Cheers,

Gauss_Cleric

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #3 on: February 12, 2005, 10:10:06 pm »
Noups, same error when compiled with an older CVS snapshot of CS.

Maybe realy something with my compiler. Any sugestions as what to try next? A could use gcc-config ans select an hardened profile of gcc.

Sugestions?

Cheers,

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #4 on: February 12, 2005, 11:58:17 pm »
It\'s more likely it\'s a problem with cal3d, I\'d say. Try getting older cal3d. Dodgy.
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

Gauss_Cleric

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #5 on: February 13, 2005, 07:50:52 pm »
Noups, again no luck. Still the same errow after compiling cal3d from a 2005-02-10 dated CVS source. Maybe there something with my compiler but it strange since it works with everything else I compile.

Since the new Linux installer is out I\'ll give that a try.

Cheers,

Gauss_Cleric

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
(No subject)
« Reply #6 on: February 14, 2005, 05:31:10 am »
The new Linux installer works like a charm. No point in compiling from CVS now. Thanks Karosh.

Cheers,