Kompilacja Problem

Status
Zamknięty.

mial123

Advanced User
Zarejestrowany
Dołączył
Kwiecień 2, 2009
Posty
307
Liczba reakcji
24
Witam, wgra?e? wszystkie pliki itp, i na ko?cu pojawi? si? problem a mianowicie, nie chce si? skompilowa?:
Kod:
./autogen.sh[CODE]./autogen.sh: line 1: autoreconf: command not found
[/CODE]
Kod:
./configure --enable-mysql --enable-remote-control --enable-server-diag[CODE]-enable-server-diag
-bash: ./configure: No such file or directory
[/CODE]
Kod:
./build.sh[CODE]TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 1 cores, using 2 processes
make: *** No targets specified and no makefile found.  Stop.
[/CODE]
Jak to zrobi?>? Pomocy! Debian 7 64bit
 
Odp: Problem

Kod:
sudo apt-get install autoconf
Kod:
sudo apt-get install libtool
 
Odp: Problem

Kod:
apt-get install libboost1.35-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[CODE]E: Package 'libboost1.35-dev' has no installation candidate
[/CODE]
Kod:
./autogen.sh[CODE]autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
configure.ac:146: warning: macro `AM_PATH_XML2' not found in library
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:122: error: possibly undefined macro: AC_CHECK_HEADERS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:146: error: possibly undefined macro: AM_PATH_XML2
configure.ac:146: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:151: error: possibly undefined macro: AC_CHECK_LIB
autoreconf: /usr/bin/autoconf failed with exit status: 1
[/CODE]
Kod:
./configure --enable-mysql --enable-server-diag[CODE]
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
[/CODE]
Pomo?e kto??? System: Debian 7
Da?em taki kod co znalaz?em:
Kod:
sudo apt-get install autoconf automake libtool pkg-config libgtk2.0-dev libgtkmm-2.4-dev libjack-jackd2-dev libasound-dev liblash-compat-dev dssi-dev liblo-dev libsndfile-dev
czyli ./autogen.sh dzia?a, ale wyskoczy? mi b??d przy ./configure --enable-mysql --enable-remote-control
Kod:
configure: error: "gmp header not found."
Da?em: apt-get install libgmp3-dev i problem si? rozwi?za? i pojawi? si? kolejny:
Kod:
configure: error: "Required Crypto++ headers not found."
da?em: apt-get install libcrypto++-dev
Kod:
configure: error: "Lua header not found."
da?em: apt-get install liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1
Kod:
configure: error: "MySQL headers missing."
kolejny b??d :( da?em: apt-get install libmysqlclient-dev
I zn?w:
Kod:
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 1 cores, using 2 processes
make  all-am
make[1]: Entering directory `/root'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
mv -f .deps/actions.Tpo .deps/actions.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
chat.cpp: In member function 'ChatChannel* Chat::getChannel(Player*, uint16_t)':
chat.cpp:1144:10: error: converting 'false' to pointer type 'ChatChannel*' [-Werror=conversion-null]
mv -f .deps/beds.Tpo .deps/beds.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT combat.o -MD -MP -MF .deps/combat.Tpo -c -o combat.o combat.cpp
cc1plus: all warnings being treated as errors
make[1]: *** [chat.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/combat.Tpo .deps/combat.Po
make[1]: Leaving directory `/root'
make: *** [all] Error 2
tym razem ju? w ./build.sh
Kod:
make  all-am
make[1]: Entering directory `/root'
make[1]: Warning: File `game.cpp' has modification time 44 s in the future
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-bounds]
In file included from game.cpp:18:0:
game.h: In member function 'void Game::globalSave()':
game.h:613:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6138:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6140:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/root'
make: *** [all] Error 2
ca?y:
Kod:
make
/bin/bash ./config.status --recheck
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --enable-mysql --no-create --no-recursion
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... gawk
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 ceil... 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 zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... 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 boost/tr1/unordered_set.hpp usability... yes
checking boost/tr1/unordered_set.hpp presence... yes
checking for boost/tr1/unordered_set.hpp... yes
checking cryptopp/sha.h usability... yes
checking cryptopp/sha.h presence... yes
checking for cryptopp/sha.h... yes
checking cryptopp/md5.h usability... yes
checking cryptopp/md5.h presence... yes
checking for cryptopp/md5.h... yes
checking cryptopp/adler32.h usability... yes
checking cryptopp/adler32.h presence... yes
checking for cryptopp/adler32.h... yes
checking cryptopp/hex.h usability... yes
checking cryptopp/hex.h presence... yes
checking for cryptopp/hex.h... yes
checking cryptopp/base64.h usability... yes
checking cryptopp/base64.h presence... yes
checking for cryptopp/base64.h... yes
checking cryptopp/hmac.h usability... yes
checking cryptopp/hmac.h presence... yes
checking for cryptopp/hmac.h... yes
checking cryptopp/cryptlib.h usability... yes
checking cryptopp/cryptlib.h presence... yes
checking for cryptopp/cryptlib.h... yes
checking for main in -lcryptopp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for main in -lmysqlclient... yes
configure: creating ./config.status

theforgottenserver 0.4

Server diagnostics.......... : no
Login server mode........... : no
OTAdmin protocol............ : no
Root run permission......... : no
Login server mode........... : no
Home-directory configuration : no
OTServ custom allocator..... : no
Debug build................. : no
Using LuaJIT................ : no

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

Configure complete, now you may type './build.sh'.
 /bin/bash ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory `/root'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-bounds]
In file included from game.cpp:18:0:
game.h: In member function 'void Game::globalSave()':
game.h:613:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6138:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6140:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/root'
make: *** [all] Error 2
Help, u?ywam trunk.r3777 jako source, z War'em, kompilowa?em go ju? pod windows i b??d?w nie robi?o :(
 
Ostatnia edycja:
Odp: Problem

Zmie? mo?e trunka na r.3884. Tu jest co? nie halo error: array subscript is above array bounds [-Werror=array-bounds] nie mam poj?cia co to za werror bounds xd
 
Odp: Problem

Problem przy trunk.r3884:
Kod:
checking for LUA... no
checking lua.hpp usability... no
checking lua.hpp presence... no
checking for lua.hpp... no
configure: error: "Lua header not found."
przy trunk.r3777:
Kod:
game.cpp: In member function 'Item* Game::findItemOfType(Cylinder*, uint16_t, bool, int32_t)':
game.cpp:1725:10: error: converting 'false' to pointer type 'Item*' [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [game.o] Error 1
make[1]: *** Waiting for unfinished jobs....
^Cmake[1]: *** Deleting file `ioguild.o'
make[1]: *** [ioguild.o] Interrupt
make: *** [all] Interrupt
Problem z globalsave jak to naprawi?? ja usun??em z game.h:
Kod:
void setGlobalSaveMessage(int16_t key, bool value) {globalSaveMessage[key] = value;}
		bool getGlobalSaveMessage(int16_t key) const {return globalSaveMessage[key];}
tak samo w game.cpp +
Kod:
		globalSaveMessage[i] = false
inlogindata.cpp
Kod:
		IOGuild::getInstance()->frag(_player, deathId, [COLOR="#FFFF00"]wl[/COLOR]);
ioguild.h
Kod:
	[COLOR="#FFFF00"]	void frag(Player* player, uint64_t deathId, const DeathList& list, bool score[/COLOR]);
ioguild.cpp
Kod:
void IOGuild::frag(Player* player, uint64_t deathId, const DeathList& list, bool score)
dlaczego tak si? dzieje?
---------- Tre?? dodana o 14:29 ----------

help!
 
Ostatnia edycja:
Odp: Problem

Po pierwsze to problem masz taki, ze wrzucasz wszystko jak leci nawet sie nie zastanawiajac. Sciagnales 54504 wersji kazdej paczki i zasyfiles caly system...
Wez odpowiednie source, sprawdzone, dzialajace.
Ustaw odpowiednie dla systemu sources list.
Sciagnij tylko te paczki ktore sa ci potrzebne, a nie 50 innych i kopiujac jeszcze x5 to z roznych poradnikow...
Bledy wklepuj do google i szukaj rozwizania. Czytanie na prawde nie jest trudne.

Wroc do 3884, problem z lua rozwiaz tak(pierwszy link google...):
http://otland.net/threads/configure-error-lua-header-not-found.116586/
Sprawdz czy dziala.
Jesli nie dasz rady to wywal wszystko i zacznij od poczatku na czysto. Albo znajdz kogos kto ci to zrobi jesli nie mozesz ogarnac...
 
Status
Zamknięty.
Back
Do góry