Author Topic: CVS - wont compile pawsobjectview.cpp  (Read 662 times)

Cheradenin

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
CVS - wont compile pawsobjectview.cpp
« on: February 26, 2005, 05:48:08 pm »
Hi Everyone,

While following this here I bumped into the folling error
Code: [Select]
veldrin@Kor planeshift $ jam
...patience...
...found 1644 target(s)...
...using 31 temp target(s)...
...updating 7 target(s)...
C++ ./out/linuxx86/debug/src/common/paws/pawsobjectview.o
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: \'struct iLight\' has no member named \'SetAttenuation\'
src/common/paws/pawsobjectview.cpp: In member function `bool pawsObjectView::CreateMap()\':
src/common/paws/pawsobjectview.cpp:183: error: \'struct iLight\' has no member named \'SetAttenuation\'
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\'

    g++ -c -o ./out/linuxx86/debug/src/common/paws/pawsobjectview.o     -DCS_DEBUG -g3 -I/home/veldrin/development/CS/include      -I/home/veldrin/development/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 ...
...skipped libpaws.a for lack of libpaws.a(pawsobjectview.o)...
...skipped psclient for lack of libpaws.a...
...skipped pssetup for lack of libpaws.a...
...skipped updater for lack of libpaws.a...
...skipped paws_generic for lack of libpaws.a...
...skipped eedit for lack of libpaws.a...
...failed updating 1 target(s)...
...skipped 6 target(s)...


I switched the gcc to 3.3.4, to see, if I makes any diffenrence... none so far... I hope there is a solution to my problem... otherwise I\'ll try the CVS version of tomorrow....

TiA
Greets
Cheradenin

ennservogt

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
same here...
« Reply #1 on: February 26, 2005, 09:00:21 pm »

ennservogt

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
maybe I have found a solution...
« Reply #2 on: February 26, 2005, 10:40:43 pm »
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.

Cheradenin

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
(No subject)
« Reply #3 on: February 26, 2005, 10:50:37 pm »
@ennservogt:

Yep, that solved the compile error...

currently compiling .... hope it works

Greets
Cheradenin

ennservogt

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
other problems...
« Reply #4 on: February 26, 2005, 11:13:32 pm »
please post if everything works fine for you. I now suffer from two very wierd bugs. At first I can\'t slect anything and second is, that my info window doesn\'t work anymore.

ennservogt

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
fixed in latest CVS
« Reply #5 on: March 01, 2005, 09:23:39 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