otclient icon indicating copy to clipboard operation
otclient copied to clipboard

Error when compile on ubuntu 18.04

Open yehia opened this issue 5 years ago • 4 comments
trafficstars

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

yehia avatar Apr 07 '20 13:04 yehia

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

tchaikovsky1972 avatar May 11 '20 20:05 tchaikovsky1972

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

bidodev avatar May 21 '20 10:05 bidodev

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

tchaikovsky1972 avatar May 27 '20 17:05 tchaikovsky1972

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/.

hian18 avatar Mar 14 '21 14:03 hian18