PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: ennservogt on February 26, 2005, 05:38:26 pm

Title: Linux compilation problem with missing libpaws.a library
Post by: ennservogt on February 26, 2005, 05:38:26 pm
Hi,
I have used the following guide (http://platyna.xpam.de/planeshift/slack-built-howto.txt) to compile PS from CVS. I have done everything step by step, but I think I have made something wrong in step 5. I checked out the \"planeshift\" directory from CVS and then copied it\'s  content to the directory in which I  wanted to install the game. CEL and CS were allready present in my /usr/local/games/planeshift directory.

Well, the problem is, that the compilation process skips some important modules like the client executables with the notice \"...skipped psclient for lack of libpaws.a...\".

So is there anything I have forgotten or misunderstood, because actually there is a directory in the CVS tree above the \"planeshift\" directory called \"PAWS\". But I have no clue what to do with it.


thanks in advance
EnnserVogt
Title:
Post by: Androgos on February 26, 2005, 06:21:21 pm
PAWS (PlaneShift Window System) is in /cvsroot/planeshift/src/paws, NOT the module named PAWS (That\'s for external use in other projects)

The lack of libpaws.a is because it failed to compile it, check your messages of compilation errors
Title: logfiles...
Post by: ennservogt on February 26, 2005, 08:54:41 pm
I have examinded my logfiles and found the following problems:
Code: [Select]

C++ ./out/linuxx86/debug/src/common/paws/pawsobjectview.o

    g++ -c -o ./out/linuxx86/debug/src/common/paws/pawsobjectview.o     -DCS_DEBUG -g3 -I/usr/local/games/planeshift/CS/include      -I/usr/local/games/planeshift/cel/include -fexceptions  -I. -I./include -I./src/common -I./src/client -I./src/server src/common/paws/pawsobjectview.cpp

...failed C++ ./out/linuxx86/debug/src/common/paws/pawsobjectview.o ...
C++ ./out/linuxx86/debug/src/common/paws/pawspromptwindow.o
C++ ./out/linuxx86/debug/src/common/paws/pawsborder.o
...skipped libpaws.a for lack of libpaws.a(pawsobjectview.o)...
C++ ./out/linuxx86/debug/src/common/effects/pseffectobjsound.o

So pawsobjective.o can\'t be built and therefore libpaws also can\'t be compiled. The question is why...

Here is a detailed log of the error message dealing with the build process of pawsobjectview.o
Code: [Select]

src/common/paws/pawsmanager.cpp: In member function `int PAWSData::GetInt()\':
src/common/paws/pawsmanager.cpp:930: warning: converting to `int\' from `float\'
src/common/paws/pawsobjectview.cpp: In constructor `
   pawsObjectView::pawsObjectView(PawsManager*)\':
src/common/paws/pawsobjectview.cpp:40: warning: converting to `int\' from `float
   \'
src/common/paws/pawsobjectview.cpp: In member function `bool
   pawsObjectView::LoadMap(const char*, const char*)\':
src/common/paws/pawsobjectview.cpp:114: error: `SetAttenuation\' undeclared
   (first use this function)
src/common/paws/pawsobjectview.cpp:114: error: (Each undeclared identifier is
   reported only once for each function it appears in.)
src/common/paws/pawsobjectview.cpp: In member function `bool
   pawsObjectView::CreateMap()\':
src/common/paws/pawsobjectview.cpp:183: error: `SetAttenuation\' undeclared
   (first use this function)
src/common/paws/pawsobjectview.cpp: In member function `virtual bool
   pawsObjectView::OnMouseUp(int, int, int, int)\':
src/common/paws/pawsobjectview.cpp:430: warning: converting to `int\' from `
   float\'
src/common/paws/pawsobjectview.cpp: In member function `virtual bool
   pawsObjectView::OnMouseExit()\':
src/common/paws/pawsobjectview.cpp:441: warning: converting to `int\' from `
   float\'
src/common/net/netbase.h:174: warning: inline function `int
   NetBase::SendTo(sockaddr_in*, const void*, unsigned int)\' used but never
   defined
src/server/combatmanager.cpp: In member function `void
   psCombatManager::ApplyCombatEvent(psCombatGameEvent*, int)\':
src/server/combatmanager.cpp:537: warning: passing negative value `-1\' for
   converting 8 of `psCombatEventMessage::psCombatEventMessage(unsigned int,
   int, unsigned int, unsigned int, int, float, unsigned int, unsigned int)\'
src/server/combatmanager.cpp:556: warning: passing negative value `-1\' for
   converting 8 of `psCombatEventMessage::psCombatEventMessage(unsigned int,
   int, unsigned int, unsigned int, int, float, unsigned int, unsigned int)\'
src/server/combatmanager.cpp:575: warning: passing negative value `-1\' for
   converting 8 of `psCombatEventMessage::psCombatEventMessage(unsigned int,
   int, unsigned int, unsigned int, int, float, unsigned int, unsigned int)\'
src/server/combatmanager.cpp: In member function `void
   psCombatManager::HandleDeathEvent(MsgEntry*)\':
src/server/combatmanager.cpp:767: warning: passing negative value `-1\' for
   converting 7 of `psCombatEventMessage::psCombatEventMessage(unsigned int,
   int, unsigned int, unsigned int, int, float, unsigned int, unsigned int)\'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: `.L320\' referenced in section `.rodata\' of /usr/local/games/planeshift/CS/./out/linuxx86/debug/libs/csutil/libcsutil.a(plugldr.o): defined in discarded section `.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc\' of /usr/local/games/planeshift/CS/./out/linuxx86/debug/libs/csutil/libcsutil.a(plugldr.o)


An almost desperate linux user ;-)
EnnserVogt
Title:
Post by: Cheradenin on February 26, 2005, 10:49:12 pm
Hi,

I had the same problem....

Solution found here (http://www.planeshift3d.com/wbboard/thread.php?threadid=15064&boardid=33&styleid=3&sid=c9d3da8c824ef1015dd86f1eb97b601a&page=1#1) ...

Quote
In your file ../planeshift/src/common/paws/pawsobjectview.cpp file uncomment the following code line:

light->SetAttenuation( CS_ATTN_NONE );

You have to delete or uncomment this line two times. Then rebuild planeshift and report if you were successfull.


This solves the compile error, but it still gives out some warnings....

Greets
Cheradenin
Title: fixed in latest CVS
Post by: ennservogt on March 01, 2005, 09:21:57 am
This bug has been fixed by the developer ivern on Feb. 27.2005. The fixed pawsobjectview.cpp has the version number v1.21.

http://cvs.sourceforge.net/viewcvs.py/planeshift/planeshift/src/common/paws/pawsobjectview.cpp?rev=1.21&sortby=date&view=log


EnnserVogt
Title:
Post by: Platyna on March 03, 2005, 03:06:12 pm
When I had such error upgrading CS and CEL helped.

Regards.