Greetings everyone,
I was wondering if someone has any idea about why Stonesense r950 wouldn't compile under Linux for me. Doing make fails spectacularly here:
[ 10%] Building CXX object CMakeFiles/stonesense.dir/MapLoading.cpp.o
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:215: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:215: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:215: error: template argument 1 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:215: error: template argument 3 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:215: error: template argument 4 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp: In function ‘void ReadCellToSegment(DFHack::Context&, WorldSegment&, int, int, int, uint32_t, uint32_t, uint32_t, uint32_t, uint16_t, std::vector<DFHack::t_building, std::allocator<DFHack::t_building> >*, std::vector<DFHack::t_construction, std::allocator<DFHack::t_construction> >*, std::vector<std::vector<short unsigned int, std::allocator<short unsigned int> >, std::allocator<std::vector<short unsigned int, std::allocator<short unsigned int> > > >*, std::vector<DFHack::t_feature, std::allocator<DFHack::t_feature> >*, int*, DFHack::Maps*)’:
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:496: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:496: error: expected ‘;’ before ‘pc’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:497: error: ‘pc’ was not declared in this scope
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:499: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:499: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:499: error: template argument 1 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:499: error: template argument 3 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:499: error: template argument 4 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:499: error: expected initializer before ‘it’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:500: error: ‘it’ was not declared in this scope
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:500: error: request for member ‘find’ in ‘* local_features’, which is of non-class type ‘int’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:501: error: request for member ‘end’ in ‘* local_features’, which is of non-class type ‘int’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp: In function ‘WorldSegment* ReadMapSegment(DFHack::Context&, int, int, int, int, int, int)’:
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:589: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:599: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:608: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:632: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:645: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:729: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:759: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:777: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:777: error: ‘planecoord’ is not a member of ‘DFHack’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:777: error: template argument 1 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:777: error: template argument 3 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:777: error: template argument 4 is invalid
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:777: error: invalid type in declaration before ‘;’ token
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:778: error: no matching function for call to ‘DFHack::Maps::ReadLocalFeatures(int&)’
/usr/include/dfhack/modules/Maps.h:416: note: candidates are: bool DFHack::Maps::ReadLocalFeatures(std::map<DFHack::DFCoord, std::vector<DFHack::t_feature*, std::allocator<DFHack::t_feature*> >, std::less<DFHack::DFCoord>, std::allocator<std::pair<const DFHack::DFCoord, std::vector<DFHack::t_feature*, std::allocator<DFHack::t_feature*> > > > >&)
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp: In function ‘bool ConnectDFAPI(DFHack::Context*)’:
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:1090: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp: In function ‘void FollowCurrentDFWindow()’:
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:1174: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp: In function ‘void FollowCurrentDFCenter()’:
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:1206: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp: In function ‘void reloadDisplayedSegment()’:
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:1295: warning: deprecated conversion from string constant to ‘char*’
/home/mrhn/Games/dwarf fortress/stonesense/MapLoading.cpp:1296: warning: deprecated conversion from string constant to ‘char*’
make[2]: *** [CMakeFiles/stonesense.dir/MapLoading.cpp.o] Error 1
make[1]: *** [CMakeFiles/stonesense.dir/all] Error 2
make: *** [all] Error 2
I've downloaded DFHack sources yesterday and installed them.
I'd appreciate some pointers on where to go from here.