Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 9 10 [11] 12 13 ... 53

Author Topic: Fortress Overseer 0.70.1 - !Open Source! 3D Visualizer - 31.25-34.11 Support  (Read 373626 times)

Ghostbird

  • Bay Watcher
    • View Profile

Linux version gives me trouble.
Code: [Select]
username@computername:~/Overseer$ ./Overseer
./Overseer: error while loading shared libraries: libosg.so.7: cannot open shared object file: No such file or directory
I already did this to fix a similar error for "libdfhack.so"
Code: [Select]
username@computername:~/Overseer$ export LD_LIBRARY_PATH=~/Overseer
username@computername:~/Overseer$ echo $LD_LIBRARY_PATH
/home/username/Overseer
but the libosg.so.7 file really isn't in the download.
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

Linux version gives me trouble.
Code: [Select]
username@computername:~/Overseer$ ./Overseer
./Overseer: error while loading shared libraries: libosg.so.7: cannot open shared object file: No such file or directory
I already did this to fix a similar error for "libdfhack.so"
Code: [Select]
username@computername:~/Overseer$ export LD_LIBRARY_PATH=~/Overseer
username@computername:~/Overseer$ echo $LD_LIBRARY_PATH
/home/username/Overseer
but the libosg.so.7 file really isn't in the download.

You can get around that by installing openscenegraph -- or libopenscenegraph depending on your distro.

You could also just tack a .7 onto the libosg* so files. I'll put up a new tarball with the renamed so's up, thanks.
Logged

Ghostbird

  • Bay Watcher
    • View Profile

Those options where my best guesses as well, they didn't solve the problem though.
Though as you said they really should have solved them. I downloaded both the source and the binaries of openscenegraph and muddled trough those files. That made me realise that the libosg.so normally is only a symlink to the up-to-date library, so I tried to set it up like that, by renaming the libosg.so to libosg.so.7 and making a symlink named libosg.so to it. Alas to no avail. I get the feeling that I just forgot something there. I'll retry it.

BTW Why don't you use a more recent version of OSG?


EDIT: AH, I had been stupid, I did rename libosg.so to libosg.so.7 and then it asked for the next library, but I read it wrong, and thought it still asked for libosg.so.7
I took a few minutes to learn how Perl Regex works, since the Ubuntu rename command uses it. The result was this line:


Code: [Select]
rename -v 's/libosg(.*)\.so/libosg$1\.so\.7/' *.soNOTE: It has to be run in the Overseer main directory.
NOTE: For single file renames in Ubuntu use "mv <oldfilename> <newfilename>"
NOTE: The "-v" in the command makes it ouput all the changes, so you can immediately check whether it ran correctly.

It renames all the libosg*.so files to libosg*.so.7 files.

Now however it asks for: libOpenThreads.so.7 and there is no libOpenThreads.so file. I'll try to find out how to fix this, and I'll post it when I've found it.

EDIT:
I managed to get Overseer started (kinda).
The solution to the above problem was: install libOpenThreads package and copy the libOpenThreads.so that it installs to the Overseer main directory and rename it to libOpenThreads.so.7
Code: [Select]
sudo apt-get install libopenthreads
sudo cp /usr/lib/libOpenThreads.so ~/Overseer/libOpenThreads.so.7


EDIT:

Thewonderidiot fixed the tarball, so this problem is fixed.
« Last Edit: October 19, 2010, 11:09:19 am by Ghostbird »
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

I don't use a more recent version because that's what's in the package manager and I don't have the time to build it from source.

Also, the libOpenThreads thing is my bad, didn't notice that was needed. http://filevo.com/nh4xhqr555p6.html is the library by itself. I'll put up another tarball that includes it -_-;

Thanks for bearing with me on this.

EDIT: Nevermind. <_< New tarball is up.
« Last Edit: October 18, 2010, 01:26:15 pm by thewonderidiot »
Logged

Ghostbird

  • Bay Watcher
    • View Profile

Ah, you posted while I was editing, I'll just post this here again in case people get confused with the chronology.

I managed to get Overseer started (kinda).
The solution to the above problem was: install libOpenThreads package and copy the libOpenThreads.so that it installs to the Overseer main directory and rename it to libOpenThreads.so.7

Code: [Select]
sudo apt-get install libopenthreads
sudo cp /usr/lib/libOpenThreads.so ~/Overseer/libOpenThreads.so.7

Well, the above is kinda moot since thewonderidiot fixed the tarball.

Then I could get Overseer started by running ~/Overseer/Overseer but it always tells me that DF isn't running.
I'll try to find out how to fix that now.

EDIT: NOTE: I still had to run "export LD_LIBRARY_PATH=~/Overseer" before I could get Overseer running, which is normal AFAIK.
« Last Edit: October 19, 2010, 11:06:32 am by Ghostbird »
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

What version of DF are you using?
Logged

Ghostbird

  • Bay Watcher
    • View Profile

I'm using DF 0.31.14 I used the commands you put on the linux download page for Overseer. I noticed the first command wasn't working properly, so I also tried it with "=0" behind it. Which didn't work either. Since you said that I shouldn't bother with it if it didn't work, I tried the second command which did work.

EDIT: Also, I don't know what Linux distro you use, but I tried to build OSG from source and I found that it requires two packages "xulrunner-xpcom" and "xulrunner-js" which aren't available for Ubuntu 10.10 (Maverick) and thus I failed to build it. I couldn't find the packages by googling them either, but I'm a noob at finding packages through other means than aptitude search.

EDIT2: I thought it might be handy for you to have the actual error message:
Code: [Select]
error 2: Failed to open file, at row 0 col 0
DF is not running!

EDIT3: For those people wondering why you have to run the weird command in Ubuntu, I found this thread which explains it more in depth.http://www.bay12forums.com/smf/index.php?topic=65326.0
« Last Edit: October 18, 2010, 02:38:00 pm by Ghostbird »
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

The row 0, col 0 thing means it can't find Memory.xml. Make sure Memory.xml is in your working directory.
Logged

Ghostbird

  • Bay Watcher
    • View Profile

Oh thanks! That did the trick, I was running it like:
Code: [Select]
Overseer/OverseerNow I run it like:
Code: [Select]
cd Overseer
./Overseer
It works when I run it from the correct working directory.

Now I'm stuck at the Memory Acces Denied error. It occurs even though I did:
Code: [Select]
# sudo sysctl -w kernel.yama.ptrace_scope=0before I started DF.
Code: [Select]
username@computernam:~/Overseer$ ./Overseer
pread failed: can't read 0x30 bytes at address 0xa5b2eb40
errno: 16
terminate called after throwing an instance of 'DFHack::Error::MemoryAccessDenied'
  what():  SHM ACCESS DENIED
Aborted
Do you have any idea what may be the cause?

Found it, it was ASLR:
Code: [Select]
sysctl -w kernel.randomize_va_space=0fixed it. You did post this line of code on the linux download page, but somehow the last 4 characters were missing there.

Next I get this error :D
Code: [Select]
gijsbert@LGTH:~/Overseer$ ./Overseer
Connected to Dwarf Fortress!
Error: Unable to open display ":0.0".
Segmentation fault
« Last Edit: October 19, 2010, 03:50:28 am by Ghostbird »
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

but somehow the last 4 characters were missing there.

Wow, must have accidentally deleted that, sorry, it's fixed now. So now it's not finding your X server? Not sure what to say about that... try navigating there in a file browser and clicking it? That'll ensure it gets executed in the right session...
Logged

Ghostbird

  • Bay Watcher
    • View Profile

It seems it was just my x-server doing things weird. It isn't as stable on Maverick as it was on Lucid. Now it works fine. Alas my fix for the open threads library came back to bite me. It's newer than the version Overseer uses, and gives an error while drawing Z-level 140. I'll fix this by downloading the fixed tarball, but the DFFD server nerfs me at the moment. It doesn't respond and times out. First I thought that it was a problem on my side, but as I couldn't find anything I guess it was just the server after all.

EDIT:
Code: [Select]
1 0.000000 192.168.2.11 75.119.217.238 TCP 46173 > http [SYN] Seq=0 Win=5840 Len=0 MSS=1460 TSV=4304493 TSER=0 WS=6
My machine is happily sending out it's TCP [SYN] but the server doesn't answer. I'll just have to wait for it to get back online I guess.
« Last Edit: October 19, 2010, 09:58:23 am by Ghostbird »
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

Check a few posts back, I posted the libOpenThreads.so on filevo for you.
Logged

Ghostbird

  • Bay Watcher
    • View Profile

Oh thanks, I hadn't seen that, I thought you had included it in the tarball.
« Last Edit: October 19, 2010, 11:05:14 am by Ghostbird »
Logged

thewonderidiot

  • Bay Watcher
    • View Profile

Oh thanks, I hadn't seen that, I thought you had included it in the tarball.
I did both  ;D
Logged

Ghostbird

  • Bay Watcher
    • View Profile

Apparently I did something stupid again: I assumed that the error related to libOpenThreads.so since that was a newer file than the one in the normal Overseer. But apparently it wasn't the cause of the problem, the error persists:
Code: [Select]
Drawing z-level 140
Error reading file: DataInputStream::DataInputStream(): The version found in the file is newer than this library can handle.
Overseer/DFO: line 3:  7549 Segmentation fault      ./Overseer
« Last Edit: October 19, 2010, 11:07:13 am by Ghostbird »
Logged
Pages: 1 ... 9 10 [11] 12 13 ... 53