Witam, poszukuje pomocy przy kompilacji silnika pod linuxa Ubuntu 16.
Pliki wgrałem na serwer, nadałem prawa, uruchomiłem. Poniżej przedstawiam screen shoty.
Co powinienem zrobić aby kompilacja się powiodła?
Po komendzie make otserv:
i tak dalej.
Na samym końcu error:
## EDIT,
brakowało architektury 32 bitowej.
pomogło zainstalowanie:
Oraz pakietu lua
Pojawia się kolejny problem:
#EDIT
Pomogło:
Zamiana nazwy pliku:
liblua5.1.a na liblua.a
Pliki wgrałem na serwer, nadałem prawa, uruchomiłem. Poniżej przedstawiam screen shoty.
Co powinienem zrobić aby kompilacja się powiodła?
Po komendzie make otserv:
i tak dalej.
Na samym końcu error:
Code:
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'otserv' failed
make: *** [otserv] Error 1
## EDIT,
brakowało architektury 32 bitowej.
pomogło zainstalowanie:
Code:
apt-get install sl-modem-daemon:i386
Oraz pakietu lua
Code:
curl -R -O http://www.lua.org/ftp/lua-5.3.1.tar.gz
tar zxf lua-5.3.1.tar.gz
cd lua-5.3.1
make linux test
Pojawia się kolejny problem:
Code:
root@ns527506:/home/evo/source# make otserv
g++ otserv.cpp -o otserv
In file included from definitions.h:26:0,
from otserv.cpp:22:
configmanager.h:28:17: fatal error: lua.h: No such file or directory
^
compilation terminated.
#EDIT
Pomogło:
Code:
cd /usr/lib
liblua5.1.a na liblua.a
Code:
make otserv
g++ otserv.cpp -o otserv
In file included from /usr/include/c++/6/ext/hash_map:60:0,
from definitions.h:146,
from otserv.cpp:22:
/usr/include/c++/6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning \
^~~~~~~
In file included from creature.h:29:0,
from protocol79.h:29,
from otserv.cpp:31:
condition.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory
^
compilation terminated.
<builtin>: recipe for target 'otserv' failed
Last edited: