Bay 12 Games Forum

Please login or register.

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

Author Topic: DFHack 0.43.03-r1  (Read 704851 times)

esarbe

  • Escaped Lunatic
    • View Profile
Building for Fedora 20, c'td.
« Reply #150 on: July 03, 2014, 06:44:13 am »

Hi everyone,

thanks for the help so far!

(just in case anyone is having the same problems:
Code: [Select]
CMake Error at depends/protobuf/CMakeLists.txt:60 (MESSAGE):
   Could not find a working hash map implementation.  Please install GCC >=
   4.4, and all necessary 32-bit C++ development libraries.
)

i was able to build the dfhack 0.34.11 r5 on Fedora 20 (Heisenbug). I was indeed lacking the appropriate i686 packages, which in the case of Fedora are glibc-devel.i686 and libstdc++-devel.i686. I also added the -m32 flag to the C and CXX compilers.

However; for the project build to actually complete I had to manually add the /usr/lib/pthread.so library during the linking stage for protoc-bin and dfhack-run.

In the case of protoc-bin I edited the generated file 'build/depends/protobuf/CMakeFiles/protoc-bin.dir/link.txt'


Code: [Select]
/usr/bin/c++   -m32 -fvisibility=hidden -m32 -march=i686 -mtune=generic -std=c++0x -O3 -DNDEBUG  \
  CMakeFiles/protoc-bin.dir/google/protobuf/compiler/main.cc.o  -o protoc -rdynamic libprotoc.so  /usr/lib/libpthread.so \
  libprotobuf.so -lz -Wl,-rpath,/home/bra/source/dfhack/build/depends/protobuf

I guess this is something that could be fixed during build configurations. I don't have any experience with cmake, so I'm open to any suggestions on how to fix this.

Cheers,
esarbe


Logged

ExpHP

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #151 on: July 03, 2014, 12:54:54 pm »

A couple of tips for those still on the previous LTS release of Ubuntu (12.04 Precise), which was only superseded very recently, and will continue to receive support for a couple more years:

Even the alternate version included here is still too "bleeding-edge" compared to the versions of g++ available on the Precise repositories, so you'll need to build it.  Here's a complete list of commands to run, starting from a fresh 32-bit Ubuntu 12.04: (64-bit users, read below)
Spoiler (click to show/hide)

64-bit users will need to get multiarch or i386 versions of most of the packages.  I personally find it to be a lot of trouble seeking out all the appropriate 32-bit dev packages sometimes, so I will describe how you can get around this entirely by using lxc to create a virtual 32-bit build environment.
Spoiler (click to show/hide)

You may still need a couple of 32-bit packages to run DFhack outside the virtual box, but not nearly as many as you would need to build it.
« Last Edit: July 04, 2014, 10:26:10 am by ExpHP »
Logged

SanderMarechal

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #152 on: July 03, 2014, 06:22:04 pm »

Hi. I can't get dfhack to work. I am on a fresh install of Debian "Jessie" testing, the upcoming Debian release. My Linux is 64bit but I installed all the libraries I need (I think) in 32bit. Vanilla DF works fine. But when I try to start dfhack I get:

sander@porky:/opt/df_linux$ ./dfhack
./libs/Dwarf_Fortress: /opt/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /opt/df_linux/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /opt/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /opt/df_linux/libs/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /opt/df_linux/libs/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./hack/libdfhack.so)
./libs/Dwarf_Fortress: /opt/df_linux/libs/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./hack/libprotobuf-lite.so)
-e


Any help? I have libstdc++6 installed in both 32bit and 64bit versions so I'm not sure what the problem is. Is this a problem with the libstdc++.so.6 file shipped by DF?

EDIT: I think I worked around it for now, but I haven't properly tested yet. dfhack starts, but I haven't run any game yet. What I did was move the provided libs/libstdc++.so.6 out of the way and replace it with a symlink to /usr/lib/gcc/i586-linux-gnu/4.9/libstdc++.so
« Last Edit: July 03, 2014, 06:27:02 pm by SanderMarechal »
Logged

Nopenope

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #153 on: July 03, 2014, 06:34:05 pm »

Taken from here

A workaround appears to be overwriting /opt/df_linux/libs/libstdc++.so.6 with the one from lib32-gcc-libs
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #154 on: July 03, 2014, 08:38:16 pm »

EDIT: I think I worked around it for now, but I haven't properly tested yet. dfhack starts, but I haven't run any game yet. What I did was move the provided libs/libstdc++.so.6 out of the way and replace it with a symlink to /usr/lib/gcc/i586-linux-gnu/4.9/libstdc++.so
That should work - you might not even need the symlink, if the library is in the correct location.
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

ExpHP

  • Escaped Lunatic
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #155 on: July 04, 2014, 10:14:38 am »

That should work - you might not even need the symlink, if the library is in the correct location.
Indeed.  In my case (Ubuntu 12.04 x86_64), simply deleting the offending library in the DF folder enabled it to locate the correct library on my system.  (although it would be useful to know if there are distributions on which it won't work without adding a symlink)
« Last Edit: July 04, 2014, 10:16:29 am by ExpHP »
Logged

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #156 on: July 04, 2014, 08:50:01 pm »

I used dfhack gui/gm-editor to remove a ghost [that wasn't engraveable]

first I set his dead flag to true
then I set his ghostly flag to false

solve my issue,

just sharing.
« Last Edit: July 04, 2014, 08:51:50 pm by thistleknot »
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #157 on: July 04, 2014, 09:05:33 pm »

Why not "tweak clear-ghostly"? (Edit: It appears to do the same thing, but I consider it more convenient.)
« Last Edit: July 04, 2014, 09:09:11 pm by lethosor »
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

thistleknot

  • Bay Watcher
  • Escaped Normalized Spreadsheet Berserker
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #158 on: July 04, 2014, 09:10:04 pm »

oh... I didn't know that existed.  I was looking through my text dump of the ls list of dfhack for anything with the word "ghost"

lethosor

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #159 on: July 04, 2014, 09:12:22 pm »

That's because "tweak" accepts subcommands, which aren't visible with "ls". They are listed in the Readme (also available at hack/Readme.html, if you want to read it offline).
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Dirst

  • Bay Watcher
  • On hiatus
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #160 on: July 05, 2014, 12:37:18 am »

Not sure this is exactly the right place to ask this question, but I can't get syndromeTrigger to work.  I have a set of minerals that are supposed to trigger a script when mined, but the script is never getting called (I put an unconditional print in there to make sure).  The script runs from the DFHack prompt, but repeated applications of the boil-away stone don't work.  Once I found out that syndromeTrigger can be enabled or disabled, I re-genned a world with syndromeTrigger enabled, but got the same (non)results.


The script is a stripped-down version of spawn-unit.lua with an added bit to make an announcement.

I'm probably making a rookie mistake with the syndromeTrigger, but I just can't find it.  Any and all help would be greatly appreciated!
Logged
On hiatus. Feel free to adopt or update:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

expwnent

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #161 on: July 05, 2014, 02:42:32 am »

The most common mistake with syndromeTrigger is that you have to explicitly enable it in dfhack.init or manually with

Code: [Select]
enable syndromeTrigger
Just glancing at your inorganic, it looks fine to me but I haven't tested it personally. If you still have problems after the above I'll look into it in more detail.

PS: Just so you know, in the next release you'll need to switch over to the new system, which will require this line in onLoad.init:

Code: [Select]
syndrome-trigger -syndrome "wake gabbro" -command [ tesb-spawn GABBRO \\LOCATION \\UNIT_ID ]
Logged

Merkator

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #163 on: July 05, 2014, 07:07:51 am »

Posting to follow.

You know, you have option notify.
I'm saying just in case.
If mods will be removing upper post. Please remove this one two.
Logged

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: DFHack 0.34.11 r5
« Reply #164 on: July 05, 2014, 07:12:30 am »

Posting to follow.
You know, you have option notify.
I'm saying just in case.
If mods will be removing upper post. Please remove this one two.
The two are not the same, if you select notify you get email spam, if you ptw you get unread notification.
Pages: 1 ... 9 10 [11] 12 13 ... 361