Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Ola galera, estou tentando compilar essa source so que ta dando erro no Tools.cp, alguém poderia me ajuda?

 

Segue abaixo o erro

Spoiler

Compiler: Default compiler
Building Makefile: "C:\Users\Tatsune\Desktop\Servidor NTO B&W\Source uint_16\dev-cpp\Makefile.win"
Executing  make...
make.exe -f "C:\Users\Tatsune\Desktop\Servidor NTO B&W\Source uint_16\dev-cpp\Makefile.win" all
g++.exe -c ../tools.cpp -o Obj/tools.o -I"C:/Users/Tatsune/Documents/Stian's Repack Dev-Cpp/include"  -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D__GROUND_CACHE__ -D__USE_SQLITE__ -D__USE_MYSQL__ -D__CONSOLE__ -D__WAR_SYSTEM__  
../tools.cpp:23:27: openssl/plain.h: No such file or directory
../tools.cpp:24:25: openssl/md5.h: No such file or directory
../tools.cpp: In function `std::string transformToMD5(std::string, bool)':
../tools.cpp:33: error: `MD5_CTX' was not declared in this scope
../tools.cpp:33: error: expected `;' before "c"
../tools.cpp:34: error: `c' was not declared in this scope
../tools.cpp:34: error: `MD5_Init' was not declared in this scope
../tools.cpp:35: error: `MD5_Update' was not declared in this scope
../tools.cpp:37: error: `MD5_DIGEST_LENGTH' was not declared in this scope
../tools.cpp:38: error: `md' was not declared in this scope
../tools.cpp:38: error: `MD5_Final' was not declared in this scope
../tools.cpp:42: error: `output' was not declared in this scope
../tools.cpp:45: error: `output' was not declared in this scope
../tools.cpp:47: error: `output' was not declared in this scope
../tools.cpp: In function `std::string transformToSHA1(std::string, bool)':
../tools.cpp:52: error: `SHA_CTX' was not declared in this scope
../tools.cpp:52: error: expected `;' before "c"
../tools.cpp:53: error: `c' was not declared in this scope
../tools.cpp:53: error: `SHA1_Init' was not declared in this scope
../tools.cpp:54: error: `SHA1_Update' was not declared in this scope
../tools.cpp:56: error: `SHA_DIGEST_LENGTH' was not declared in this scope
../tools.cpp:57: error: `md' was not declared in this scope
../tools.cpp:57: error: `SHA1_Final' was not declared in this scope
../tools.cpp:61: error: `output' was not declared in this scope
../tools.cpp:64: error: `output' was not declared in this scope
../tools.cpp:66: error: `output' was not declared in this scope
../tools.cpp: In function `std::string transformToSHA256(std::string, bool)':
../tools.cpp:71: error: `SHA256_CTX' was not declared in this scope
../tools.cpp:71: error: expected `;' before "c"
../tools.cpp:72: error: `c' was not declared in this scope
../tools.cpp:72: error: `SHA256_Init' was not declared in this scope
../tools.cpp:73: error: `SHA256_Update' was not declared in this scope
../tools.cpp:75: error: `SHA256_DIGEST_LENGTH' was not declared in this scope
../tools.cpp:76: error: `md' was not declared in this scope
../tools.cpp:76: error: `SHA256_Final' was not declared in this scope
../tools.cpp:80: error: `output' was not declared in this scope
../tools.cpp:83: error: `output' was not declared in this scope
../tools.cpp:85: error: `output' was not declared in this scope
../tools.cpp: In function `std::string transformToSHA512(std::string, bool)':
../tools.cpp:90: error: `SHA512_CTX' was not declared in this scope
../tools.cpp:90: error: expected `;' before "c"
../tools.cpp:91: error: `c' was not declared in this scope
../tools.cpp:91: error: `SHA512_Init' was not declared in this scope
../tools.cpp:92: error: `SHA512_Update' was not declared in this scope
../tools.cpp:94: error: `SHA512_DIGEST_LENGTH' was not declared in this scope
../tools.cpp:95: error: `md' was not declared in this scope
../tools.cpp:95: error: `SHA512_Final' was not declared in this scope
../tools.cpp:99: error: `output' was not declared in this scope
../tools.cpp:102: error: `output' was not declared in this scope
../tools.cpp:104: error: `output' was not declared in this scope
make.exe: *** [Obj/tools.o] Error 1
Execution terminated

A parte que esta dando erro

Spoiler

// OpenTibia - an opensource roleplaying game
////////////////////////////////////////////////////////////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////
#include "otpch.h"
#include "tools.h"

#include <iostream>
#include <iomanip>

#include <openssl/plain.h>
#include <openssl/md5.h>

#include "vocation.h"
#include "configmanager.h"

extern ConfigManager g_config;

std::string transformToMD5(std::string plainText, bool upperCase)
{
    MD5_CTX c;
    MD5_Init(&c);
    MD5_Update(&c, plainText.c_str(), plainText.length());

    uint8_t md[MD5_DIGEST_LENGTH];
    MD5_Final(md, &c);

    char output[MD5_DIGEST_LENGTH * 2 + 1] = "";
    for(int32_t i = 0; i < static_cast<int32_t>(sizeof(md)); i++)
        sprintf(output, "%s%.2X", output, md);

    if(upperCase)
        return std::string(output);

    return asLowerCaseString(std::string(output));
}

std::string transformToSHA1(std::string plainText, bool upperCase)
{
    SHA_CTX c;
    SHA1_Init(&c);
    SHA1_Update(&c, plainText.c_str(), plainText.length());

    uint8_t md[SHA_DIGEST_LENGTH];
    SHA1_Final(md, &c);

    char output[SHA_DIGEST_LENGTH * 2 + 1] = "";
    for(int32_t i = 0; i < static_cast<int32_t>(sizeof(md)); i++)
        sprintf(output, "%s%.2X", output, md);

    if(upperCase)
        return std::string(output);

    return asLowerCaseString(std::string(output));
}
 

 

                                                 Projects are being developed....

Link para o post
Compartilhar em outros sites
2 minutos atrás, apollo333 disse:

qual tfs esta tentando compilar e qual a versão usara do linux?

oloko to compilando em windows 7

tinha baixado uma base da Nto bw e ela veio com 2 Sources e uma delas tava com effects estendido e queria compila-la

                                                 Projects are being developed....

Link para o post
Compartilhar em outros sites

@apollo333 

Dboa. o pior que e so essa parte que ta me enroscando....

up?? alguem??

                                                 Projects are being developed....

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Muvuka
      Alguem tem anti-nuker igual a esse 
       

       
    • Por Muvuka
      [SQLite] -=[TFS]=- 0.4 8.60 Alguem faz apk mobile pra mim ip: dexsoft.ddns.net
       
      pra mim
       
      https://www.mediafire.com/file/5klqnyy6k7jda0u/OTClientV8.rar/file
       
      TA TUDO AI
    • Por yuriowns
      Salve rapazes, estou precisando de um client próprio para o meu servidor 7.4, preciso que algum programador experiente e com referências faça um client do jeito que eu procuro. Responda aqui para fazermos um orçamento, obrigado!

      Não sei se estou no lugar certo, se não me desculpem e peço que movam por gentileza!
    • Por paulo thush
      Pessoal to com um grande problema, estou com um servidor TFS 1.4x 10.98, recentemente começou dar um problema, sempre quando falava "trade" com o npc dava um erros, com qual quer npc, o erro e o seguinte.
       
       
      me falaram que o problema e nas sourcer que precisava mudar umas coisas me passaram um link no github esse aqui 
      https://github.com/otland/forgottenserver/pull/3996/files
       
      porem eu vi vídeos no youtube ensinando a compilar, já vi muitos tópicos como compilar a sourcer, ai quando vou compilar da esse erro
      já tentei instalar, desinstala muitas coisas, alterar também não vai, minha sourcer e essa 
      https://github.com/otland/forgottenserver
       
       
      Alguém poderia me ajuda com esse erro, ou ate compilar 100% as sourcer. os Tópicos que eu tentei para compilar e esse daqui, se não poder o link me desculpe.
      https://forums.otserv.com.br/index.php?/forums/topic/169234-windowsvc2019-compilando-sources-tfs-14-vcpkg/
       
      alguém me da uma luz por favor kkk
    • Por Ryzek
      Uso tfs 0.4 trunk3884 bem simples.
      Queria acrescentar magic effects para 255 pois o meu só vai até 69. Encontrei um tópico que falava sobre porém parece ter sido removido, não consigo acessar!
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo