Ir para conteúdo
  • Cadastre-se

Suporte Erro ao compilar TFS no MSVC


Posts Recomendados

Ola pessoal, estou tentando compilar o TFS 1.5 Downgrade para 8.60 atraves do MSVC 2022, ao tentar compilar da o seguinte erro:
 

Spoiler

1>------ Build started: Project: theforgottenserver, Configuration: Release x64 ------
1>otpch.cpp
1>C:\Users\TKSx\OneDrive\Área de Trabalho\Comp\TFS-1.5-Downgrades-8.60\TFS-1.5-Downgrades-8.60\src\otpch.h(42,10): fatal  error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
1>Done building project "theforgottenserver.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 23:55 and took 01,369 seconds ==========

 

Fiz o download do MSVC, GitDash, TFS-SDK-3.2, e de varios boosts que tentei, ao fazer o seguinte procedimento no GitDash:
 

Spoiler

cd C:/

git clone https://github.com/Microsoft/vcpkg

cd vcpkg

./bootstrap-vcpkg.bat

./vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp

./vcpkg integrate install
 

Ao chegar em ./bootstrap-vcpkg.bat o GitDash nao consegue realizar o procedimento corretamente, alguem poderia me ajudar ?

Tentei de diversas formas mas o mesmo erro sempre persiste, atualmente meu servidor utiliza TFS 0.4, consigo compilar sem nenhum problema no MSVC 2010, porem, as limitações do TFS 0.4 estão me fazendo precisar atualizar, se alguem souber como corrigir esses erros eu agradeço !

Tutoriais utilizados :

Compiling on Windows (vcpkg) · otland/forgottenserver Wiki · GitHub

Compiling on Windows · otland/forgottenserver Wiki · GitHub

Compilando TFS 1.3 com vídeo-aula - Tutoriais Infraestrutura & Proteção - Tibia King - Tudo sobre Tibia, OTServ e Bots!

Compilar TFS 1.3 Vcpkg - Tutoriais Infraestrutura & Proteção - Tibia King - Tudo sobre Tibia, OTServ e Bots!

 

O que acontece no Powershell:

Spoiler

O Windows PowerShell
Copyright (C) Microsoft Corporation. Todos os direitos reservados.

Instale o PowerShell mais recente para obter novos recursos e aprimoramentos! https://aka.ms/PSWindows

PS C:\WINDOWS\system32> cd C:/
PS C:\> git clone https://github.com/Microsoft/vcpkg
Cloning into 'vcpkg'...
remote: Enumerating objects: 203974, done.
remote: Counting objects: 100% (203974/203974), done.
remote: Compressing objects: 100% (70955/70955), done.
remote: Total 203974 (delta 132862), reused 203536 (delta 132697), pack-reused 0
Receiving objects: 100% (203974/203974), 63.09 MiB | 8.62 MiB/s, done.
Resolving deltas: 100% (132862/132862), done.
Updating files: 100% (10523/10523), done.
PS C:\> cd vcpkg
PS C:\vcpkg> ./bootstrap-vcpkg.bat
Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2023-08-09/vcpkg.exe -> C:\vcpkg\vcpkg.exe... done.
Validating signature... done.

vcpkg package management program version 2023-08-09-9990a4c9026811a312cb2af78bf77f3d9d288416

See LICENSE.txt for license information.
Telemetry
---------
vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md
PS C:\vcpkg> ./vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp
Computing installation plan...
A suitable version of cmake was not found (required v3.27.1) Downloading portable cmake 3.27.1...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-windows-i386.zip->C:\vcpkg\downloads\cmake-3.27.1-windows-i386.zip
Downloading https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-windows-i386.zip
Extracting cmake...
The following packages will be built and installed:
  * boost-algorithm:x64-windows -> 1.82.0#2
  * boost-align:x64-windows -> 1.82.0#2
  * boost-array:x64-windows -> 1.82.0#2
    boost-asio:x64-windows -> 1.82.0#3
  * boost-assert:x64-windows -> 1.82.0#2
  * boost-atomic:x64-windows -> 1.82.0#3
  * boost-bind:x64-windows -> 1.82.0#2
  * boost-build:x64-windows -> 1.82.0#2
  * boost-chrono:x64-windows -> 1.82.0#2
  * boost-concept-check:x64-windows -> 1.82.0#2
  * boost-config:x64-windows -> 1.82.0#2
  * boost-container:x64-windows -> 1.82.0#2
  * boost-container-hash:x64-windows -> 1.82.0#2
  * boost-context:x64-windows -> 1.82.0#2
  * boost-conversion:x64-windows -> 1.82.0#2
  * boost-core:x64-windows -> 1.82.0#2
  * boost-coroutine:x64-windows -> 1.82.0#2
  * boost-date-time:x64-windows -> 1.82.0#2
  * boost-describe:x64-windows -> 1.82.0#2
  * boost-detail:x64-windows -> 1.82.0#2
  * boost-dynamic-bitset:x64-windows -> 1.82.0#2
  * boost-exception:x64-windows -> 1.82.0#2
    boost-filesystem:x64-windows -> 1.82.0#2
  * boost-function:x64-windows -> 1.82.0#2
  * boost-function-types:x64-windows -> 1.82.0#2
  * boost-functional:x64-windows -> 1.82.0#2
  * boost-fusion:x64-windows -> 1.82.0#2
  * boost-integer:x64-windows -> 1.82.0#2
  * boost-intrusive:x64-windows -> 1.82.0#2
  * boost-io:x64-windows -> 1.82.0#2
    boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows -> 1.82.0#2
  * boost-iterator:x64-windows -> 1.82.0#2
  * boost-lexical-cast:x64-windows -> 1.82.0#2
    boost-lockfree:x64-windows -> 1.82.0#2
  * boost-modular-build-helper:x64-windows -> 1.82.0#4
  * boost-move:x64-windows -> 1.82.0#2
  * boost-mp11:x64-windows -> 1.82.0#2
  * boost-mpl:x64-windows -> 1.82.0#2
  * boost-numeric-conversion:x64-windows -> 1.82.0#2
  * boost-optional:x64-windows -> 1.82.0#2
  * boost-parameter:x64-windows -> 1.82.0#2
  * boost-pool:x64-windows -> 1.82.0#2
  * boost-predef:x64-windows -> 1.82.0#2
  * boost-preprocessor:x64-windows -> 1.82.0#2
  * boost-random:x64-windows -> 1.82.0#2
  * boost-range:x64-windows -> 1.82.0#2
  * boost-ratio:x64-windows -> 1.82.0#2
  * boost-rational:x64-windows -> 1.82.0#2
  * boost-regex:x64-windows -> 1.82.0#2
  * boost-smart-ptr:x64-windows -> 1.82.0#2
  * boost-static-assert:x64-windows -> 1.82.0#2
    boost-system:x64-windows -> 1.82.0#2
  * boost-throw-exception:x64-windows -> 1.82.0#2
  * boost-tokenizer:x64-windows -> 1.82.0#2
  * boost-tuple:x64-windows -> 1.82.0#2
  * boost-type-index:x64-windows -> 1.82.0#2
  * boost-type-traits:x64-windows -> 1.82.0#2
  * boost-typeof:x64-windows -> 1.82.0#2
  * boost-uninstall:x64-windows -> 1.82.0#2
  * boost-unordered:x64-windows -> 1.82.0#2
  * boost-utility:x64-windows -> 1.82.0#2
    boost-variant:x64-windows -> 1.82.0#2
  * boost-variant2:x64-windows -> 1.82.0#2
  * boost-vcpkg-helpers:x64-windows -> 1.82.0#2
  * boost-winapi:x64-windows -> 1.82.0#2
  * bzip2[core,tool]:x64-windows -> 1.0.8#5
    cryptopp:x64-windows -> 8.8.0
  * liblzma:x64-windows -> 5.4.3#1
    libmariadb[core,schannel,ssl]:x64-windows -> 3.3.1#3
    luajit:x64-windows -> 2023-01-04#2
    pugixml:x64-windows -> 1.13.0
  * vcpkg-cmake:x64-windows -> 2023-05-04
  * vcpkg-cmake-config:x64-windows -> 2022-02-06#1
  * vcpkg-cmake-get-vars:x64-windows -> 2023-03-02
  * zlib:x64-windows -> 1.3
  * zstd:x64-windows -> 1.5.5
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.11) Downloading portable powershell-core 7.2.11...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v7.2.11/PowerShell-7.2.11-win-x86.zip->C:\vcpkg\downloads\PowerShell-7.2.11-win-x86.zip
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.11/PowerShell-7.2.11-win-x86.zip
Extracting powershell-core...
A suitable version of 7zip was not found (required v23.1.0) Downloading portable 7zip 23.1.0...
Downloading 7zip...
https://www.7-zip.org/a/7z2301-extra.7z->C:\vcpkg\downloads\7z2301-extra.7z
Downloading https://www.7-zip.org/a/7z2301-extra.7z
Extracting 7zip...
Restored 19 package(s) from C:\Users\Marina Jatobá\AppData\Local\vcpkg\archives in 24 s. Use --debug to see more details.
Installing 1/76 boost-uninstall:x64-windows...
Elapsed time to handle boost-uninstall:x64-windows: 48 ms
Installing 2/76 boost-vcpkg-helpers:x64-windows...
Elapsed time to handle boost-vcpkg-helpers:x64-windows: 46.4 ms
Installing 3/76 boost-config:x64-windows...
Elapsed time to handle boost-config:x64-windows: 349 ms
Installing 4/76 boost-assert:x64-windows...
Elapsed time to handle boost-assert:x64-windows: 40.2 ms
Installing 5/76 boost-static-assert:x64-windows...
Elapsed time to handle boost-static-assert:x64-windows: 53.1 ms
Installing 6/76 boost-throw-exception:x64-windows...
Elapsed time to handle boost-throw-exception:x64-windows: 96.5 ms
Installing 7/76 boost-core:x64-windows...
Elapsed time to handle boost-core:x64-windows: 88.9 ms
Installing 8/76 boost-array:x64-windows...
Elapsed time to handle boost-array:x64-windows: 52.7 ms
Installing 9/76 boost-bind:x64-windows...
Elapsed time to handle boost-bind:x64-windows: 59.5 ms
Installing 10/76 boost-preprocessor:x64-windows...
Elapsed time to handle boost-preprocessor:x64-windows: 446 ms
Installing 11/76 boost-type-traits:x64-windows...
Elapsed time to handle boost-type-traits:x64-windows: 309 ms
Installing 12/76 boost-concept-check:x64-windows...
Elapsed time to handle boost-concept-check:x64-windows: 56 ms
Installing 13/76 boost-build:x64-windows...
Elapsed time to handle boost-build:x64-windows: 2 s
Installing 14/76 vcpkg-cmake:x64-windows...
Elapsed time to handle vcpkg-cmake:x64-windows: 129 ms
Installing 15/76 vcpkg-cmake-get-vars:x64-windows...
Elapsed time to handle vcpkg-cmake-get-vars:x64-windows: 85.8 ms
Installing 16/76 boost-modular-build-helper:x64-windows...
Elapsed time to handle boost-modular-build-helper:x64-windows: 116 ms
Installing 17/76 boost-move:x64-windows...
Elapsed time to handle boost-move:x64-windows: 283 ms
Installing 18/76 boost-smart-ptr:x64-windows...
Elapsed time to handle boost-smart-ptr:x64-windows: 285 ms
Installing 19/76 boost-tuple:x64-windows...
Elapsed time to handle boost-tuple:x64-windows: 56.8 ms
Installing 20/76 boost-exception:x64-windows...
Building boost-exception:x64-windows...
-- Downloading https://github.com/boostorg/exception/archive/boost-1.82.0.tar.gz -> boostorg-exception-boost-1.82.0.tar.gz...
-- Extracting source C:/vcpkg/downloads/boostorg-exception-boost-1.82.0.tar.gz
-- Using source at C:/vcpkg/buildtrees/boost-exception/src/ost-1.82.0-efb4d34eb1.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9
    Working Directory: C:/vcpkg/buildtrees/boost-exception/x64-windows-dbg
    See logs for more information:
      C:\vcpkg\buildtrees\boost-exception\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  installed/x64-windows/share/boost-build/boost-modular-build.cmake:139 (vcpkg_cmake_install)
  ports/boost-exception/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:147 (include)


error: building boost-exception:x64-windows failed with: BUILD_FAILED
Elapsed time to handle boost-exception:x64-windows: 24 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-exception
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?title=[boost-exception]+Build+error&body=Copy+issue+body+from+C%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

PS C:\vcpkg> ./vcpkg integrate install
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"

All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.
PS C:\vcpkg>

 

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 braianlomas
      Como faço para corrigir esse problema para meu cliente, eu uso o tfs 0.3.6  
      Quero resolver esse problema que tenho no meu cliente, como e onde posso resolver?  
      Eu uso o tfs 0.3.6, não tenho as fontes do cliente, se você puder me dar eu vou amá-las para sempre  
       

       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      Canary 2.3.6
      Qual o motivo deste tópico? 
      Queria fazer com que os players não pudessem mexer no aleta sio, pois, agora os mesmos estão conseguindo mexer nos itens
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      canary para o cliente 13.16
      Qual o motivo deste tópico? 
      Não consigo encontrar onde ajusta
      to com o problema no 13.16  o exausted, por exemplo os kinas era pra combar exori, erori gran e exori min, porém não ta indo ta dando exausted o char ta soltando magia ou runa e não consegue usar as potions
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por Andersontatuador
      Olá galera da TK, me chamo Anderson estou procurando alguém profissional em otservs e site.
      Já tenho um servidor o site e o cliente preciso só de uma pessoal competente, que esteja empenhado a trabalhar,
      não quero nada de graça, pois nessa onda fui mais roubado do quer eu pagar um profissional.
      caso alguém se interesse entrar em contato comigo através do whatsapp
      82 9 9304-9462
       
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por A.Mokk
      Boa tarde pessoal, fiz a modificação nas source para adicionar os atributos de Life Leech, Mana Leech, Life Absorb e Mana Absorb do tutorial abaixo:
       
      Utilizo TFS 0.4 compilei normalmente sem nenhum erro, consegui adicionar os atributos aos itens em Items.xml e cadastrei os itens em Movements.xml, consigo visualizar o atributo ao dar look no item porem o mesmo nao funciona... Ele simplesmente nao faz nada, o item diz que ta com o novo atributo ao dar look porem nao acontece nada... alguem poderia ajudar ?
       
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo