v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing User:Khearn/DfhackLinuxBuild

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 4: Line 4:
  
 
This page describes (or attempts to) how to build dfhack from sources on a linux system. I have a Unbuntu 14.04 64-bit system, and this was written while 40.10 was the current DF version. If your linux system is different or you are building for a different DF version, you may find that not everything works exactly as I describe, but hopefully this will at least provide some help.
 
This page describes (or attempts to) how to build dfhack from sources on a linux system. I have a Unbuntu 14.04 64-bit system, and this was written while 40.10 was the current DF version. If your linux system is different or you are building for a different DF version, you may find that not everything works exactly as I describe, but hopefully this will at least provide some help.
 
In addition to this page, take a look at the Compile.html file in the top directory of the dfhack sources. That's what I started with to figure out how to build. But you first have to get to it before you can read it.
 
 
=== Getting the sources ===
 
 
The sources are on github.com, and you'll need to set up a github account to get them. So go to github.com and there will be something to tell you how to set up an account.
 
 
The sources I used are Quietust's "develop" branch. It can be found at https://github.com/quietust/dfhack/tree/develop. The command to get that branch is:
 
 
git clone -b develop https://github.com/quietust/dfhack.git
 
 
That will copy the main part of the code down to your system, but there are some submodules that need to be downloaded as well.
 
 
cd dfhack
 
git submodule init
 
git submodule update
 
  
 
=== Installing Libraries & other Packages ===
 
=== Installing Libraries & other Packages ===
Line 53: Line 37:
  
 
If you discover others that I didn't list here, let me know and I'll add them.
 
If you discover others that I didn't list here, let me know and I'll add them.
 +
 +
=== Getting the sources ===
 +
 +
The sources are on github.com, and you'll need to set up a github account to get them. So go to github.com and there will be something to tell you how to set up an account.
 +
 +
The sources I used are Quietust's "develop" branch. It can be found at https://github.com/quietust/dfhack/tree/develop. The command to get that branch is:
 +
 +
git clone -b develop https://github.com/quietust/dfhack.git
 +
 +
That will copy the main part of the code down to your system, but there are some submodules that need to be downloaded as well.
 +
 +
cd dfhack
 +
git submodule init
 +
git submodule update
  
 
=== Building dfhack ===
 
=== Building dfhack ===
Line 70: Line 68:
  
 
This will be the acid test to see if you have all the libraries you need. If you've got everything, it should build and install and you'll find a dfhack executable in your DF directory. If there are errors, it's likely to be because you need some packages.
 
This will be the acid test to see if you have all the libraries you need. If you've got everything, it should build and install and you'll find a dfhack executable in your DF directory. If there are errors, it's likely to be because you need some packages.
 
One problem I ran into while figuring out what packages I needed was that cmake didn't always notice that I'd installed the new stuff. So you may need to re-run the cmake command above. If all else fails, simply blow away your dfhack directory and start over with the 'git clone' command and see if things work better with a fresh start.
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)