I have a build problem. please help
Code:
Build with MySQL............ : yes
Build with SQLite........... : no
Build with PostgreSQL....... : no
Configure complete, now you may type './build.sh'.
make all-am
make[1]: Entering directory '/home/funtera'
CXX actions.o
CXX allocator.o
CXX baseevents.o
CXX beds.o
CXX chat.o
chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
chat.cpp:1145:10: warning: converting ‘false’ to pointer type ‘ChatChannel*’ [-W conversion-null]
return false;
^
CXX combat.o
CXX condition.o
CXX configmanager.o
CXX connection.o
CXX container.o
CXX creature.o
CXX creatureevent.o
CXX cylinder.o
CXX database.o
CXX databasemanager.o
CXX databasemysql.o
CXX depot.o
CXX dispatcher.o
CXX exception.o
CXX fileloader.o
CXX game.o
game.cpp: In member function ‘Item* Game::findItemOfType(Cylinder*, uint16_t, bo ol, int32_t)’:
game.cpp:1794:10: warning: converting ‘false’ to pointer type ‘Item*’ [-Wconvers ion-null]
return false;
^
CXX globalevent.o
CXX group.o
CXX gui.o
CXX house.o
CXX housetile.o
CXX inputbox.o
CXX ioban.o
CXX ioguild.o
CXX iologindata.o
iologindata.cpp: In member function ‘std::string IOLoginData::getCheckPlayerLeve l(const string&) const’:
iologindata.cpp:1686:10: warning: converting ‘false’ to pointer type for argumen t 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = s td::allocator<char>]’ [-Wconversion-null]
return false;
^
CXX iomap.o
CXX iomapserialize.o
CXX item.o
CXX itemattributes.o
CXX items.o
CXX luascript.o
In file included from /usr/include/boost/filesystem.hpp:15:0,
from luascript.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesyste m version 3 file with BOOST_FILESYSTEM_VERSION defined != 2
# error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION def ined != 2
^
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const string &, Npc*, bool)’:
luascript.cpp:742:23: error: ‘class boost::filesystem::directory_entry’ has no m ember named ‘leaf’
std::string s = it->leaf();
^
luascript.cpp:745:59: error: no match for ‘operator+’ (operand types are ‘boost: :filesystem::path’ and ‘const char [2]’)
if(recursively && !loadDirectory(it->path().filename() + "/" + s, npc, recur sively))
^
Makefile:544: recipe for target 'luascript.o' failed
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory '/home/funtera'
Makefile:397: recipe for target 'all' failed
make: *** [all] Error 2