• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Debian kompilacja

YEAAAH!!!! Żartowałem..
Code:
root@junior:/home/junior/0.3.6.r101# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... no
*** Could not run libxml test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBXML was incorrectly installed
*** or that you have moved LIBXML since it was installed. In the latter case, you
*** may want to edit the xml2-config script: /usr/bin/xml2-config
configure: error: you need libxml2 >= 2.6.5 to compile theforgottenserver!

- - - Updated - - -

Chyba sie zainstalowało w zlym miejscu:
Code:
root@junior:~# whereis libxml2
libxml2: /usr/include/libxml2
jak to przenieść w odpowiednie? Bo nie chce niczego napsuć.
 
W sumie w /usr/bin/ jest plik xml2-config. Więc nie wiem dlaczego woła że go niema :<
 
Zainstaluj to co mowilem w poprzednim poscie, ew jeszcze dopisz do tego libxml++2.6-dev, czyli:
Code:
apt-get install zlib1g-dev zlib1g libxml++2.6-dev

A pozniej sprobuj configure, jezeli problem nadal bedzie wysetpowal to sprawdz config.log.
 
OMG czy ja dobrze widze?
Code:
root@junior:~# apt-get install zlib1g-dev zlib1g
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  zlib1g zlib1g-dev
2 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.
Need to get 302 kB of archives.
After this operation, 24.6 kB disk space will be freed.
Get:1 http://ftp.de.debian.org/debian/ testing/main zlib1g-dev amd64 1:1.2.7.dfsg-13 [215 kB]
Get:2 http://ftp.de.debian.org/debian/ testing/main zlib1g amd64 1:1.2.7.dfsg-13 [87.4 kB]
Fetched 302 kB in 0s (655 kB/s)
(Reading database ... 42670 files and directories currently installed.)
Preparing to replace zlib1g-dev 1:1.2.3.4.dfsg-3 (using .../zlib1g-dev_1%3a1.2.7.dfsg-13_amd64.deb) ...
Unpacking replacement zlib1g-dev ...
Preparing to replace zlib1g 1:1.2.3.4.dfsg-3 (using .../zlib1g_1%3a1.2.7.dfsg-13_amd64.deb) ...
Unpacking replacement zlib1g ...
Processing triggers for man-db ...
Setting up zlib1g (1:1.2.7.dfsg-13) ...
Setting up zlib1g-dev (1:1.2.7.dfsg-13) ...
root@junior:~# cd /home/junior/0.3.6.r101/
root@junior:/home/junior/0.3.6.r101# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.8.0)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking boost/asio.hpp usability... yes
checking boost/asio.hpp presence... yes
checking for boost/asio.hpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

theforgottenserver 0.3.5

Server diagnostics.......... : no
Login server mode........... : no
Remote control.............. : no
Root run permission......... : no
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no

Build with MySQL............ : no
Build with SQLite........... : no
Build with PostgreSQL....... : no
Build with ODBC............. : no

Warning: no database driver was enabled! To enable a database driver, configure with --enable-<dbdriver> (example: --enable-mysql).

Configure complete, now you may type 'make'.
 
Po wklepaniu make:
Code:
root@junior:/home/junior/0.3.6.r101# make
make  all-am
make[1]: Entering directory `/home/junior/0.3.6.r101'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1          -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
In file included from baseevents.h:20:0,
                 from actions.h:20,
                 from actions.cpp:20:
otsystem.h:79:11: error: missing binary operator before token "_MSC_VER"
In file included from luascript.h:29:0,
                 from baseevents.h:22,
                 from actions.h:20,
                 from actions.cpp:20:
database.h:62:2: error: #error "You have to compile with at least one database driver!"
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory `/home/junior/0.3.6.r101'
make: *** [all] Error 2
:/
 
Code:
////////////////////////////////////////////////////////////////////////
// OpenTibia - an opensource roleplaying game
////////////////////////////////////////////////////////////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////

#ifndef __OTSYSTEM__
#define __OTSYSTEM__
#include "definitions.h"

#include <string>
#include <algorithm>
#include <bitset>
#include <queue>
#include <set>
#include <vector>
#include <list>
#include <map>
#include <limits>

#include <boost/utility.hpp>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp>

#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>

#include <time.h>
#include <assert.h>
#ifdef WINDOWS
#include <windows.h>
#include <sys/timeb.h>

#define OTSERV_ACCESS(file, mode) _access(file, mode);
inline int64_t OTSYS_TIME()
{
	_timeb t;
	_ftime(&t);
	return ((int64_t)t.millitm) + ((int64_t)t.time) * 1000;
}
#else
#include <sys/timeb.h>
#include <sys/types.h>
#include <sys/socket.h>

#include <unistd.h>
#include <time.h>
#include <netdb.h>
#include <errno.h>

#include <arpa/inet.h>
#include <netinet/in.h>

#define OTSERV_ACCESS(file, mode) access(file, mode);
inline int64_t OTSYS_TIME()
{
	timeb t;
	ftime(&t);
	return ((int64_t)t.millitm) + ((int64_t)t.time) * 1000;
}
#endif

#ifdef __GNUC__
	#define __OTSERV_FUNCTION__ __PRETTY_FUNCTION__
#elif def _MSC_VER
	#define __OTSERV_FUNCTION__ __FUNCDNAME__
#endif

#define foreach BOOST_FOREACH
#define reverse_foreach BOOST_REVERSE_FOREACH

typedef std::vector<std::pair<uint32_t, uint32_t> > IpList;
#endif
79:
Code:
#elif def _MSC_VER
 
Po skonfigurowaniu MySQL:
Code:
Build with MySQL............ : yes
Build with SQLite........... : no
Build with PostgreSQL....... : no
Build with ODBC............. : no

Configure complete, now you may type 'make'.
root@junior:/home/junior/0.3.6.r101# make
make  all-am
make[1]: Entering directory `/home/junior/0.3.6.r101'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
In file included from baseevents.h:20:0,
                 from actions.h:20,
                 from actions.cpp:20:
otsystem.h:79:11: error: missing binary operator before token "_MSC_VER"
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory `/home/junior/0.3.6.r101'
make: *** [all] Error 2
 
Po podmienieniu tej linijki:
Code:
root@junior:/home/junior/0.3.6.r101# make
make  all-am
make[1]: Entering directory `/home/junior/0.3.6.r101'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
mv -f .deps/actions.Tpo .deps/actions.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT allocator.o -MD -MP -MF .deps/allocator.Tpo -c -o allocator.o allocator.cpp
mv -f .deps/allocator.Tpo .deps/allocator.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT baseevents.o -MD -MP -MF .deps/baseevents.Tpo -c -o baseevents.o baseevents.cpp
mv -f .deps/baseevents.Tpo .deps/baseevents.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
mv -f .deps/beds.Tpo .deps/beds.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
mv -f .deps/chat.Tpo .deps/chat.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT combat.o -MD -MP -MF .deps/combat.Tpo -c -o combat.o combat.cpp
mv -f .deps/combat.Tpo .deps/combat.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT condition.o -MD -MP -MF .deps/condition.Tpo -c -o condition.o condition.cpp
mv -f .deps/condition.Tpo .deps/condition.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT configmanager.o -MD -MP -MF .deps/configmanager.Tpo -c -o configmanager.o configmanager.cpp
mv -f .deps/configmanager.Tpo .deps/configmanager.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT connection.o -MD -MP -MF .deps/connection.Tpo -c -o connection.o connection.cpp
mv -f .deps/connection.Tpo .deps/connection.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT container.o -MD -MP -MF .deps/container.Tpo -c -o container.o container.cpp
mv -f .deps/container.Tpo .deps/container.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT creature.o -MD -MP -MF .deps/creature.Tpo -c -o creature.o creature.cpp
mv -f .deps/creature.Tpo .deps/creature.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT creatureevent.o -MD -MP -MF .deps/creatureevent.Tpo -c -o creatureevent.o creatureevent.cpp
mv -f .deps/creatureevent.Tpo .deps/creatureevent.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT cylinder.o -MD -MP -MF .deps/cylinder.Tpo -c -o cylinder.o cylinder.cpp
mv -f .deps/cylinder.Tpo .deps/cylinder.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT database.o -MD -MP -MF .deps/database.Tpo -c -o database.o database.cpp
mv -f .deps/database.Tpo .deps/database.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT databasemanager.o -MD -MP -MF .deps/databasemanager.Tpo -c -o databasemanager.o databasemanager.cpp
mv -f .deps/databasemanager.Tpo .deps/databasemanager.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT databasemysql.o -MD -MP -MF .deps/databasemysql.Tpo -c -o databasemysql.o databasemysql.cpp
mv -f .deps/databasemysql.Tpo .deps/databasemysql.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT depot.o -MD -MP -MF .deps/depot.Tpo -c -o depot.o depot.cpp
mv -f .deps/depot.Tpo .deps/depot.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT exception.o -MD -MP -MF .deps/exception.Tpo -c -o exception.o exception.cpp
mv -f .deps/exception.Tpo .deps/exception.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT fileloader.o -MD -MP -MF .deps/fileloader.Tpo -c -o fileloader.o fileloader.cpp
mv -f .deps/fileloader.Tpo .deps/fileloader.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In member function 'Item* Game::findItemOfType(Cylinder*, uint16_t, bool, int32_t)':
game.cpp:1659:10: warning: converting 'false' to pointer type 'Item*' [-Wconversion-null]
mv -f .deps/game.Tpo .deps/game.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT globalevent.o -MD -MP -MF .deps/globalevent.Tpo -c -o globalevent.o globalevent.cpp
mv -f .deps/globalevent.Tpo .deps/globalevent.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT group.o -MD -MP -MF .deps/group.Tpo -c -o group.o group.cpp
mv -f .deps/group.Tpo .deps/group.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT gui.o -MD -MP -MF .deps/gui.Tpo -c -o gui.o gui.cpp
mv -f .deps/gui.Tpo .deps/gui.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT house.o -MD -MP -MF .deps/house.Tpo -c -o house.o house.cpp
mv -f .deps/house.Tpo .deps/house.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT housetile.o -MD -MP -MF .deps/housetile.Tpo -c -o housetile.o housetile.cpp
mv -f .deps/housetile.Tpo .deps/housetile.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT inputbox.o -MD -MP -MF .deps/inputbox.Tpo -c -o inputbox.o inputbox.cpp
mv -f .deps/inputbox.Tpo .deps/inputbox.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT ioban.o -MD -MP -MF .deps/ioban.Tpo -c -o ioban.o ioban.cpp
mv -f .deps/ioban.Tpo .deps/ioban.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT ioguild.o -MD -MP -MF .deps/ioguild.Tpo -c -o ioguild.o ioguild.cpp
mv -f .deps/ioguild.Tpo .deps/ioguild.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT iologindata.o -MD -MP -MF .deps/iologindata.Tpo -c -o iologindata.o iologindata.cpp
mv -f .deps/iologindata.Tpo .deps/iologindata.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT iomap.o -MD -MP -MF .deps/iomap.Tpo -c -o iomap.o iomap.cpp
mv -f .deps/iomap.Tpo .deps/iomap.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT iomapserialize.o -MD -MP -MF .deps/iomapserialize.Tpo -c -o iomapserialize.o iomapserialize.cpp
mv -f .deps/iomapserialize.Tpo .deps/iomapserialize.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cpp
mv -f .deps/item.Tpo .deps/item.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT itemattributes.o -MD -MP -MF .deps/itemattributes.Tpo -c -o itemattributes.o itemattributes.cpp
mv -f .deps/itemattributes.Tpo .deps/itemattributes.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT items.o -MD -MP -MF .deps/items.Tpo -c -o items.o items.cpp
mv -f .deps/items.Tpo .deps/items.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In member function 'bool LuaScriptInterface::loadDirectory(const string&, Npc*)':
luascript.cpp:719:23: error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/junior/0.3.6.r101'
make: *** [all] Error 2
 
W żadnym z tych skryptów niema .leaf()
 
Ok. Podmieniłem i teraz:
Code:
root@junior:/home/junior/0.3.6.r101# make
make  all-am
make[1]: Entering directory `/home/junior/0.3.6.r101'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In static member function 'static int32_t LuaScriptInterface::luaGetTownTemplePosition(lua_State*)':
luascript.cpp:8768:7: warning: variable 'displayError' set but not used [-Wunused-but-set-variable]
mv -f .deps/luascript.Tpo .deps/luascript.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT mailbox.o -MD -MP -MF .deps/mailbox.Tpo -c -o mailbox.o mailbox.cpp
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT map.o -MD -MP -MF .deps/map.Tpo -c -o map.o map.cpp
mv -f .deps/map.Tpo .deps/map.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.cpp
mv -f .deps/md5.Tpo .deps/md5.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT monster.o -MD -MP -MF .deps/monster.Tpo -c -o monster.o monster.cpp
monster.cpp: In member function 'virtual void Monster::doAttacking(uint32_t)':
monster.cpp:621:26: warning: variable 'outOfRange' set but not used [-Wunused-but-set-variable]
mv -f .deps/monster.Tpo .deps/monster.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT monsters.o -MD -MP -MF .deps/monsters.Tpo -c -o monsters.o monsters.cpp
mv -f .deps/monsters.Tpo .deps/monsters.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT movement.o -MD -MP -MF .deps/movement.Tpo -c -o movement.o movement.cpp
mv -f .deps/movement.Tpo .deps/movement.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT networkmessage.o -MD -MP -MF .deps/networkmessage.Tpo -c -o networkmessage.o networkmessage.                                                   cpp
mv -f .deps/networkmessage.Tpo .deps/networkmessage.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT npc.o -MD -MP -MF .deps/npc.Tpo -c -o npc.o npc.cpp
mv -f .deps/npc.Tpo .deps/npc.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_RE                                                   ENTRANT -Wall -g -O1 -MT otserv.o -MD -MP -MF .deps/otserv.Tpo -c -o otserv.o otserv.cpp
mv -f .deps/otserv.Tpo .deps/otserv.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__      -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT outfit.o -MD -MP -MF .deps/outfit.Tpo -c -o outfit.o outfit.cpp
^Cmake[1]: *** [outfit.o] Interrupt
make: *** [all] Interrupt
 
Back
Top