• 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

Member
Joined
Mar 16, 2017
Messages
65
Reaction score
12
I was following the steps to compile Otclient, but some library are not there

And before i do some shit i need to ask to someone experient here, because i think i can not take this librarys on news versions, i think so...

apt-get install build-essential cmake git-core libboost1.58-all-dev liblua5.1-0-dev libglew1.13 libvorbis-dev libopenal-dev libphysfs-dev libglewmx-dev libz3-dev freeglut3-dev libc6-dev-i386 doxygen libncurses5-dev mercurial
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost1.58-all-dev
E: Couldn't find any package by glob 'libboost1.58-all-dev'
E: Couldn't find any package by regex 'libboost1.58-all-dev'
E: Unable to locate package libglew1.13
E: Couldn't find any package by glob 'libglew1.13'
E: Couldn't find any package by regex 'libglew1.13'

What i supposed to do?
 
try to use sudo apt-get update && sudo apt-get upgrade.
If does not work try to look for another version of the libraries
 
From what I see, debian does not have Boost with version 1.58 in their repositories. Same as with libglew.

Found with search option: Debian -- Packages
Official ftp repository: Index of /debian/pool/main/b/boost1.63

You can use:
apt install libboost-all-dev libglew-dev

This will install boost 1.63 and libglew 2.0.0-3 from stable (if you use Stretch which is the latest stable release of Debian) which are the versions that both are used in the sdk, see GitHub - conde2/otclient-sdk: This repository contains the SDK-Libraries for the OTClient Project
 
From what I see, debian does not have Boost with version 1.58 in their repositories. Same as with libglew.

Found with search option: Debian -- Packages
Official ftp repository: Index of /debian/pool/main/b/boost1.63

You can use:
apt install libboost-all-dev libglew-dev

This will install boost 1.63 and libglew 2.0.0-3 from stable (if you use Stretch which is the latest stable release of Debian) which are the versions that both are used in the sdk, see GitHub - conde2/otclient-sdk: This repository contains the SDK-Libraries for the OTClient Project

I've used:
apt-get install build-essential cmake git-core libboost-all-dev liblua5.1-0-dev libvorbis-dev libopenal-dev libphysfs-dev libglewmx-dev libz3-dev freeglut3-dev libc6-dev-i386 doxygen libncurses5-dev mercurial

But when i try to compile
cmake ..
Code:
-- 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: ON
-- Build type: RelWithDebInfo
-- 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.a  
-- LuaJIT: OFF
-- Found PHYSFS: /usr/lib/x86_64-linux-gnu/libphysfs.a  
-- Found OPENSSL: /usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.a  
-- Debug information: ON
-- Crash handler: ON
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find GLEW (missing: GLEW_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  src/framework/cmake/FindGLEW.cmake:15 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/framework/CMakeLists.txt:313 (find_package)
  CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
See also "/home/binny/otclient/build/CMakeFiles/CMakeOutput.log".
See also "/home/binny/otclient/build/CMakeFiles/CMakeError.log".

What can i do with this githubs links?
 
@binny you didn't install libglew-dev that is why you get the error:

Thank you, and now, this error is because of this?
-- Performing Test COMPILER_KNOWS_STDLIB - Failed

\/ error
cmake ..
Code:
-- 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: ON
-- Build type: RelWithDebInfo
-- 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.a
-- LuaJIT: OFF
-- Found PHYSFS: /usr/lib/x86_64-linux-gnu/libphysfs.a
-- Found OPENSSL: /usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.a
-- 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.a
-- Found VORBIS: /usr/lib/x86_64-linux-gnu/libvorbis.a
-- Found OGG: /usr/lib/x86_64-linux-gnu/libogg.a
-- Bot protection: OFF
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/binny/Documents/otclient/build
 
root@brabbt:/home/binny/Documents/otclient/build# make
Code:
Scanning dependencies of target otclient
[  0%] Building CXX object CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.o
In file included from /home/binny/Documents/otclient/src/framework/../framework/global.h:42:0,
                 from /home/binny/Documents/otclient/src/framework/../framework/core/application.h:26,
                 from /home/binny/Documents/otclient/src/framework/luafunctions.cpp:23:
/home/binny/Documents/otclient/src/framework/../framework/util/matrix.h: In function ‘std::istream& operator>>(std::istream&, Matrix<N, M, T>&)’:
/home/binny/Documents/otclient/src/framework/../framework/util/matrix.h:193:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for(int i=0;i<N;++i)
     ^~~
/home/binny/Documents/otclient/src/framework/../framework/util/matrix.h:196:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
         return in;
         ^~~~~~
[  1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/color.cpp.o
[  2%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o
In file included from /home/binny/Documents/otclient/src/framework/../framework/core/../global.h:42:0,
                 from /home/binny/Documents/otclient/src/framework/../framework/core/logger.h:26,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:25:
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h: In function ‘std::istream& operator>>(std::istream&, Matrix<N, M, T>&)’:
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h:193:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for(int i=0;i<N;++i)
     ^~~
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h:196:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
         return in;
         ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaGenerateKey(int, int)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:315:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("p = ") + BN_bn2dec(m_rsa->p));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:316:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("q = ") + BN_bn2dec(m_rsa->q));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:317:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("d = ") + BN_bn2dec(m_rsa->d));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:318:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("n = ") + BN_bn2dec(m_rsa->n));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:319:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("e = ") + BN_bn2dec(m_rsa->e));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:326:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->n, n.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:327:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->e, e.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
                                                      ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
                                                                             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:335:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->p, p.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:336:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->q, q.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:337:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->d, d.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
                                                      ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
                                                                             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
                                                      ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
                                                                             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:352:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
                     ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:352:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
                                  ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:353:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
                     ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:353:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
                                  ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:29: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:42: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                                          ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:52: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                                                    ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
CMakeFiles/otclient.dir/build.make:110: recipe for target 'CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 
You could try:

apt-get install libc++-dev libssl-dev

cmake ..
Code:
-- Link to static libraries: ON
-- Build type: RelWithDebInfo
-- Build commit: devel
-- Build revision: 0
-- Boost version: 1.62.0
-- 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: OFF
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/binny/Documents/otclient/build


root@brabbt:/home/binny/Documents/otclient/build# make
Code:
[  1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o
In file included from /home/binny/Documents/otclient/src/framework/../framework/core/../global.h:42:0,
                 from /home/binny/Documents/otclient/src/framework/../framework/core/logger.h:26,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:25:
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h: In function ‘std::istream& operator>>(std::istream&, Matrix<N, M, T>&)’:
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h:193:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for(int i=0;i<N;++i)
     ^~~
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h:196:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
         return in;
         ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaGenerateKey(int, int)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:315:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("p = ") + BN_bn2dec(m_rsa->p));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:316:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("q = ") + BN_bn2dec(m_rsa->q));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:317:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("d = ") + BN_bn2dec(m_rsa->d));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:318:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("n = ") + BN_bn2dec(m_rsa->n));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:319:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     g_logger.info(std::string("e = ") + BN_bn2dec(m_rsa->e));
                                                        ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:326:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->n, n.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:327:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->e, e.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
                                                      ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
 _rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
                                                                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:335:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->p, p.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:336:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->q, q.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:337:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->d, d.c_str());
                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
                                                      ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
 _rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
                                                                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
                                                      ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
 _rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
                                                                     ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:352:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
                     ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:352:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
                                  ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:353:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
                     ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:353:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
                                  ^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:29: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                             ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:42: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                                          ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:52: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                                                    ^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
CMakeFiles/otclient.dir/build.make:110: recipe for target 'CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 
Can you try to remove and recreate the build directory and then compile again

rm -R /home/binny/Documents/otclient/build & mkdir /home/binny/Documents/otclient/build

Also can you run the command below, then upload the info.txt to pastebin.com and post the link here?
(uname -a;env;dpkg -l;ldd --version;ld --verbose) > info.txt

Edit:

I searched on github project bug tracker and found this: OpenSSL API Change · Issue #837 · edubart/otclient · GitHub

I guess you need to wait for developers to fix api changes of openssl or downgrade the libssl package to an older version like in Debian Jessie.
 
Last edited:
uname -a;env;dpkg -l;ldd --version;ld --verbose
hastebin

Oh i really wanted to play tibia in linux by otclient =[

So what u said is Debian stop to support libssl1.0? And i can not compile without this?
It isn't just:
apt-get install libssl1.0-dev
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libssl-doc
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
  libssl-dev
The following NEW packages will be installed:
  libssl1.0-dev
0 upgraded, 1 newly installed, 1 to remove and 8 not upgraded.
Need to get 0 B/1,559 kB of archives.
After this operation, 407 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 192778 files and directories currently installed.)
Removing libssl-dev:amd64 (1.1.0f-3) ...
Selecting previously unselected package libssl1.0-dev:amd64.
(Reading database ... 192693 files and directories currently installed.)
Preparing to unpack .../libssl1.0-dev_1.0.2l-2_amd64.deb ...
Unpacking libssl1.0-dev:amd64 (1.0.2l-2) ...
Setting up libssl1.0-dev:amd64 (1.0.2l-2) ...

How to downgrade the libssl package to an older version like in Debian Jessie?
Is this a bad stuff to do?
 
I compiled OTClient (debug version) on Debian Stretch with these steps below:

1. First make sure you have compiled physfs (to fix an error later when compiling)

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

2. Install and replace libphysfs

make install
cp /usr/local/lib/libphysfs.so.2.0.3 /usr/lib/x86_64-linux-gnu/

3. Create local directories for ssl files

mkdir -p /usr/local/ssl/lib /usr/local/ssl/include

4. Download libssl package:

wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.1t-1+deb8u6_amd64.deb

5. Extract files

ar -x libssl-dev_1.0.1t-1+deb8u6_amd64.deb
tar xf data.tar.xz

6. Copy the files to local directory:

cp usr/lib/libcrypto.so /usr/local/ssl/lib/
cp -R usr/include/openssl /usr/local/ssl/include/

7. Copy libssl.so from a older libssl package to the local ssl directory:
(there is no shared library file (libssl.so) included in package from step 5 but I had 1.0.2 installed via apt-get)

cp /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 /usr/local/ssl/lib/
ln -s /usr/local/ssl/lib/libssl.so.1.0.2 /usr/local/ssl/lib/libssl.so

8. Compile otclient:

cd otclient
rm -R build # if exists
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
 
Last edited:
First thank you so much to still helping me and others debian stretch users...

It won't work...
Is this a problem?

cp usr/lib/libcrypto.so /usr/local/ssl/lib/
Code:
cp: cannot stat 'usr/lib/libcrypto.so': No such file or directory

Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
CMake Error: The source directory "/home/binny/Documents/otclient/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
 
Is this a problem?

cp usr/lib/libcrypto.so /usr/local/ssl/lib/
Code:
cp: cannot stat 'usr/lib/libcrypto.so': No such file or directory

Change to the same directory where you extracted the data.tar.xz from step 5, it contains a directory called usr where libcrypto.so is located.

Code:
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
CMake Error: The source directory "/home/binny/Documents/otclient/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

You were in the wrong directory. you must create the build directory in the otclient directory and use the cmake command from /home/binny/Documents/otclient/build not in src.
 
Last edited:
You mean this?

Code:
root@brabbt:/home/binny# ls
control.tar.gz                 Music
data.tar.xz                 physfs-2.0.3
debian-binary                 physfs-2.0.3.tar.bz2
Desktop                     Pictures
Documents                 PlayOnLinux's virtual drives
Downloads                 Public
GTA San Andreas User Files         random.dat
jagexcache                 server_log.txt
jagex_cl_oldschool_LIVE.dat         Templates
jagex_cl_runescape_LIVE.dat         usr
libssl-dev_1.0.1t-1+deb8u6_amd64.deb  Videos
root@brabbt:/home/binny#


Code:
root@brabbt:/home/binny# tar xf data.tar.xz
root@brabbt:/home/binny# cp usr/lib/libcrypto.so /usr/local/ssl/lib/
cp: cannot stat 'usr/lib/libcrypto.so': No such file or directory
root@brabbt:/home/binny#


---

I'm sorry about the cd build stuff
I was compiling RME and was on RME so i bugged myserlf...
Compiling on build i got a error too, i think is because the first problem

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 -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -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;/usr/local/ssl/lib/libcrypto.so  
-- 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  
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find GLEW (missing: GLEW_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  src/framework/cmake/FindGLEW.cmake:15 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/framework/CMakeLists.txt:313 (find_package)
  CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
See also "/home/binny/Documents/otclient/build/CMakeFiles/CMakeOutput.log".
See also "/home/binny/Documents/otclient/build/CMakeFiles/CMakeError.log".
 
You don't have libglew-dev installed

apt-get install libglew-dev

Also it seems libcrypto was found so you can continue with compiling.
 
You don't have libglew-dev installed

apt-get install libglew-dev

Also it seems libcrypto was found so you can continue with compiling.

A lot warnings when compile that wont when i used ubuntu:

cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -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 -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -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;/usr/local/ssl/lib/libcrypto.so  
-- 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
root@brabbt:/home/binny/Documents/otclient/build#

make
hastebin
 
Note that the CMake output states that the variable OPENSSL_ROOT_DIR wasn't used. Sorry I can't help more, I don't have a Debian system.
 
@binny that's strange I didn't get that error. You can remove the option from the cmake command.

cmake -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_CRYPTO_LIBRARY=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/libcrypto.so -DOPENSSL_LIBRARY=/usr/local/ssl/lib/libssl.so -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include -DUSE_STATIC_LIBS=OFF ..
 
Back
Top