Diarreamental
Well-Known Member
- Joined
- Jul 6, 2015
- Messages
- 453
- Solutions
- 1
- Reaction score
- 80
Hello
im testing ubuntu 18.04 and im having troubles compiling otclient files at ubuntu 18.04, these were compilable at windows 10 without any problem.
i followed the github tutorial, also i did the step that we should do in cases we face certain issue in ubuntu.
but it hasn't fied anything , the same issue still persists
im testing ubuntu 18.04 and im having troubles compiling otclient files at ubuntu 18.04, these were compilable at windows 10 without any problem.
i followed the github tutorial, also i did the step that we should do in cases we face certain issue in ubuntu.
Code:
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/.
but it hasn't fied anything , the same issue still persists
Code:
diarreamental@diarreamental-Lenovo-ideapad-300-14IBR:~/otclient$ cd build && cmake .. && make
-- Link to static libraries: ON
-- Build type: RelWithDebInfo
-- Build commit: devel
-- Build revision: 0
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- LuaJIT: OFF
-- Debug information: ON
-- Crash handler: ON
-- OpenGL ES: OFF
-- Bot protection: ON
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/diarreamental/otclient/build
[ 1%] Linking CXX executable otclient
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libogg.a(framing.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libogg.a(bitwise.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
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
Last edited: