Greetings, fellow Dwarfs!
I am trying to build DFHack on my linux machine to get Stonesense working, but i have run into problems with compiling the source, and can't understand what I did incorrectly.
Details:
What I did:
git clone git://github.com/peterix/dfhack.git dfhack
cd dfhack/build
cmake .. -DCMAKE_BUILD_TYPE:string=Release
make
Error I got:
/home/beatle/dfhack/library/DFProcess-linux.cpp: In member function ‘virtual void DFHack::NormalProcess::getMemRanges(std::vector<DFHack::t_memrange, std::allocator<DFHack::t_memrange> >&)’:
/home/beatle/dfhack/library/DFProcess-linux.cpp:187: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘uint32_t’
/home/beatle/dfhack/library/DFProcess-linux.cpp: In member function ‘virtual void DFHack::NormalProcess::writeWord(uint32_t, uint16_t)’:
/home/beatle/dfhack/library/DFProcess-linux.cpp:435: error: no matching function for call to ‘DFHack::NormalProcess::readDWord(uint32_t&)’
/home/beatle/dfhack/library/DFProcess-linux.cpp:386: note: candidates are: virtual void DFHack::NormalProcess::readDWord(uint32_t, uint32_t&)
/home/beatle/dfhack/library/DFProcess-linux.cpp: In member function ‘virtual void DFHack::NormalProcess::writeByte(uint32_t, uint8_t)’:
/home/beatle/dfhack/library/DFProcess-linux.cpp:450: error: no matching function for call to ‘DFHack::NormalProcess::readDWord(uint32_t&)’
/home/beatle/dfhack/library/DFProcess-linux.cpp:386: note: candidates are: virtual void DFHack::NormalProcess::readDWord(uint32_t, uint32_t&)
make[2]: *** [library/CMakeFiles/dfhack.dir/DFProcess-linux.cpp.o] Error 1
make[1]: *** [library/CMakeFiles/dfhack.dir/all] Error 2
make: *** [all] Error 2
My system:
Ubuntu 10.10, 32 bit.
I would greatly appreciate if someone could point me to the right direction, thanks!