Ir para conteúdo

Featured Replies

Postado

Como compilar o OTClient no Debian 9, já estou tentando a um tempo, se preciso até pago pra quem me ajudar!

 

As dependencias estão instaladas:


root@tduarte:/home/leo# apt-get install -y build-essential cmake git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git-core is already the newest version (1:2.11.0-3+deb9u2).
build-essential is already the newest version (12.3).
cmake is already the newest version (3.7.2-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@tduarte:/home/leo# 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
libssl-dev is already the newest version (1.1.0f-3+deb9u1).
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).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@tduarte:/home/leo# 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.


 

Mas quando eu tento compilar...


root@tduarte:/home/leo/Documents/otclient/build# make
[  1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o
/home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/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/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/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
root@tduarte:/home/leo/Documents/otclient/build#

 

  • Respostas 5
  • Visualizações 1.2k
  • Created
  • Última resposta

Top Posters In This Topic

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo