Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building problems #1270

Closed
MaxMeyer-git opened this issue Nov 1, 2020 · 6 comments
Closed

Building problems #1270

MaxMeyer-git opened this issue Nov 1, 2020 · 6 comments

Comments

@MaxMeyer-git
Copy link

MaxMeyer-git commented Nov 1, 2020

Пытаюсь установить по инструкции использую ваш скрипт
https://tdlib.github.io/td/build.html?language=Java
Windows и java все зависимости стоят все ок.
на этапе:
cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td -DTD_ENABLE_JNI=ON -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..
Пробовал ставить разные версии этого MSVC не помогает.
Подскажите пожалуйста что не так.
фэйлит с ошибкой:

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        01-Nov-20     12:05                build
-- Building for: Visual Studio 16 2019
-- The CXX compiler identification is MSVC 19.27.29112.0
-- The C compiler identification is MSVC 19.27.29112.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/CMakeTestCXXCompiler.cmake:53 (message):
  The C++ compiler

    "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: R:/Java/TelegramTDLib/v2/td/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_e87f0.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

      Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29112 for x64
      Copyright (C) Microsoft Corporation.  All rights reserved.
      testCXXCompiler.cxx
      cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_e87f0.dir\Debug\\" /Fd"cmTC_e87f0.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx
      cmTC_e87f0.vcxproj -> R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\Debug\cmTC_e87f0.exe
      '_VCPKG_PWSH_PATH-NOTFOUND' is not recognized as an internal or external command,
      operable program or batch file.
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "setlocal [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: _VCPKG_PWSH_PATH-NOTFOUND -noprofile -executionpolicy Bypass -file R:/Java/TelegramTDLib/v2/td/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary R:/Java/TelegramTDLib/v2/td/build/CMakeFiles/CMakeTmp/Debug/cmTC_e87f0.exe -installedDir R:/Java/TelegramTDLib/v2/td/vcpkg/installed/x64-windows/debug/bin -OutVariable out [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmEnd [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmErrorLevel [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: exit /b %1 [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :cmDone [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 9009. [R:\Java\TelegramTDLib\v2\td\build\CMakeFiles\CMakeTmp\cmTC_e87f0.vcxproj]





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
See also "R:/Java/TelegramTDLib/v2/td/build/CMakeFiles/CMakeOutput.log".
See also "R:/Java/TelegramTDLib/v2/td/build/CMakeFiles/CMakeError.log".
@levlam
Copy link
Contributor

levlam commented Nov 1, 2020

You encountered the microsoft/vcpkg#14283 issue. You need to use an older vcpkg version or apply one of proposed there fixes.

@AquariusHunters
Copy link

Can I get the latest compiled dll file? I acted according to the description that came with the project, but unfortunately, I did not succeed in getting what I wanted, yes, he made a mistake.

@AquariusHunters
Copy link

@levlam
When I reached the build project, I got a built project, but it seemed to have some problems. Because when i execute
cmake -A Win32 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake ..
cmake --build. --target install --config Release
When I did not get a tdlib directory as I expected, I hope I can get the dll I need in this directory

@levlam
Copy link
Contributor

levlam commented Nov 4, 2020

@MaxMeyer-git Have you succeeded? The issue was fixed in vcpkg, so you can update it to proceed with the building.

@levlam
Copy link
Contributor

levlam commented Nov 4, 2020

@AquariusHunters We don't provide precompiled DLLs for Windows. What errors do you receive when building TDLib?

@AquariusHunters
Copy link

@levlam It may be related to my network, or I missed something that needs to be downloaded. I plan to execute it again to see if the previous error occurs

@levlam levlam closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants