Compilar com comando make

Iniciado por Rhyu, 24 de Novembro de 2012, 12:56

tópico anterior - próximo tópico

Rhyu

Galera to tentando compilar com o comando make e fica dando esse erro, tentei com ./build.sh e também acontece

Configure complete, now you may type './build.sh'.
root@rogerio-pc:~/Downloads/sv# make
make  all-am
make[1]: Entrando no diretório `/home/rogerio/Downloads/sv'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -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
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_SQLITE__    -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_SQLITE__    -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_SQLITE__    -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/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_SQLITE__    -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
mv -f .deps/chat.Tpo .deps/chat.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -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
mv -f .deps/combat.Tpo .deps/combat.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT databasesqlite.o -MD -MP -MF .deps/databasesqlite.Tpo -c -o databasesqlite.o databasesqlite.cpp
mv -f .deps/databasesqlite.Tpo .deps/databasesqlite.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT dispatcher.o -MD -MP -MF .deps/dispatcher.Tpo -c -o dispatcher.o dispatcher.cpp
mv -f .deps/dispatcher.Tpo .deps/dispatcher.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -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   -O2 -fomit-frame-pointer  -D__USE_SQLITE__    -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: No construtor 'Game::Game()':
game.cpp:80:22: erro: array subscript is above array bounds [-Werror=array-bounds]
game.h: Na função membro 'void Game::globalSave()':
game.h:613:76: erro: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: Na função membro 'void Game::prepareGlobalSave()':
game.cpp:6138:30: erro: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6140:22: erro: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
make[1]: ** [game.o] Erro 1
make[1]: Saindo do diretório `/home/rogerio/Downloads/sv'
make: ** [all] Erro 2

Sergio Benjamim

Cara, se vc puder usar citação ou código (botõezinhos na janela de enviar posts do fórum) fica melhor para a gente ler...

Por que você está usando o make? Sei lá, dei uma olhada por cima, e logo no começo diz (olha um exemplo de citação):

CitarConfigure complete, now you may type './build.sh'.

Não é para usar ./build.sh ? Tem que mudar a permissão desse arquivo, clique com o botão direito, vá em propriedades, aba Permissões, e marque (caixa de seleção) lá em Executar.
É novo no Ubuntu? Já leu o Ubuntu – Guia do Iniciante 2.0 ?
Experimente o Xubuntu 14.04 !

Rhyu

Mesmo usando ./build.sh e dando permissão como você mencionou

make[1]: Saindo do diretório `/home/rogerio/Downloads/sv'
make: ** [all] Erro 2

zekkerj

O código está errado. Entre em contato com o desenvolvedor, veja se há alguma correção pro teu código.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D