Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error when compile on ubuntu 18.04 #1078

Open
yehia opened this issue Apr 7, 2020 · 4 comments
Open

Error when compile on ubuntu 18.04 #1078

yehia opened this issue Apr 7, 2020 · 4 comments
Labels

Comments

@yehia
Copy link

yehia commented Apr 7, 2020

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

@slavidodo slavidodo added the Bug label May 7, 2020
@tchaikovsky1972
Copy link

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

@bidodev
Copy link

bidodev commented May 21, 2020

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

@tchaikovsky1972
Copy link

I find a solution at #987

@hian18
Copy link

hian18 commented Mar 14, 2021

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants