kripken / intensityengine

[Not active!] An open source platform for 3D games and virtual worlds
https://web.archive.org/web/20100222011320/http://www.syntensity.com/
Other
58 stars 15 forks source link

COMPILE.txt instructions regarding librt #10

Closed ghost closed 14 years ago

ghost commented 14 years ago

I was receiving the error: undefined reference to `shm_open'

This is because the linker wasn't including librt. The COMPILE.txt instructions state:

" edit cbuild/src/client/CMakeFiles/Intensity_CClient.dir/link.txt to add -lutil -lrt. See also more details in"

This file didn't exist and creating didn't help. I was able to successfully build after adding "rt" to CLIENT_LIBRARIES in src/client/CMakeLists.txt

I'm opening this ticket in case the COMPILE.txt instructions are wrong (although perhaps I just misunderstood).

On another note, I'm not sure why I get this linking error and nobody else does. Any insight? Is it that cmake normally links against librt automatically, but it's not doing so for my system?

kripken commented 14 years ago

Hmm, what OS are you on?

ghost commented 14 years ago

Ubuntu 8.04. 32bit version of Ubuntu on x86_64 processor.

Yes, I know, I'm quite out of date. Yes, I know, 64bit Ubuntu is nice and stable now ;). Everything works great on 8.04, I just haven't been bothered to upgrade yet.

Anyhow, this is probably a non-issue and I wouldn't want you to spend much time on it, I'm only worried that the compile instructions are wrong.

kripken commented 14 years ago

Well, no idea what the problem is, but I added a note on it to COMPILE.txt.