Svira
Active Member
- Joined
- Jan 27, 2008
- Messages
- 263
- Solutions
- 11
- Reaction score
- 35
Hello,
for several days trying to compile the engine, I've solved millions of errors with libraries or MarinaDB/SqLite4
My console error:
HELP ME!
for several days trying to compile the engine, I've solved millions of errors with libraries or MarinaDB/SqLite4
My console error:
Code:
iologindata.cpp: In member function 'std::__cxx11::string IOLoginData::getCheckPlayerLevel(const string&) const':
iologindata.cpp:1649:8: error: could not convert 'false' from 'bool' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
return false;
^~~~~
mv -f .deps/networkmessage.Tpo .deps/networkmessage.Po
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-array-bounds -pthread -pipe -MT npc.o -MD -MP -MF .deps/npc.Tpo -c -o npc.o npc.cpp
Makefile:547: recipe for target 'iologindata.o' failed
make[1]: *** [iologindata.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/movement.Tpo .deps/movement.Po
mv -f .deps/monster.Tpo .deps/monster.Po
mv -f .deps/monsters.Tpo .deps/monsters.Po
mv -f .deps/npc.Tpo .deps/npc.Po
make[1]: Leaving directory '/home/ots/build/src'
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2
HELP ME!
Code:
Project Name
The Forgotten Server
Version
0.4.0_DEV
[ COMPILING
GNU\Linux - Debian (...and forks, eg. Ubuntu)
A detailed and always up-to-date tutorial may be found here:
http://otland.net/f137/linux-ultimate-compile-guide-debian-ubuntu-included-2868/
Root
You need to get on root user or use sudo for almost all below operations.
Download required packages
Launch a terminal, and paste in the following commands:
apt-get install libboost1.38-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 libsqlite0 libsqlite0-dev libsqlite3-0 libsqlite3-dev sqlite3 lua5.1 libmysql++-dev libgmp3-dev subversion make g++ libxml2 libxml2-dev libxml++2.6-dev libmysqlclient15-dev mysql-client-5.0 mysql-common mysql-server-5.0 gcc cpp automake autoconf pkg-config zlib1g-dev ccache libcrypto++-dev
Download sources
Launch a terminal, and paste in this command:
svn co http://svn.otland.net/public/forgottenserver/tags/0.4.0_DEV
Compiling
Launch a terminal, and type this:
cd 0.4.0_DEV && ./autogen.sh && ./configure --enable-sqlite --enable-server-diag && ./build.sh
Linker error
If you receive a linker error saying something with 'libboost', try pasting the following commands to terminal and then move back to compiling again:
wget http://garr.dl.sourceforge.net/sourceforge/asio/boost_asio_1_0_0.tar.gz
tar -xzf boost_asio_1_0_0.tar.gz
cp -ar boost_asio_1_0_0/boost/* /usr/include/boost/
g++ boost_asio_1_0_0/libs/system/src/error_code.cpp -c -o /usr/lib/libboost_system.a
ln /usr/lib/libboost_regex-mt.so /usr/lib/libboost_regex.so
ln /usr/lib/libboost_regex-mt.a /usr/lib/libboost_regex.a
ln /usr/lib/libboost_thread-mt.so /usr/lib/libboost_thread.so
ln /usr/lib/libboost_thread-mt.a /usr/lib/libboost_thread.a
rm -rf boost_asio_1_0_0 boost_asio_1_0_0.tar.gz