Witam,
mam potrzebę zbudowania tej biblioteki w wersji 1.78.0, ze źródeł.
Oto co robię:
git clone https://github.com/boostorg/boost.git Boost-1.78.0
cd Boost-1.78.0
rem wersja 1.78.0 => a07c63c9e56f4d3b5bc904e25a7ad6f900728dbf refs/tags/boost-1.78.0
git checkout a07c63c9e56f4d3b5bc904e25a7ad6f900728dbf
Do zbudowania używam CMake, wszystko zgodnie z opisem ze strony:
https://pcl.readthedocs.io/projects/tutorials/en/pcl-1.12.0/compiling_pcl_dependencies_windows.html#compiling-pcl-dependencies-windows
Używam CMake-gui, oto wynik konfiguracji:
https://u.pcloud.link/publink/show?code=XZ01aPVZo5BexC2vbd5P5k2ytkJNoXioX9C7
Skrypt CMake wygląda tak:
cmake_minimum_required(VERSION 3.5...3.16)
# The default build type must be set before project()
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR AND NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
project(Boost VERSION 1.78.0 LANGUAGES CXX)
set(BOOST_SUPERPROJECT_VERSION ${PROJECT_VERSION})
set(BOOST_SUPERPROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR})
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/tools/cmake/include)
include(BoostRoot)
W ostatniej linijce jest:
include(BoostRoot)
natomiast w pobranych z repozytorium źródłach nie ma ani pliku ani katalogu: BoostRoot.
Log wygląda tak:
The system is: Windows - 10.0.22621 - AMD64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine 16.11.2+f32259642 dla platformy .NET Framework
Copyright (C) Microsoft Corporation. Wszelkie prawa zastrzeľone.
Kompilacja rozpocz©a si© 07.03.2023 12:47:01.
Projekt "C:\Tmp\Boost-1.78.0\build\CMakeFiles\3.25.1\CompilerIdCXX\CompilerIdCXX.vcxproj" w w©«le 1 (domylne elementy docelowe).
PrepareForBuild:
Tworzenie katalogu "Debug\".
Tworzenie katalogu "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Trwa tworzenie "Debug\CompilerIdCXX.tlog\unsuccessfulbuild", poniewaľ okrelono "AlwaysCreate".
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> C:\Tmp\Boost-1.78.0\build\CMakeFiles\3.25.1\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Usuwanie pliku "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Modyfikowanie "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Kompilowanie projektu "C:\Tmp\Boost-1.78.0\build\CMakeFiles\3.25.1\CompilerIdCXX\CompilerIdCXX.vcxproj" wykonane (domylne elementy docelowe).
Kompilacja powioda si©.
Ostrzeľenia: 0
Liczba b©d˘w: 0
Czas, kt˘ry upynĄ: 00:00:00.65
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"
The CXX compiler identification is MSVC, found in "C:/Tmp/Boost-1.78.0/build/CMakeFiles/3.25.1/CompilerIdCXX/CompilerIdCXX.exe"
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Tmp/Boost-1.78.0/build/CMakeFiles/CMakeScratch/TryCompile-pbiial
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_5d9de.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine 16.11.2+f32259642 dla platformy .NET Framework
Copyright (C) Microsoft Corporation. Wszelkie prawa zastrzeľone.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30148 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCXXCompilerABI.cpp
cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_5d9de.dir\Debug\\" /Fd"cmTC_5d9de.dir\Debug\vc142.pdb" /external:W1 /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.25\Modules\CMakeCXXCompilerABI.cpp"
cmTC_5d9de.vcxproj -> C:\Tmp\Boost-1.78.0\build\CMakeFiles\CMakeScratch\TryCompile-pbiial\Debug\cmTC_5d9de.exe
Proszę o jakieś sugestie jak proces budowy tej biblioteki powinien wyglądać.
Pozdrawiam.