edubart / otclient

An alternative tibia client for otserv written in C++11 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to customize
Other
652 stars 399 forks source link

Error when compile on ubuntu 18.04 #1078

Open yehia opened 4 years ago

yehia commented 4 years ago

Hello, i have this error in ubuntu 18.04...

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libogg.a(framing.o): relocalização R_X86_64_32S contra ".rodata" não pode ser usada ao fazer um objecto PIE; recompilar com -fPIC /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libogg.a(bitwise.o): relocalização R_X86_64_32S contra ".rodata" não pode ser usada ao fazer um objecto PIE; recompilar com -fPIC /usr/bin/ld: vinculação final falhou: Seção não representável na saída collect2: error: ld returned 1 exit status CMakeFiles/otclient.dir/build.make:3857: recipe for target 'otclient' failed make[2]: *** [otclient] Error 1 CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/otclient.dir/all' failed make[1]: *** [CMakeFiles/otclient.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

tchaikovsky1972 commented 4 years ago

Have you tried to compile with 64 bits Ubuntu? I did and I had the same message.

bidodev commented 4 years ago

Same error here, I'm using Mint 19, which is based on Ubuntu.

tchaikovsky1972 commented 4 years ago

I find a solution at https://github.com/edubart/otclient/pull/987

hian18 commented 3 years ago

sudo apt-get install libncurses5-dev sudo apt-get install mercurial hg clone -r stable-3.0 http://hg.icculus.org/icculus/physfs/ cd physfs sudo mkdir build cd build sudo cmake .. sudo make sudo make install sudo mv /usr/local/lib/libphysfs.a /usr/lib/x86_64-linux-gnu/.