• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Debian]Installing library to compile OTClient - failed

@binny

Try this:
Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so.1.0.2 -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so.1.0.2 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
 
Last edited:
@binny

Try this:
Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so.1.0.2 -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so.1.0.2 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..

Code:
root@brabbt:/home/binny/Documents/otclient/build# cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so.1.0.2 -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so.1.0.2 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Link to static libraries: OFF
-- Build type: Debug
-- Build commit: devel
-- Build revision: 0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   chrono
--   date_time
--   atomic
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.1.so  
-- LuaJIT: OFF
-- Found PHYSFS: /usr/local/lib/libphysfs.so  
-- Found OPENSSL: /usr/local/ssl/lib/libssl.so.1.0.2;/usr/local/ssl/lib/libcrypto.so.1.0.2  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so  
-- Debug information: ON
-- Crash handler: ON
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so  
-- OpenGL ES: OFF
-- Found OPENAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Found VORBISFILE: /usr/lib/x86_64-linux-gnu/libvorbisfile.so  
-- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.so  
-- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so  
-- Bot protection: OFF
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    OPENSSL_ROOT_DIR


-- Build files have been written to: /home/binny/Documents/otclient/build

make:
hastebin
 
@binny

I read in your build log that it tries to use the openssl header files from /usr/include/openssl, but it should look in /usr/local/ssl/include. So I think you need to copy the header files with this command:

cp -Rf /home/binny/usr/include/openssl /usr/local/ssl/include
 
@binny

I read in your build log that it tries to use the openssl header files from /usr/include/openssl, but it should look in /usr/local/ssl/include. So I think you need to copy the header files with this command:

cp -Rf /home/binny/usr/include/openssl /usr/local/ssl/include

Same stuff?
Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so.1.0.2 -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so.1.0.2 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Link to static libraries: OFF
-- Build type: Debug
-- Build commit: devel
-- Build revision: 0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   chrono
--   date_time
--   atomic
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.1.so  
-- LuaJIT: OFF
-- Found PHYSFS: /usr/local/lib/libphysfs.so  
-- Found OPENSSL: /usr/local/ssl/lib/libssl.so.1.0.2;/usr/local/ssl/lib/libcrypto.so.1.0.2  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so  
-- Debug information: ON
-- Crash handler: ON
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so  
-- OpenGL ES: OFF
-- Found OPENAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Found VORBISFILE: /usr/lib/x86_64-linux-gnu/libvorbisfile.so  
-- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.so  
-- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.so  
-- Bot protection: OFF
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    OPENSSL_ROOT_DIR


-- Build files have been written to: /home/binny/Documents/otclient/build

Even installing apt-get install apt-get install libssl1.0-dev
 
Last edited by a moderator:
Header files aren't shown in the cmake generator log, the errors in your last compile log shows that it included the header files from the wrong directory, so it is most likely that it inclucded the wrong version. Have you tried to compile again? If so please post the build log.
 
Header files aren't shown in the cmake generator log, the errors in your last compile log shows that it included the header files from the wrong directory, so it is most likely that it inclucded the wrong version. Have you tried to compile again? If so please post the build log.
I'm sorry to this long and thank you to still help us...
I've tried to recompile to show you the logs, but look what happen:
hastebin

What is wrong?
 
That is what you get when you copy some text and accidentally paste it in the terminal, it will interpret each newline as a shell command, that's why you see the command cannot be found. Nothing happened really, just continue with the make command.
 
That is what you get when you copy some text and accidentally paste it in the terminal, it will interpret each newline as a shell command, that's why you see the command cannot be found. Nothing happened really, just continue with the make command.

I'm sorry to be too noob, i didn't know that...

It is compiling now, but why this a lot of warnings?
hastebin
 
Last edited:
It seems the compilation was finished 100% without any fatal errors, so you could try to run the Otclient binary insdide the build directory, don't forget to put the otclient binary in the correct directory and .dat and .spr files of the client version you want to run.

About the warnings, I don't know why but after googeling I think it is something with for loop not properly coded like wrong position of a semicolon. It is a warning not an error so you might be able to safely ignore this, if you experience something out of the ordinary you might fill out a bug report on the bugtracker of otclient on github.
 
It seems the compilation was finished 100% without any fatal errors, so you could try to run the Otclient binary insdide the build directory, don't forget to put the otclient binary in the correct directory and .dat and .spr files of the client version you want to run.

About the warnings, I don't know why but after googeling I think it is something with for loop not properly coded like wrong position of a semicolon. It is a warning not an error so you might be able to safely ignore this, if you experience something out of the ordinary you might fill out a bug report on the bugtracker of otclient on github.

So that is it, otclient compiled on debian stretch thank for @Senzubean

The way to compile is:
apt-get install build-essential cmake git-core liblua5.1-0-dev libvorbis-dev libopenal-dev libphysfs-dev libz3-dev freeglut3-dev libc6-dev-i386 doxygen libncurses5-dev mercurial libboost-all-dev libglew-dev
apt-get install libssl1.0-dev

wget https://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2
tar -xjf physfs-2.0.3.tar.bz2 `
cd physfs-2.0.3/ && mkdir build && cd build && cmake .. && make
make install
cp /usr/local/lib/libphysfs.so.2.0.3 /usr/lib/x86_64-linux-gnu/

mkdir -p /usr/local/ssl/lib /usr/local/ssl/include
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
ar -x libssl-dev_1.0.1t-1+deb8u6_amd64.deb
tar xf data.tar.xz

cp usr/lib/x86_64-linux-gnu/libcrypto.so /usr/local/ssl/lib
cp /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0* /usr/local/ssl/lib


cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so.1.0.2 -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so.1.0.2 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
make

Anyways did u know why my otclient isn't saving?
Everytime i close and re open i lose everything, need to choose the language, and blablabla
 
Last edited by a moderator:
I'm trying to follow the steps but a link looks offline...
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb

--2018-01-09 11:11:20-- http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
Resolving ftp.us.debian.org (ftp.us.debian.org)... 128.30.2.26, 208.80.154.15, 128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|128.30.2.26|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-09 11:11:20 ERROR 404: Not Found.


What should i do?
 
I'm trying to follow the steps but a link looks offline...
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
--2018-01-09 11:11:20-- http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb
Resolving ftp.us.debian.org (ftp.us.debian.org)... 128.30.2.26, 208.80.154.15, 128.61.240.89, ...
Connecting to ftp.us.debian.org (ftp.us.debian.org)|128.30.2.26|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-09 11:11:20 ERROR 404: Not Found.


What should i do?

I have this here:
libssl-dev_1.0.1t-1_deb8u6_amd64

And to fix that error i reported before, to save otclient configs, you need to:
cd /home/youruser && mkdir .otclient && chmod -R 777 .otclient && chmod -R 777 otclient
 
Last edited:
That is what you get when you copy some text and accidentally paste it in the terminal, it will interpret each newline as a shell command, that's why you see the command cannot be found. Nothing happened really, just continue with the make command.
@Senzubean your steps is not working now in new otc, can u help?
 
Back
Top