Author Topic: Stupid error while compiling  (Read 2693 times)

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Stupid error while compiling
« on: July 05, 2009, 08:39:09 pm »
It's not even a planeshift error, but I don't think I could get help enywhere else. So, I'm compiling Planeshift according to the PS Compiling Guide. The first one to compile is the cal3d. autoreconf goes well, as well as the ./configure. But make spits out  a stupid error:
 hardwaremodel.cpp: In member function ‘int CalHardwareModel::addVertex(CalHardwareModel::CalHardwareMesh&, int, CalCoreSubmesh*, int)’:
hardwaremodel.cpp:754: error: ‘memcpy’ was not declared in this scope
hardwaremodel.cpp:765: error: ‘memset’ was not declared in this scope
hardwaremodel.cpp:776: error: ‘memset’ was not declared in this scope
hardwaremodel.cpp:793: error: ‘memset’ was not declared in this scope
make[3]: *** [hardwaremodel.lo] Error 1
make[3]: Leaving directory `/home/liudvikas/development/cal3d/src/cal3d'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/liudvikas/development/cal3d/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/liudvikas/development/cal3d'
make: *** [all] Error 2

Any ideas why this is happening and how to avoid it?

TheRingmaster

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
Re: Stupid error while compiling
« Reply #1 on: July 05, 2009, 09:16:20 pm »
This guide is from the Peragro Tempus wiki, but since the game is founded on the same technologies as PlaneShift, It should answer your questions.

http://wiki.peragro.org/index.php/Generic_linux

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #2 on: July 06, 2009, 12:08:33 am »
Really thanks, guide you gave me got me through that problem. Yet another one came up - planeshift version I downloaded requires crystalspace 1.4 or higher, yet mine is 1.2. Seems like a very stupid thing too, but still. Any help?

Nykolai Raskaniov

  • Hydlaa Resident
  • *
  • Posts: 191
    • View Profile
Re: Stupid error while compiling
« Reply #3 on: July 06, 2009, 12:44:45 am »
Are you sure you're following the compiling guide to the letter?

http://planeshift.svn.sourceforge.net/viewvc/planeshift/trunk/docs/compiling.html

It says in there how to download the correct CS version and export variables.
"Skiing combines outdoor fun with knocking down trees with your face."

TheRingmaster

  • Wayfarer
  • *
  • Posts: 7
    • View Profile
Re: Stupid error while compiling
« Reply #4 on: July 06, 2009, 04:04:25 am »
Really thanks, guide you gave me got me through that problem. Yet another one came up - planeshift version I downloaded requires crystalspace 1.4 or higher, yet mine is 1.2. Seems like a very stupid thing too, but still. Any help?


the guide for planeshift gives this svn address
Quote
svn co -r 32140 https://crystal.svn.sourceforge.net/svnroot/crystal/CS/branches/release/V1.4 cs

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #5 on: July 06, 2009, 10:16:06 am »
Well, eventually I figured that out myself. But I can assure you that in the guide I was following (http://planeshift.cvs.sourceforge.net/*checkout*/planeshift/planeshift/docs/compiling.html), it was clearly written:
svn co -r 27904 https://crystal.svn.sourceforge.net/svnroot/crystal/CS/branches/release/V1.2 cs
I removed all -r's and changed both cs and cel versions to 1.4, then downloaded the source again. I'm compiling cs right now, so far everything is good. But still, the guide was wrong. Someone should fix it.

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #6 on: July 06, 2009, 10:20:05 am »
Are you sure you're following the compiling guide to the letter?

http://planeshift.svn.sourceforge.net/viewvc/planeshift/trunk/docs/compiling.html

It says in there how to download the correct CS version and export variables.
It seems I've been following the wrong guide :). Then what the heck is that guide I was using? (link in post above). As I remember, planeshift.it directed me into it. What a shame.

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Segfault?
« Reply #7 on: July 06, 2009, 11:18:47 am »
Great! PS has actually started. Yet, another problem :(. About in the middle of game area loading (just after logging in and choosing the character) it crashes with a segfault. ****! What can I do now?
« Last Edit: July 06, 2009, 01:09:08 pm by Mordraugion »

Mordraugion

  • Hydlaa Notable
  • *
  • Posts: 816
  • Ex Dev and GM
    • View Profile
Re: Stupid error while compiling
« Reply #8 on: July 06, 2009, 01:08:23 pm »
Well, eventually I figured that out myself. But I can assure you that in the guide I was following (http://planeshift.cvs.sourceforge.net/*checkout*/planeshift/planeshift/docs/compiling.html), it was clearly written:

Someone should fix it.
We havent used cvs for quite some time now and that guide is nolonger updated and please watch your language
No longer a member of the PlanShift Development Team
Hokinon or Hoki on IRC

PS is not a democracy, nor will it ever be -- Karyuu 2006
http://www.hydlaaplaza.com/smf/index.php?topic=21049.msg230947#msg230947

Sen

  • Hydlaa Notable
  • *
  • Posts: 746
    • View Profile
Re: Stupid error while compiling
« Reply #9 on: July 06, 2009, 01:36:18 pm »
Hi,

if I understand right it happens after you click the join button. In this case please check in the setup if you have vertex buffer object turned to off.

Sen
.....also a saddle that won't pinch the tail. One day!

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #10 on: July 06, 2009, 01:40:39 pm »
Alright, I'm sorry. Won't swear no more.

What should I use then? Linux binary won't even show a game window: it crashes with a segfault immediately. Seems like I'm stuck.
I didn't probably provide you with all the information: Arch Linux, kernel 2.6.30, Radeon X1200 (integrated), AMD Athlon Dual Core 4450B, 2GB RAM.

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #11 on: July 06, 2009, 01:42:54 pm »
Hi,

if I understand right it happens after you click the join button. In this case please check in the setup if you have vertex buffer object turned to off.

Sen

Hi and thanks for your advice, but I don't know how to do this since planeshift-setup isn't compiled. Is it possible to do this by editing a file or something, since I cannot use planeshift-setup?

Sen

  • Hydlaa Notable
  • *
  • Posts: 746
    • View Profile
Re: Stupid error while compiling
« Reply #12 on: July 06, 2009, 03:08:21 pm »
Yes, Im just not sure in which file (And I don't have a client right here) - maybe someone else knows for sure.
It should be an entry in either <ps/installation/dir>/psclient.cfg or in ~/PlaneShift/planeshift.cfg
Maybe you see it in one of these files before I get to my client :) (Btw, I think the settings in ~/PlaneShift override the settings in the installation directory.

Sen
.....also a saddle that won't pinch the tail. One day!

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Stupid error while compiling
« Reply #13 on: July 06, 2009, 04:46:30 pm »
i see you have an updated kernel so probably even using opensource drivers: planeshift doesn't always work correctly with such drivers because they are missing relevant needed features. In any case i'd suggest running it with gdb it will probably point you to the x.org drivers or some opengl function. Also try walktest before planeshift if one doesn't run the other won't either

Akeliukas

  • Traveller
  • *
  • Posts: 17
    • View Profile
Re: Stupid error while compiling
« Reply #14 on: July 06, 2009, 09:44:15 pm »
Well this'll have to wait since another problem came up. ./pslaunch displays a black window, named Crystal Space Application, and everything that is in there are white letters in the upper left corner :
Server status
All servers are up!
And that's all. Previously it also showed something like "updates available" and it seems that I clicked yes (it still was a simple black screen without anything on it), because I saw in console that updating began. Any ideas?

Edited

Alrgiht, got it fixed. Let's head back to the older problem - the segfault :). Now PS crashes just after I press PLAY button or just after I ./psclient instead of ./pslaunch. Seems that ./psclient directly launches the game, but that doesn't matter since the game won't work anyway. psclient also shows some interesting error messages:

DEBUG: Initializing OpenAL sound system
DEBUG: Retrieving available devices.
DEBUG: Default OpenAL device: '((sampling-rate 44100) (device '(native))
DEBUG: No device specified
DEBUG: Falling back on default device
DEBUG: Can't retrieve attributes size: OpenAL error ALC_INVALID_DEVICE
Segmentation fault


real classy, isn't it?
Seems that the sound is srewing the whole thing, not the video. Anyway, how to fix it?
« Last Edit: July 06, 2009, 10:11:11 pm by Akeliukas »