Ir para conteúdo

Featured Replies

  • 1 month later...
  • Respostas 40
  • Visualizações 19.8k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Compilando OTCLient no Windows   Antes de mais nada, gostaria de dizer que eu não fiz o tutorial, apenas traduzi para português. Link de post original >> https://github.com/edubart/otc

  • Show gato, sempre contribuindo, reputado. Abraços.

  • luanluciano93
    luanluciano93

    Ótimo tutorial, se der tempo vou postar um de compilar pela visual studio ... reputado.

Posted Images

Postado

Configure a variável PATH do sistema

Agora que todas as ferramentas necessárias estão instaladas, você deve configurar a variável PATH do sistema, para fazer o CMake encontrar o MinGW32 e as bibliotecas instaladas, vá para:

 

Painel de controle -> Sistema -> Avançado -> Variáveis de Ambiente

 

Nao entendi essa parte, aonde acho esse diretorio "Painel de controle -> Sistema -> Avançado -> Variáveis de Ambiente" em qual programa? ou é no windows. Fiquei confuso.

 

 

 

Gere o arquivo de projeto do CodeBlocks

Rode o CMake-gui.exe localizado em \Program Files\CMake 2.8\bin, e especifique o diretório onde você colocou o código fonte do OTCLient, e onde você quer que os arquivos do projeto sejam criados. Clique em configure, seleciona CodeBlocks - MinGW Makefiles, como gerador e gere os arquivos do projeto.

 

 

nessa parte deu este erro

post-103802-0-15427500-1430947044_thumb.

 

 

Compilando

Abra o arquivo de projeto do CodeBlocks que foi gerado (**otclient.cbp**) pelo CMake com o CodeBlocks. Para compilar você deve primeiro configurar a pasta do MinGW32, indo em Settings > Compiler And Debugger... > Toolchain Executables.

Tenha certeza de copiar os arquivos Tibia.dat e Tibia.spr dentro da pasta /data/things// antes de rodar o cliente.

 

 

 

Acho que nessa parte eu nao cheguei por causa do erro ocorrido acima

 

A parte do PATH eu ja achei onde é. so que o meu CMAKE nao é o 2.8 e a pasta que ele esta instalada nao tem 2.8 nela. 

Entao Mudei de:

 

 

 

C:\Arquivos de Programas\CMake 2.8\bin;C:\MinGW\bin;C:\MinGW\lib;C:\MinGW\include;C:\Program Files\CMake 2.8

 

Para

 

 

 

C:\Program Files\CMake\bin;C:\MinGW\bin;C:\MinGW\lib;C:\MinGW\include;C:\Program Files\CMake

 

 

Mas o erro da imagem persiste. =(

post-103802-0-15427500-1430947044_thumb.

Editado por andreoam (veja o histórico de edições)

  • 2 months later...
  • 2 weeks later...
Postado

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: C:/OTCLIENT BUILD/CMakeFiles/3.3.1/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: C:/OTCLIENT BUILD/CMakeFiles/3.3.1/CMakeCXXCompiler.cmake
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name
  if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler
  name if it is in the PATH.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred! 

não consegui configurar o caminho no cmake-gui.exe , deu esse erro aqui.

Uso windows 10 Pro x64

Editado por brubeiro (veja o histórico de edições)

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