• 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!

Compiling Help to compile OTClient on Debian 9

supergt

Active Member
Joined
May 11, 2017
Messages
78
Reaction score
28
I trying to compile OTClient on Debian 9, but it's won't work (it's not only me, there is others topics about compile otc in debian 9)

What i did?

1 Installed everything was necessary:
Code:
root@ldebian:/home/ldebian/Documents# apt-get install -y build-essential cmake git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
cmake is already the newest version (3.7.2-1).
git-core is already the newest version (1:2.11.0-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.



root@ldebian:/home/ldebian/Documents# apt-get install -y libboost-all-dev libphysfs-dev libssl-dev liblua5.1-0-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libboost-all-dev is already the newest version (1.62.0.1).
libphysfs-dev is already the newest version (2.0.3-5).
liblua5.1-0-dev is already the newest version (5.1.5-8.1+b2).
libssl-dev is already the newest version (1.1.0f-3+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.



root@ldebian:/home/ldebian/Documents# apt-get install -y libglew-dev libvorbis-dev libopenal-dev zlib1g-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libglew-dev is already the newest version (2.0.0-3+b1).
libvorbis-dev is already the newest version (1.3.5-4).
libopenal-dev is already the newest version (1:1.17.2-4+b2).
zlib1g-dev is already the newest version (1:1.2.8.dfsg-5).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@ldebian:/home/ldebian/Documents#

2 Download and start to compile:
Code:
root@ldebian:/home/ldebian/Documents# git clone git://github.com/edubart/otclient.git
Cloning into 'otclient'...
remote: Counting objects: 34992, done.
remote: Total 34992 (delta 0), reused 0 (delta 0), pack-reused 34992
Receiving objects: 100% (34992/34992), 19.54 MiB | 8.15 MiB/s, done.
Resolving deltas: 100% (27859/27859), done.


root@ldebian:/home/ldebian/Documents# cd otclient && mkdir build && cd build && cmake .. && make
-- 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: ON
-- Use precompiled header: OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ldebian/Documents/otclient/build
Scanning dependencies of target otclient

Code:
-- Build files have been written to: /home/ldebian/Documents/otclient/build
Scanning dependencies of target otclient
[  0%] Building CXX object CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.o
[  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
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:329: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:330: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:333: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:333: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:333: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:338: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:339: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:340: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:343: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:343: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:343: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:344: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:344: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:344: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:355: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:355: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:356: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:356: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:358: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:358: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/ldebian/Documents/otclient/src/framework/util/crypt.cpp:358: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/ldebian/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/ldebian/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
 
Back
Top