DSFLib and DSFTool for Linux (gcc)

DSFLib and DSFTool

DSFTool is the "official" tool for modifying X-Plane .DSF scenery files. DSFLib is a library used to for DSFTool. These tools are officially supported in binary form on Mac and Windows, but since they are open source, I built a version on Linux.

Download

DSFLib for gcc

Questions

If you try this and have a problem or question, please post on the x-plane scenery Yahoo group or email me at the address in the top-level README file.

Dump of README.TXT

I have successfully compiled DSFLib and DSFTool on Linux using gcc. This archive contains the modified source code and makefiles to build these tools with GNU tools. Ideally, you should just have to run "make" in the top-level directory, which will build DSFLib and DSFTool. If everything works, you should have the files "dsftool" and "libDSF.so" in this directory when you are done. To run dsftool, "libDSF.so" must be installed in your system library path, or present in the same directory as dsftool. I also included a small .DSF overlay I made for Orlando, Florida for testing the tools.

Oh, I should mention that, for now, DSFTool on Linux is command-line only!

I have tested DSFTool for converting .DSF files (including overlays) to and from text files. I did the testing on my system, which is: gcc-3.3.4, glibc-2.3.4.20040808-r1 System uname: 2.6.9-gentoo-r9 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16

I have not done any other testing and I make no guarantees or warranty of any kind. I would be interested in compiling with a newer version of gcc, which may be more strict about adhering to ISO C++.

There are many source files in the distribution which are not strictly necessary to compile DSFLib and DSFTool. I haven't taken the time to weed them out.

TO DO:

  • in many cases, I simply needed to add the line "using namespace std;" to get files to compile. It would probably be better to import only the required names from the namespace.
  • get GUI working
  • build on a newer version of gcc