CMake finds boost but nmake fails to link - boost

I am having a issue where nmake is not linking the boost library cmake is providing. I am not exactly sure why it is doing this.
cmake_minimum_required(VERSION 2.8)
project(BoostLibTest)
set(Boost_USE_STATIC_LIBS TRUE)
set(Boost_MULTITHREADED TRUE)
set(Boost_DEBUG TRUE)
find_package(Boost COMPONENTS regex)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
add_executable(Example example.cpp)
target_link_libraries(Example ${Boost_LIBRARIES})
CMake output:
-- Building for: NMake Makefiles
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1500
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 64 bit
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:362 ] Boost not in cache
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:365 ] _boost_TEST_VERSIONS = 1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:367 ] Boost_USE_MULTITHREADED = TRUE
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:369 ] Boost_USE_STATIC_LIBS = TRUE
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:428 ] Declared as CMake or Environmental Variables:
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:430 ] BOOST_ROOT =
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:432 ] BOOST_INCLUDEDIR =
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:434 ] BOOST_LIBRARYDIR =
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:436 ] _boost_TEST_VERSIONS = 1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:485 ] Include debugging info:
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:487 ] _boost_INCLUDE_SEARCH_DIRS = C:/boost/include;C:/boost;C:\Program Files (x86)/boost/include;C:\Program Files (x86)/boost;/sw/local/include
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:489 ] _boost_PATH_SUFFIXES = boost-1_40_0;boost_1_40_0;boost-1_40;boost_1_40;boost-1_39_0;boost_1_39_0;boost-1_39;boost_1_39;boost-1_38_0;boost_1_38_0;boost-1_38;boost_1_38;boost-1_37_0;boost_1_37_0;boost-1_37;boost_1_37;boost-1_36_1;boost_1_36_1;boost-1_36_0;boost_1_36_0;boost-1_36;boost_1_36;boost-1_35_1;boost_1_35_1;boost-1_35_0;boost_1_35_0;boost-1_35;boost_1_35;boost-1_34_1;boost_1_34_1;boost-1_34_0;boost_1_34_0;boost-1_34;boost_1_34;boost-1_33_1;boost_1_33_1;boost-1_33_0;boost_1_33_0;boost-1_33;boost_1_33
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:513 ] location of version.hpp: C:/Program Files (x86)/boost/boost_1_40/boost/version.hpp
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:532 ] version.hpp reveals boost 1.40.0
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:623 ] guessed _boost_COMPILER = -vc90
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:633 ] _boost_MULTITHREADED = -mt
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:650 ] _boost_STATIC_TAG = -s
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:652 ] _boost_ABI_TAG = gd
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:685 ] _boost_LIBRARIES_SEARCH_DIRS = C:/Program Files (x86)/boost/boost_1_40/lib;C:/Program Files (x86)/boost/boost_1_40/../lib;C:/boost/lib;C:/boost;C:\Program Files (x86)/boost/boost_1_40_0/lib;C:\Program Files (x86)/boost/boost_1_40/lib;C:\Program Files (x86)/boost/lib;C:\Program Files (x86)/boost;/sw/local/lib
-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:814 ] Boost_FOUND = TRUE
-- Boost version: 1.40.0
-- Found the following Boost libraries:
-- regex
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/blewisjr/Documents/BoostLibTest/bin
NMake output:
Scanning dependencies of target Example
[100%] Building CXX object CMakeFiles/Example.dir/example.cpp.obj
example.cpp
Linking CXX executable Example.exe
example.cpp.obj : error LNK2019: unresolved external symbol "private: class boost::basic_regex > > & __cdecl boost::basic_regex > >::do_assign(char const *,char const *,unsigned int)" (?do_assign#?$basic_regex#DU?$regex_traits#DV?$w32_regex_traits#D#boost###boost###boost##AEAAAEAV12#PEBD0I#Z) referenced in function "public: class boost::basic_regex > > & __cdecl boost::basic_regex > >::assign(char const *,char const *,unsigned int)" (?assign#?$basic_regex#DU?$regex_traits#DV?$w32_regex_traits#D#boost###boost###boost##QEAAAEAV12#PEBD0I#Z)
example.cpp.obj : error LNK2019: unresolved external symbol "public: bool __cdecl boost::re_detail::perl_matcher,class std::allocator >,class std::allocator,class std::allocator > > >,struct boost::regex_traits > >::match(void)" (?match#?$perl_matcher#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##V?$allocator#U?$sub_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std###boost###2#U?$regex_traits#DV?$w32_regex_traits#D#boost###boost###re_detail#boost##QEAA_NXZ) referenced in function "bool __cdecl boost::regex_match,class std::allocator >,class std::allocator,class std::allocator > > >,char,struct boost::regex_traits > >(class std::_String_const_iterator,class std::allocator >,class std::_String_const_iterator,class std::allocator >,class boost::match_results,class std::allocator >,class std::allocator,class std::allocator > > > > &,class boost::basic_regex > > const &,enum boost::regex_constants::_match_flags)" (??$regex_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##V?$allocator#U?$sub_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std###boost###2#DU?$regex_traits#DV?$w32_regex_traits#D#boost###boost###boost##YA_NV?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##0AEAV?$match_results#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##V?$allocator#U?$sub_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std###boost###2##0#AEBV?$basic_regex#DU?$regex_traits#DV?$w32_regex_traits#D#boost###boost###0#W4_match_flags#regex_constants#0##Z)
example.cpp.obj : error LNK2019: unresolved external symbol "private: void __cdecl boost::re_detail::perl_matcher,class std::allocator >,class std::allocator,class std::allocator > > >,struct boost::regex_traits > >::construct_init(class boost::basic_regex > > const &,enum boost::regex_constants::_match_flags)" (?construct_init#?$perl_matcher#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##V?$allocator#U?$sub_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std###boost###2#U?$regex_traits#DV?$w32_regex_traits#D#boost###boost###re_detail#boost##AEAAXAEBV?$basic_regex#DU?$regex_traits#DV?$w32_regex_traits#D#boost###boost###3#W4_match_flags#regex_constants#3##Z) referenced in function "public: __cdecl boost::re_detail::perl_matcher,class std::allocator >,class std::allocator,class std::allocator > > >,struct boost::regex_traits > >::perl_matcher,class std::allocator >,class std::allocator,class std::allocator > > >,struct boost::regex_traits > >(class std::_String_const_iterator,class std::allocator >,class std::_String_const_iterator,class std::allocator >,class boost::match_results,class std::allocator >,class std::allocator,class std::allocator > > > > &,class boost::basic_regex > > const &,enum boost::regex_constants::_match_flags,class std::_String_const_iterator,class std::allocator >)" (??0?$perl_matcher#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##V?$allocator#U?$sub_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std###boost###2#U?$regex_traits#DV?$w32_regex_traits#D#boost###boost###re_detail#boost##QEAA#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##0AEAV?$match_results#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std##V?$allocator#U?$sub_match#V?$_String_const_iterator#DU?$char_traits#D#std##V?$allocator#D#2##std###boost###2##2#AEBV?$basic_regex#DU?$regex_traits#DV?$w32_regex_traits#D#boost###boost###2#W4_match_flags#regex_constants#2#0#Z)
Example.exe : fatal error LNK1120: 3 unresolved externals
LINK Pass 1 failed. with 2
After the failed link NMake is throwing fatal error U1077

Turns out I was targeting x64 with boost libs only built for x86 issues solved by switching compiler to x86

Related

Can't find Boost using Visual Studio 2019 and GitHub actions

Trying to install Boost as static library, so I can include it in my binary to not need to install it on system. But it seems to failed of this error below:
Run cmake . -G "Visual Studio 16 2019" -B build -DSTATIC=true
-DDO_TESTS=OFF -DCMAKE_C_FLAGS="-fassociative-math" -DCMAKE_CXX_FLAGS="-fassociative-math" -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=C:\boost_1_74_0\boost_1_74_0
-- The C compiler identification is MSVC 19.29.30147.0
-- The CXX compiler identification is MSVC 19.29.30147.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
- skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
- skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE CMake Warning (dev) at CMakeLists.txt:43 (set): implicitly converting 'TYPE' to 'STRING' type.
-- FORCE_USE_HEAP: ENABLED This warning is for project developers. Use -Wno-dev to suppress it.
-- HW AES: ENABLED
-- OPTIMIZED_ARM_MULTIPLICATION: ENABLED
-- Found Git: C:/Program Files/Git/bin/git.exe CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: system filesystem thread date_time chrono regex serialization program_options) (found version "1.74.0") Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args) CMakeLists.txt:270 (find_package)
-- Configuring incomplete, errors occurred! See also "D:/a/kryptokrona/kryptokrona/build/CMakeFiles/CMakeOutput.log". See also "D:/a/kryptokrona/kryptokrona/build/CMakeFiles/CMakeError.log". Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist. Switch: ALL_BUILD.vcxproj Error: Process completed with exit code 1.
So this is how I set it up in CMake:
# Go get us some static BOOST libraries
set(Boost_NO_BOOST_CMAKE ON)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
# Checker if we build on GitHub Actions and building for Visual C++
if(DEFINED ENV{CI} AND MSVC)
set(Boost_USE_STATIC_RUNTIME ON)
set(Boost_NO_SYSTEM_PATHS ON)
else()
set(Boost_USE_STATIC_RUNTIME ON) # ON was before
endif()
In GitHub workflow:
# install dependencies
- name: Install Windows 2019 Dependencies
if: matrix.config.os == 'windows-2019'
uses: microsoft/setup-msbuild#v1.1
with:
msbuild-architecture: x64
- name: Install Windows Boost
if: matrix.config.os == 'windows-2019'
run: |
Invoke-WebRequest -Uri https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip -OutFile C:\boost_1_74_0.zip
Expand-Archive C:\boost_1_74_0.zip -DestinationPath C:\boost_1_74_0
Set-Location C:\boost_1_74_0\boost_1_74_0\tools\build
C:\boost_1_74_0\boost_1_74_0\tools\build\bootstrap.bat
.\b2 toolset=msvc variant=release optimization=space threading=multi link=static address-model=64 install
- name: Build Windows 2019
if: matrix.config.os == 'windows-2019'
run: |
cmake . -G "Visual Studio 16 2019" -B build -DSTATIC=true -DDO_TESTS=OFF -DCMAKE_C_FLAGS="-fassociative-math" -DCMAKE_CXX_FLAGS="-fassociative-math" -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=C:\boost_1_74_0\boost_1_74_0
cmake --build ./build --config Release
How can I make this work to load Boost so it loads Boosts? It works on macOS and Ubuntu since I install them system wide first. But then compile it as static.
After passing debug options on for Boost this is the output:
- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1689 ] _boost_TEST_VERSIONS = "1.80.0;1.80;1.79.0;1.79;1.78.0;1.78;1.77.0;1.77;1.76.0;1.76;1.75.0;1.75;1.74.0;1.74;1.73.0;1.73;1.72.0;1.72;1.71.0;1.71;1.70.0;1.70;1.69.0;1.69;1.68.0;1.68;1.67.0;1.67;1.66.0;1.66;1.65.1;1.65.0;1.65;1.64.0;1.64;1.63.0;1.63;1.62.0;1.62;1.61.0;1.61;1.60.0;1.60;1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1690 ] Boost_USE_MULTITHREADED = "ON"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1691 ] Boost_USE_STATIC_LIBS = "ON"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1692 ] Boost_USE_STATIC_RUNTIME = "ON"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1693 ] Boost_ADDITIONAL_VERSIONS = <unset>
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1694 ] Boost_NO_SYSTEM_PATHS = "ON"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1726 ] BOOST_ROOT = "C:\boost_1_74_0\boost_1_74_0"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1727 ] ENV{BOOST_ROOT} = <unset>
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1728 ] BOOST_INCLUDEDIR = <unset>
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1729 ] ENV{BOOST_INCLUDEDIR} = <unset>
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1730 ] BOOST_LIBRARYDIR = <unset>
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1731 ] ENV{BOOST_LIBRARYDIR} = <unset>
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1803 ] _boost_INCLUDE_SEARCH_DIRS = "C:\boost_1_74_0\boost_1_74_0/include;C:\boost_1_74_0\boost_1_74_0;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1804 ] _boost_PATH_SUFFIXES = "boost-1_80_0;boost_1_80_0;boost/boost-1_80_0;boost/boost_1_80_0;boost-1_80;boost_1_80;boost/boost-1_80;boost/boost_1_80;boost-1_79_0;boost_1_79_0;boost/boost-1_79_0;boost/boost_1_79_0;boost-1_79;boost_1_79;boost/boost-1_79;boost/boost_1_79;boost-1_78_0;boost_1_78_0;boost/boost-1_78_0;boost/boost_1_78_0;boost-1_78;boost_1_78;boost/boost-1_78;boost/boost_1_78;boost-1_77_0;boost_1_77_0;boost/boost-1_77_0;boost/boost_1_77_0;boost-1_77;boost_1_77;boost/boost-1_77;boost/boost_1_77;boost-1_76_0;boost_1_76_0;boost/boost-1_76_0;boost/boost_1_76_0;boost-1_76;boost_1_76;boost/boost-1_76;boost/boost_1_76;boost-1_75_0;boost_1_75_0;boost/boost-1_75_0;boost/boost_1_75_0;boost-1_75;boost_1_75;boost/boost-1_75;boost/boost_1_75;boost-1_74_0;boost_1_74_0;boost/boost-1_74_0;boost/boost_1_74_0;boost-1_74;boost_1_74;boost/boost-1_74;boost/boost_1_74;boost-1_73_0;boost_1_73_0;boost/boost-1_73_0;boost/boost_1_73_0;boost-1_73;boost_1_7...
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1819 ] location of version.hpp: C:/boost_1_74_0/boost_1_74_0/boost/version.hpp
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1859 ] Boost_VERSION = "107400"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1860 ] Boost_VERSION_STRING = "1.74.0"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1861 ] Boost_VERSION_MACRO = "107400"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1862 ] Boost_VERSION_MAJOR = "1"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1863 ] Boost_VERSION_MINOR = "74"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1864 ] Boost_VERSION_PATCH = "0"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1865 ] Boost_VERSION_COUNT = "3"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1889 ] Boost_LIB_PREFIX = "lib"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1890 ] Boost_NAMESPACE = "boost"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:953 ] _boost_COMPILER = "-vc142;-vc141;-vc140" (guessed)
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:1926 ] _boost_MULTITHREADED = "-mt"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2004 ] _boost_ARCHITECTURE_TAG = "-x64" (detected)
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2008 ] _boost_RELEASE_ABI_TAG = "-s"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2009 ] _boost_DEBUG_ABI_TAG = "-sgd"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2069 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "C:\boost_1_74_0\boost_1_74_0/lib;C:\boost_1_74_0\boost_1_74_0/stage/lib;C:\boost_1_74_0\boost_1_74_0/lib64-msvc-14.2;C:\boost_1_74_0\boost_1_74_0/lib64-msvc-14.1;C:\boost_1_74_0\boost_1_74_0/lib64-msvc-14.0;C:/boost_1_74_0/boost_1_74_0/lib;C:/boost_1_74_0/boost_1_74_0/../lib;C:/boost_1_74_0/boost_1_74_0/stage/lib;C:/boost_1_74_0/boost_1_74_0/../lib64-msvc-14.2;C:/boost_1_74_0/boost_1_74_0/../lib64-msvc-14.1;C:/boost_1_74_0/boost_1_74_0/../lib64-msvc-14.0;C:/boost_1_74_0/boost_1_74_0/lib64-msvc-14.2;C:/boost_1_74_0/boost_1_74_0/lib64-msvc-14.1;C:/boost_1_74_0/boost_1_74_0/lib64-msvc-14.0;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2070 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "C:\boost_1_74_0\boost_1_74_0/lib;C:\boost_1_74_0\boost_1_74_0/stage/lib;C:\boost_1_74_0\boost_1_74_0/lib64-msvc-14.2;C:\boost_1_74_0\boost_1_74_0/lib64-msvc-14.1;C:\boost_1_74_0\boost_1_74_0/lib64-msvc-14.0;C:/boost_1_74_0/boost_1_74_0/lib;C:/boost_1_74_0/boost_1_74_0/../lib;C:/boost_1_74_0/boost_1_74_0/stage/lib;C:/boost_1_74_0/boost_1_74_0/../lib64-msvc-14.2;C:/boost_1_74_0/boost_1_74_0/../lib64-msvc-14.1;C:/boost_1_74_0/boost_1_74_0/../lib64-msvc-14.0;C:/boost_1_74_0/boost_1_74_0/lib64-msvc-14.2;C:/boost_1_74_0/boost_1_74_0/lib64-msvc-14.1;C:/boost_1_74_0/boost_1_74_0/lib64-msvc-14.0;NO_CMAKE_SYSTEM_PATH;NO_SYSTEM_ENVIRONMENT_PATH"
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for SYSTEM_LIBRARY_RELEASE: libboost_system-vc142-mt-s-x64-1_74;libboost_system-vc142-mt-s-x64;libboost_system-vc142-mt-s;libboost_system-vc141-mt-s-x64-1_74;libboost_system-vc141-mt-s-x64;libboost_system-vc141-mt-s;libboost_system-vc140-mt-s-x64-1_74;libboost_system-vc140-mt-s-x64;libboost_system-vc140-mt-s;libboost_system-mt-s-x64-1_74;libboost_system-mt-s-x64;libboost_system-mt-s;libboost_system-mt;libboost_system
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for SYSTEM_LIBRARY_DEBUG: libboost_system-vc142-mt-sgd-x64-1_74;libboost_system-vc142-mt-sgd-x64;libboost_system-vc142-mt-sgd;libboost_system-vc141-mt-sgd-x64-1_74;libboost_system-vc141-mt-sgd-x64;libboost_system-vc141-mt-sgd;libboost_system-vc140-mt-sgd-x64-1_74;libboost_system-vc140-mt-sgd-x64;libboost_system-vc140-mt-sgd;libboost_system-mt-sgd-x64-1_74;libboost_system-mt-sgd-x64;libboost_system-mt-sgd;libboost_system-mt;libboost_system
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for FILESYSTEM_LIBRARY_RELEASE: libboost_filesystem-vc142-mt-s-x64-1_74;libboost_filesystem-vc142-mt-s-x64;libboost_filesystem-vc142-mt-s;libboost_filesystem-vc141-mt-s-x64-1_74;libboost_filesystem-vc141-mt-s-x64;libboost_filesystem-vc141-mt-s;libboost_filesystem-vc140-mt-s-x64-1_74;libboost_filesystem-vc140-mt-s-x64;libboost_filesystem-vc140-mt-s;libboost_filesystem-mt-s-x64-1_74;libboost_filesystem-mt-s-x64;libboost_filesystem-mt-s;libboost_filesystem-mt;libboost_filesystem
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for FILESYSTEM_LIBRARY_DEBUG: libboost_filesystem-vc142-mt-sgd-x64-1_74;libboost_filesystem-vc142-mt-sgd-x64;libboost_filesystem-vc142-mt-sgd;libboost_filesystem-vc141-mt-sgd-x64-1_74;libboost_filesystem-vc141-mt-sgd-x64;libboost_filesystem-vc141-mt-sgd;libboost_filesystem-vc140-mt-sgd-x64-1_74;libboost_filesystem-vc140-mt-sgd-x64;libboost_filesystem-vc140-mt-sgd;libboost_filesystem-mt-sgd-x64-1_74;libboost_filesystem-mt-sgd-x64;libboost_filesystem-mt-sgd;libboost_filesystem-mt;libboost_filesystem
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for THREAD_LIBRARY_RELEASE: libboost_thread-vc142-mt-s-x64-1_74;libboost_thread-vc142-mt-s-x64;libboost_thread-vc142-mt-s;libboost_thread-vc141-mt-s-x64-1_74;libboost_thread-vc141-mt-s-x64;libboost_thread-vc141-mt-s;libboost_thread-vc140-mt-s-x64-1_74;libboost_thread-vc140-mt-s-x64;libboost_thread-vc140-mt-s;libboost_thread-mt-s-x64-1_74;libboost_thread-mt-s-x64;libboost_thread-mt-s;libboost_thread-mt;libboost_thread
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for THREAD_LIBRARY_DEBUG: libboost_thread-vc142-mt-sgd-x64-1_74;libboost_thread-vc142-mt-sgd-x64;libboost_thread-vc142-mt-sgd;libboost_thread-vc141-mt-sgd-x64-1_74;libboost_thread-vc141-mt-sgd-x64;libboost_thread-vc141-mt-sgd;libboost_thread-vc140-mt-sgd-x64-1_74;libboost_thread-vc140-mt-sgd-x64;libboost_thread-vc140-mt-sgd;libboost_thread-mt-sgd-x64-1_74;libboost_thread-mt-sgd-x64;libboost_thread-mt-sgd;libboost_thread-mt;libboost_thread
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for DATE_TIME_LIBRARY_RELEASE: libboost_date_time-vc142-mt-s-x64-1_74;libboost_date_time-vc142-mt-s-x64;libboost_date_time-vc142-mt-s;libboost_date_time-vc141-mt-s-x64-1_74;libboost_date_time-vc141-mt-s-x64;libboost_date_time-vc141-mt-s;libboost_date_time-vc140-mt-s-x64-1_74;libboost_date_time-vc140-mt-s-x64;libboost_date_time-vc140-mt-s;libboost_date_time-mt-s-x64-1_74;libboost_date_time-mt-s-x64;libboost_date_time-mt-s;libboost_date_time-mt;libboost_date_time
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for DATE_TIME_LIBRARY_DEBUG: libboost_date_time-vc142-mt-sgd-x64-1_74;libboost_date_time-vc142-mt-sgd-x64;libboost_date_time-vc142-mt-sgd;libboost_date_time-vc141-mt-sgd-x64-1_74;libboost_date_time-vc141-mt-sgd-x64;libboost_date_time-vc141-mt-sgd;libboost_date_time-vc140-mt-sgd-x64-1_74;libboost_date_time-vc140-mt-sgd-x64;libboost_date_time-vc140-mt-sgd;libboost_date_time-mt-sgd-x64-1_74;libboost_date_time-mt-sgd-x64;libboost_date_time-mt-sgd;libboost_date_time-mt;libboost_date_time
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for CHRONO_LIBRARY_RELEASE: libboost_chrono-vc142-mt-s-x64-1_74;libboost_chrono-vc142-mt-s-x64;libboost_chrono-vc142-mt-s;libboost_chrono-vc141-mt-s-x64-1_74;libboost_chrono-vc141-mt-s-x64;libboost_chrono-vc141-mt-s;libboost_chrono-vc140-mt-s-x64-1_74;libboost_chrono-vc140-mt-s-x64;libboost_chrono-vc140-mt-s;libboost_chrono-mt-s-x64-1_74;libboost_chrono-mt-s-x64;libboost_chrono-mt-s;libboost_chrono-mt;libboost_chrono
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for CHRONO_LIBRARY_DEBUG: libboost_chrono-vc142-mt-sgd-x64-1_74;libboost_chrono-vc142-mt-sgd-x64;libboost_chrono-vc142-mt-sgd;libboost_chrono-vc141-mt-sgd-x64-1_74;libboost_chrono-vc141-mt-sgd-x64;libboost_chrono-vc141-mt-sgd;libboost_chrono-vc140-mt-sgd-x64-1_74;libboost_chrono-vc140-mt-sgd-x64;libboost_chrono-vc140-mt-sgd;libboost_chrono-mt-sgd-x64-1_74;libboost_chrono-mt-sgd-x64;libboost_chrono-mt-sgd;libboost_chrono-mt;libboost_chrono
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for REGEX_LIBRARY_RELEASE: libboost_regex-vc142-mt-s-x64-1_74;libboost_regex-vc142-mt-s-x64;libboost_regex-vc142-mt-s;libboost_regex-vc141-mt-s-x64-1_74;libboost_regex-vc141-mt-s-x64;libboost_regex-vc141-mt-s;libboost_regex-vc140-mt-s-x64-1_74;libboost_regex-vc140-mt-s-x64;libboost_regex-vc140-mt-s;libboost_regex-mt-s-x64-1_74;libboost_regex-mt-s-x64;libboost_regex-mt-s;libboost_regex-mt;libboost_regex
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for REGEX_LIBRARY_DEBUG: libboost_regex-vc142-mt-sgd-x64-1_74;libboost_regex-vc142-mt-sgd-x64;libboost_regex-vc142-mt-sgd;libboost_regex-vc141-mt-sgd-x64-1_74;libboost_regex-vc141-mt-sgd-x64;libboost_regex-vc141-mt-sgd;libboost_regex-vc140-mt-sgd-x64-1_74;libboost_regex-vc140-mt-sgd-x64;libboost_regex-vc140-mt-sgd;libboost_regex-mt-sgd-x64-1_74;libboost_regex-mt-sgd-x64;libboost_regex-mt-sgd;libboost_regex-mt;libboost_regex
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for SERIALIZATION_LIBRARY_RELEASE: libboost_serialization-vc142-mt-s-x64-1_74;libboost_serialization-vc142-mt-s-x64;libboost_serialization-vc142-mt-s;libboost_serialization-vc141-mt-s-x64-1_74;libboost_serialization-vc141-mt-s-x64;libboost_serialization-vc141-mt-s;libboost_serialization-vc140-mt-s-x64-1_74;libboost_serialization-vc140-mt-s-x64;libboost_serialization-vc140-mt-s;libboost_serialization-mt-s-x64-1_74;libboost_serialization-mt-s-x64;libboost_serialization-mt-s;libboost_serialization-mt;libboost_serialization
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for SERIALIZATION_LIBRARY_DEBUG: libboost_serialization-vc142-mt-sgd-x64-1_74;libboost_serialization-vc142-mt-sgd-x64;libboost_serialization-vc142-mt-sgd;libboost_serialization-vc141-mt-sgd-x64-1_74;libboost_serialization-vc141-mt-sgd-x64;libboost_serialization-vc141-mt-sgd;libboost_serialization-vc140-mt-sgd-x64-1_74;libboost_serialization-vc140-mt-sgd-x64;libboost_serialization-vc140-mt-sgd;libboost_serialization-mt-sgd-x64-1_74;libboost_serialization-mt-sgd-x64;libboost_serialization-mt-sgd;libboost_serialization-mt;libboost_serialization
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: libboost_program_options-vc142-mt-s-x64-1_74;libboost_program_options-vc142-mt-s-x64;libboost_program_options-vc142-mt-s;libboost_program_options-vc141-mt-s-x64-1_74;libboost_program_options-vc141-mt-s-x64;libboost_program_options-vc141-mt-s;libboost_program_options-vc140-mt-s-x64-1_74;libboost_program_options-vc140-mt-s-x64;libboost_program_options-vc140-mt-s;libboost_program_options-mt-s-x64-1_74;libboost_program_options-mt-s-x64;libboost_program_options-mt-s;libboost_program_options-mt;libboost_program_options
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: libboost_program_options-vc142-mt-sgd-x64-1_74;libboost_program_options-vc142-mt-sgd-x64;libboost_program_options-vc142-mt-sgd;libboost_program_options-vc141-mt-sgd-x64-1_74;libboost_program_options-vc141-mt-sgd-x64;libboost_program_options-vc141-mt-sgd;libboost_program_options-vc140-mt-sgd-x64-1_74;libboost_program_options-vc140-mt-sgd-x64;libboost_program_options-vc140-mt-sgd;libboost_program_options-mt-sgd-x64-1_74;libboost_program_options-mt-sgd-x64;libboost_program_options-mt-sgd;libboost_program_options-mt;libboost_program_options
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2255 ] Searching for ATOMIC_LIBRARY_RELEASE: libboost_atomic-vc142-mt-s-x64-1_74;libboost_atomic-vc142-mt-s-x64;libboost_atomic-vc142-mt-s;libboost_atomic-vc141-mt-s-x64-1_74;libboost_atomic-vc141-mt-s-x64;libboost_atomic-vc141-mt-s;libboost_atomic-vc140-mt-s-x64-1_74;libboost_atomic-vc140-mt-s-x64;libboost_atomic-vc140-mt-s;libboost_atomic-mt-s-x64-1_74;libboost_atomic-mt-s-x64;libboost_atomic-mt-s;libboost_atomic-mt;libboost_atomic
-- [ C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2310 ] Searching for ATOMIC_LIBRARY_DEBUG: libboost_atomic-vc142-mt-sgd-x64-1_74;libboost_atomic-vc142-mt-sgd-x64;libboost_atomic-vc142-mt-sgd;libboost_atomic-vc141-mt-sgd-x64-1_74;libboost_atomic-vc141-mt-sgd-x64;libboost_atomic-vc141-mt-sgd;libboost_atomic-vc140-mt-sgd-x64-1_74;libboost_atomic-vc140-mt-sgd-x64;libboost_atomic-vc140-mt-sgd;libboost_atomic-mt-sgd-x64-1_74;libboost_atomic-mt-sgd-x64;libboost_atomic-mt-sgd;libboost_atomic-mt;libboost_atomic
CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Boost (missing: system filesystem thread date_time chrono
regex serialization program_options) (found version "1.74.0")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
-- Configuring incomplete, errors occurred!
C:/Program Files/CMake/share/cmake-3.25/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args)
See also "D:/a/kryptokrona/kryptokrona/build/CMakeFiles/CMakeOutput.log".
CMakeLists.txt:270 (find_package)
See also "D:/a/kryptokrona/kryptokrona/build/CMakeFiles/CMakeError.log".
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: ALL_BUILD.vcxproj
Error: Process completed with exit code 1.

Kaldi installation on Majave: Compiler error

I am tryting to install Kaldi, for which I installed relevant things (such as gcc, automakers, autoconf, etc...).
However, because of compiling errors, I could not go further...
The error message was as follows...
(base) C-MacBook-Pro:tools ninackjeong$ extras/check_dependencies.sh
extras/check_dependencies.sh: all OK.
(base) C-MacBook-Pro:tools ninackjeong$ make -j 6
extras/check_dependencies.sh
cd sph2pipe_v2.5/ && \
x86_64-apple-darwin13.4.0-clang -o sph2pipe *.c -lm
if [ -d "" ]; then \
cp -p "/cub-1.8.0.zip" .; \
else \
wget -T 10 -t 3 -O cub-1.8.0.zip https://github.com/NVlabs/cub/archive/1.8.0.zip; \
fi
--2020-02-03 09:44:29-- https://github.com/NVlabs/cub/archive/1.8.0.zip
Resolving github.com (github.com)... extras/check_dependencies.sh: all OK.
tar xojf sctk-2.4.10-20151007-1312Z.tar.bz2 || \
tar --exclude '*NONE*html' -xvojf sctk-2.4.10-20151007-1312Z.tar.bz2
cd openfst-1.6.7/ && \
./configure --prefix=`pwd` --enable-static --enable-shared --enable-far --enable-ngram-fsts CXX="x86_64-apple-darwin13.4.0-clang++" CXXFLAGS="-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 " LDFLAGS="-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs" LIBS="-ldl"
192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... file_headers.c:149:24: warning: format specifies type 'int' but the argument has type 'off_t' (aka 'long long') [-Wformat]
inpname, sampcount, statbuf.st_size );
^~~~~~~~~~~~~~~
file_headers.c:579:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
ConvertToIeeeExtended(num, bytes)
^
file_headers.c:629:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
3 warnings generated.
connected.
shorten_x.c:187:29: warning: too many arguments in call to 'word_get'
gbuffer = word_get(fpin);
~~~~~~~~ ^
shorten_x.c:325:22: warning: implicit declaration of function 'pcm2alaw' is invalid in C99 [-Wimplicit-function-declaration]
*writebufp++ = pcm2alaw( ulaw2pcm[data0[i]] );
^
shorten_x.c:381:24: warning: implicit declaration of function 'pcm2ulaw' is invalid in C99 [-Wimplicit-function-declaration]
*writebufp++ = pcm2ulaw( data0[i] );
^
HTTP request sent, awaiting response... 3 warnings generated.
sph2pipe.c:191:18: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration]
while (( i = getopt( ac, av, "daupf:c:t:s:h:" )) != EOF )
^
sph2pipe.c:530:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:545:8: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:547:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~
sph2pipe.c:547:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
wptr = cptr = outbuf;
^ ~~~~~~~~~~~~~
sph2pipe.c:561:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:568:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
sph2pipe.c:616:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cptr = inpbuf;
^ ~~~~~~
8 warnings generated.
ld: warning: ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd
ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture x86_64:
"___sprintf_chk", referenced from:
_writeSphHeader in file_headers-d8b2d2.o
"___stack_chk_fail", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
_writeAIFFHeader in file_headers-d8b2d2.o
"___stack_chk_guard", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
_writeAIFFHeader in file_headers-d8b2d2.o
"___stderrp", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
_writeAUHeader in file_headers-d8b2d2.o
_writeRIFFHeader in file_headers-d8b2d2.o
_writeAIFFHeader in file_headers-d8b2d2.o
_word_get in shorten_x-0926aa.o
_init_offset in shorten_x-0926aa.o
...
"___stdoutp", referenced from:
_doConversion in sph2pipe-035023.o
"___strncpy_chk", referenced from:
_writeSphHeader in file_headers-d8b2d2.o
"_exit", referenced from:
_writeSphHeader in file_headers-d8b2d2.o
_writeAUHeader in file_headers-d8b2d2.o
_writeRIFFHeader in file_headers-d8b2d2.o
_writeAIFFHeader in file_headers-d8b2d2.o
_fwrite_type in shorten_x-0926aa.o
_shortenXtract in shorten_x-0926aa.o
_main in sph2pipe-035023.o
...
"_fclose", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_doConversion in sph2pipe-035023.o
"_fileno", referenced from:
_readSphHeader in file_headers-d8b2d2.o
"_floor", referenced from:
_ConvertToIeeeExtended in file_headers-d8b2d2.o
"_fopen", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_doConversion in sph2pipe-035023.o
"_fprintf", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
_writeAUHeader in file_headers-d8b2d2.o
_writeRIFFHeader in file_headers-d8b2d2.o
_writeAIFFHeader in file_headers-d8b2d2.o
_word_get in shorten_x-0926aa.o
_init_offset in shorten_x-0926aa.o
...
"_fputs", referenced from:
_main in sph2pipe-035023.o
"_fread", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_word_get in shorten_x-0926aa.o
_copySamples in sph2pipe-035023.o
"_free", referenced from:
_fwrite_type in shorten_x-0926aa.o
"_frexp", referenced from:
_ConvertToIeeeExtended in file_headers-d8b2d2.o
"_fseek", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_copySamples in sph2pipe-035023.o
"_fstat$INODE64", referenced from:
_readSphHeader in file_headers-d8b2d2.o
"_fwrite", referenced from:
_writeSphHeader in file_headers-d8b2d2.o
_writeAUHeader in file_headers-d8b2d2.o
_writeRIFFHeader in file_headers-d8b2d2.o
_writeAIFFHeader in file_headers-d8b2d2.o
_fwrite_type in shorten_x-0926aa.o
_copySamples in sph2pipe-035023.o
(maybe you meant: _fwrite_type)
"_getc", referenced from:
_shortenXtract in shorten_x-0926aa.o
"_getopt", referenced from:
_getUserOpts in sph2pipe-035023.o
"_index", referenced from:
_getUserOpts in sph2pipe-035023.o
"_ldexp", referenced from:
_ConvertToIeeeExtended in file_headers-d8b2d2.o
"_malloc", referenced from:
_long2d in shorten_x-0926aa.o
_fwrite_type in shorten_x-0926aa.o
_shortenXtract in shorten_x-0926aa.o
_main in sph2pipe-035023.o
"_optarg", referenced from:
_getUserOpts in sph2pipe-035023.o
"_optind", referenced from:
_getUserOpts in sph2pipe-035023.o
"_putc", referenced from:
_shortenXtract in shorten_x-0926aa.o
"_sscanf", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
_getUserOpts in sph2pipe-035023.o
"_strcmp", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
_copylong in file_headers-d8b2d2.o
_copyshort in file_headers-d8b2d2.o
_fwrite_type in shorten_x-0926aa.o
_getUserOpts in sph2pipe-035023.o
_doConversion in sph2pipe-035023.o
...
"_strdup", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_getUserOpts in sph2pipe-035023.o
"_strlen", referenced from:
_readSphHeader in file_headers-d8b2d2.o
"_strncasecmp", referenced from:
_getUserOpts in sph2pipe-035023.o
"_strncmp", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
"_strtok", referenced from:
_readSphHeader in file_headers-d8b2d2.o
_writeSphHeader in file_headers-d8b2d2.o
"_swab", referenced from:
_copyshort in file_headers-d8b2d2.o
_fwrite_type in shorten_x-0926aa.o
_copySamples in sph2pipe-035023.o
ld: symbol(s) not found for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sph2pipe_v2.5/sph2pipe] Error 1
make: *** Waiting for unfinished jobs....
302 Found
Location: https://codeload.github.com/NVlabs/cub/zip/1.8.0 [following]
--2020-02-03 09:44:30-- https://codeload.github.com/NVlabs/cub/zip/1.8.0
Resolving codeload.github.com (codeload.github.com)... 192.30.255.121
Connecting to codeload.github.com (codeload.github.com)|192.30.255.121|:443... connected.
HTTP request sent, awaiting response... checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
200 OK
Length: 602396 (588K) [application/zip]
Saving to: ‘cub-1.8.0.zip’
cub-1.8.0.zip 0%[ ] 0 --.-KB/s checking for style of include used by make... GNU
checking for gcc... x86_64-apple-darwin13.4.0-clang
cub-1.8.0.zip 37%[======> ] 220.43K 1.07MB/s checking whether the C compiler works... no
configure: error: in `/Users/ninackjeong/kaldi/tools/openfst-1.6.7':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [openfst-1.6.7/Makefile] Error 77
cub-1.8.0.zip 100%[===================>] 588.28K 1.93MB/s in 0.3s
2020-02-03 09:44:30 (1.93 MB/s) - ‘cub-1.8.0.zip’ saved [602396/602396]
unzip -oq cub-1.8.0.zip
rm -f cub
ln -s cub-1.8.0 cub
rm -rf sctk && ln -s sctk-2.4.10 sctk
When I typed more specific command "make CXX=g++-4.8," the error message was follows. It seems that this needs g++ 4.8.3., Apple Xcode 5.0 or clang 3.3, but mine are gcc and gcc#4.9 (installed through brew) and my Xcode and clang are far beyond 5.0 and 3.3. If these are problems, I would like to ask how to install them (I tried to install g++ 4.8.3, but "gcc48" seems not to be provided on brew, and I could not find Xcode 5.0 installation file...).
I do apologize for any inconvenience, and I really appreciate all your time!
<< gcc -v check >>
(base) C-MacBook-Pro:~ ninackjeong$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
<< possible problems when the more specific command was put>>
(base) C-MacBook-Pro:tools ninackjeong$ make CXX=g++-4.8
extras/check_dependencies.sh
extras/check_dependencies.sh: Compiler 'g++-4.8' is not installed.
extras/check_dependencies.sh: You need g++ >= 4.8.3, Apple Xcode >= 5.0 or clang >= 3.3.
extras/check_dependencies.sh: The following prerequisites are missing; install them first:
g++
make: *** [check_required_programs] Error 1

Can Boost 1.65.x be used with Visual C++ 2010?

I got the Boost 64-bit Windows Installer for VC++ 2010 (boost_1_65_0-msvc-10.0-64.exe) from https://sourceforge.net/projects/boost/files/boost-binaries/1.65.0/.
The Include and Library path settings in the project are correct.
Trying to use it in a x64 Console project results in several build errors - I am only using the thread class here. These are the errors I get:
1>------ Build started: Project: CPSS, Configuration: Debug x64 ------
1> stdafx.cpp
1> SockServer.cpp
1> Linking to lib file: libboost_thread-vc100-mt-gd-1_65.lib
1> Linking to lib file: libboost_date_time-vc100-mt-gd-1_65.lib
1> Linking to lib file: libboost_system-vc100-mt-gd-1_65.lib
1>E:\hld\Src\Boost\boost_1_65_0\boost/system/error_code.hpp(255): warning C4355: 'this' : used in base member initializer list
1> Linking to lib file: libboost_chrono-vc100-mt-gd-1_65.lib
1> CPSS.cpp
1> Linking to lib file: libboost_thread-vc100-mt-gd-1_65.lib
1> Linking to lib file: libboost_date_time-vc100-mt-gd-1_65.lib
1> Linking to lib file: libboost_system-vc100-mt-gd-1_65.lib
1>E:\hld\Src\Boost\boost_1_65_0\boost/system/error_code.hpp(255): warning C4355: 'this' : used in base member initializer list
1> Linking to lib file: libboost_chrono-vc100-mt-gd-1_65.lib
1>E:\hld\Src\Boost\boost_1_65_0\boost/thread/detail/thread.hpp(271): error C2752: 'boost::move_detail::remove_reference<T>' : more than one partial specialization matches the template argument list
1> with
1> [
1> T=int (__cdecl &)(void)
1> ]
1> E:\hld\Src\Boost\boost_1_65_0\boost/move/detail/meta_utils.hpp(105): could be 'boost::move_detail::remove_reference<T&&>'
1> E:\hld\Src\Boost\boost_1_65_0\boost/move/detail/meta_utils.hpp(97): or 'boost::move_detail::remove_reference<T&>'
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xxshared(13) : see reference to function template instantiation 'boost::thread::thread<int(__cdecl &)(void)>(F)' being compiled
1> with
1> [
1> F=int (__cdecl &)(void)
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xxshared(35) : see reference to function template instantiation 'std::tr1::_Ref_count_obj<_Ty>::_Ref_count_obj<int(__cdecl &)(void)>(_Arg0)' being compiled
1> with
1> [
1> _Ty=thread_t,
1> _Arg0=int (__cdecl &)(void)
1> ]
1> CPSS.cpp(34) : see reference to function template instantiation 'std::tr1::shared_ptr<_Ty> std::tr1::make_shared<thread_t,int(__cdecl &)(void)>(_Arg0)' being compiled
1> with
1> [
1> _Ty=thread_t,
1> _Arg0=int (__cdecl &)(void)
1> ]
1>E:\hld\Src\Boost\boost_1_65_0\boost/thread/detail/thread.hpp(271): error C2668: 'boost::forward' : ambiguous call to overloaded function
1> E:\hld\Src\Boost\boost_1_65_0\boost/move/utility_core.hpp(252): could be 'T boost::forward<F>(int (__cdecl &)(void))'
1> with
1> [
1> T=int (__cdecl &)(void),
1> F=int (__cdecl &)(void)
1> ]
1> E:\hld\Src\Boost\boost_1_65_0\boost/move/utility_core.hpp(248): or 'T boost::forward<F>(int (__cdecl &)(void))'
1> with
1> [
1> T=int (__cdecl &)(void),
1> F=int (__cdecl &)(void)
1> ]
1> while trying to match the argument list '(int (__cdecl &)(void))'
1> SockServerEx.cpp
1> Linking to lib file: libboost_thread-vc100-mt-gd-1_65.lib
1> Linking to lib file: libboost_date_time-vc100-mt-gd-1_65.lib
1> Linking to lib file: libboost_system-vc100-mt-gd-1_65.lib
1>E:\hld\Src\Boost\boost_1_65_0\boost/system/error_code.hpp(255): warning C4355: 'this' : used in base member initializer list
1> Linking to lib file: libboost_chrono-vc100-mt-gd-1_65.lib
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm using the nuget package boost-vc100, version 1.65.1.0 on a windows 7, x86 without problems.

CMake cannot find Boost libarary

I'm new to Cmake. I read posts of the same problem but I still cannot solve my problem. Sorry about the same question.
My boost include is in: /usr/local/Cellar/boost/1.58.0/include
My boost lib is in: /usr/local/Cellar/boost/1.58.0/lib
My CMakeLists.txt is:
cmake_minimum_required(VERSION 2.6)
SET(BOOST_ROOT /usr/local/Cellar/boost/1.58.0)
SET(BOOST_INCLUDEDIR /usr/local/Cellar/boost/1.58.0/include)
SET(BOOST_LIBRARYDIR /usr/local/Cellar/boost/1.58.0/lib)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost COMPONENTS optional REQUIRED)
include_directories(${Boost_INCLUDEDIR})
target_link_libraries(hash ${Boost_LIBRARYDIR})
The debug message I got is:
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:551 ] _boost_TEST_VERSIONS = 1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:553 ] Boost_USE_MULTITHREADED = TRUE
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:555 ] Boost_USE_STATIC_LIBS = ON
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:557 ] Boost_USE_STATIC_RUNTIME =
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:559 ] Boost_ADDITIONAL_VERSIONS =
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:561 ] Boost_NO_SYSTEM_PATHS =
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:613 ] Declared as CMake or Environmental Variables:
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:615 ] BOOST_ROOT = /usr/local/Cellar/boost/1.58.0
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:617 ] BOOST_INCLUDEDIR = /usr/local/Cellar/boost/1.58.0/include
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:619 ] BOOST_LIBRARYDIR = /usr/local/Cellar/boost/1.58.0/lib
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:621 ] _boost_TEST_VERSIONS = 1.59.0;1.59;1.58.0;1.58;1.57.0;1.57;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:690 ] Include debugging info:
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:692 ] _boost_INCLUDE_SEARCH_DIRS = /usr/local/Cellar/boost/1.58.0/include;/usr/local/Cellar/boost/1.58.0/include;/usr/local/Cellar/boost/1.58.0;PATHS;C:/boost/include;C:/boost;/sw/local/include
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:694 ] _boost_PATH_SUFFIXES = boost-1_59_0;boost_1_59_0;boost/boost-1_59_0;boost/boost_1_59_0;boost-1_59;boost_1_59;boost/boost-1_59;boost/boost_1_59;boost-1_58_0;boost_1_58_0;boost/boost-1_58_0;boost/boost_1_58_0;boost-1_58;boost_1_58;boost/boost-1_58;boost/boost_1_58;boost-1_57_0;boost_1_57_0;boost/boost-1_57_0;boost/boost_1_57_0;boost-1_57;boost_1_57;boost/boost-1_57;boost/boost_1_57;boost-1_56_0;boost_1_56_0;boost/boost-1_56_0;boost/boost_1_56_0;boost-1_56;boost_1_56;boost/boost-1_56;boost/boost_1_56;boost-1_55_0;boost_1_55_0;boost/boost-1_55_0;boost/boost_1_55_0;boost-1_55;boost_1_55;boost/boost-1_55;boost/boost_1_55;boost-1_54_0;boost_1_54_0;boost/boost-1_54_0;boost/boost_1_54_0;boost-1_54;boost_1_54;boost/boost-1_54;boost/boost_1_54;boost-1_53_0;boost_1_53_0;boost/boost-1_53_0;boost/boost_1_53_0;boost-1_53;boost_1_53;boost/boost-1_53;boost/boost_1_53;boost-1_52_0;boost_1_52_0;boost/boost-1_52_0;boost/boost_1_52_0;boost-1_52;boost_1_52;boost/boost-1_52;boost/boost_1_52;boost-1_51_0;boost_1_51_0;boost/boost-1_51_0;boost/boost_1_51_0;boost-1_51;boost_1_51;boost/boost-1_51;boost/boost_1_51;boost-1_50_0;boost_1_50_0;boost/boost-1_50_0;boost/boost_1_50_0;boost-1_50;boost_1_50;boost/boost-1_50;boost/boost_1_50;boost-1_49_0;boost_1_49_0;boost/boost-1_49_0;boost/boost_1_49_0;boost-1_49;boost_1_49;boost/boost-1_49;boost/boost_1_49;boost-1_48_0;boost_1_48_0;boost/boost-1_48_0;boost/boost_1_48_0;boost-1_48;boost_1_48;boost/boost-1_48;boost/boost_1_48;boost-1_47_0;boost_1_47_0;boost/boost-1_47_0;boost/boost_1_47_0;boost-1_47;boost_1_47;boost/boost-1_47;boost/boost_1_47;boost-1_46_1;boost_1_46_1;boost/boost-1_46_1;boost/boost_1_46_1;boost-1_46_0;boost_1_46_0;boost/boost-1_46_0;boost/boost_1_46_0;boost-1_46;boost_1_46;boost/boost-1_46;boost/boost_1_46;boost-1_45_0;boost_1_45_0;boost/boost-1_45_0;boost/boost_1_45_0;boost-1_45;boost_1_45;boost/boost-1_45;boost/boost_1_45;boost-1_44_0;boost_1_44_0;boost/boost-1_44_0;boost/boost_1_44_0;boost-1_44;boost_1_44;boost/boost-1_44;boost/boost_1_44;boost-1_43_0;boost_1_43_0;boost/boost-1_43_0;boost/boost_1_43_0;boost-1_43;boost_1_43;boost/boost-1_43;boost/boost_1_43;boost-1_42_0;boost_1_42_0;boost/boost-1_42_0;boost/boost_1_42_0;boost-1_42;boost_1_42;boost/boost-1_42;boost/boost_1_42;boost-1_41_0;boost_1_41_0;boost/boost-1_41_0;boost/boost_1_41_0;boost-1_41;boost_1_41;boost/boost-1_41;boost/boost_1_41;boost-1_40_0;boost_1_40_0;boost/boost-1_40_0;boost/boost_1_40_0;boost-1_40;boost_1_40;boost/boost-1_40;boost/boost_1_40;boost-1_39_0;boost_1_39_0;boost/boost-1_39_0;boost/boost_1_39_0;boost-1_39;boost_1_39;boost/boost-1_39;boost/boost_1_39;boost-1_38_0;boost_1_38_0;boost/boost-1_38_0;boost/boost_1_38_0;boost-1_38;boost_1_38;boost/boost-1_38;boost/boost_1_38;boost-1_37_0;boost_1_37_0;boost/boost-1_37_0;boost/boost_1_37_0;boost-1_37;boost_1_37;boost/boost-1_37;boost/boost_1_37;boost-1_36_1;boost_1_36_1;boost/boost-1_36_1;boost/boost_1_36_1;boost-1_36_0;boost_1_36_0;boost/boost-1_36_0;boost/boost_1_36_0;boost-1_36;boost_1_36;boost/boost-1_36;boost/boost_1_36;boost-1_35_1;boost_1_35_1;boost/boost-1_35_1;boost/boost_1_35_1;boost-1_35_0;boost_1_35_0;boost/boost-1_35_0;boost/boost_1_35_0;boost-1_35;boost_1_35;boost/boost-1_35;boost/boost_1_35;boost-1_34_1;boost_1_34_1;boost/boost-1_34_1;boost/boost_1_34_1;boost-1_34_0;boost_1_34_0;boost/boost-1_34_0;boost/boost_1_34_0;boost-1_34;boost_1_34;boost/boost-1_34;boost/boost_1_34;boost-1_33_1;boost_1_33_1;boost/boost-1_33_1;boost/boost_1_33_1;boost-1_33_0;boost_1_33_0;boost/boost-1_33_0;boost/boost_1_33_0;boost-1_33;boost_1_33;boost/boost-1_33;boost/boost_1_33
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:714 ] location of version.hpp: /usr/local/Cellar/boost/1.58.0/include/boost/version.hpp
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:738 ] version.hpp reveals boost 1.58.0
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:824 ] guessed _boost_COMPILER =
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:834 ] _boost_MULTITHREADED = -mt
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:877 ] _boost_RELEASE_ABI_TAG = -
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:879 ] _boost_DEBUG_ABI_TAG = -d
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:933 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = /usr/local/Cellar/boost/1.58.0/lib;/usr/local/Cellar/boost/1.58.0/lib;/usr/local/Cellar/boost/1.58.0/stage/lib;/usr/local/Cellar/boost/1.58.0/include/lib;/usr/local/Cellar/boost/1.58.0/include/../lib;/usr/local/Cellar/boost/1.58.0/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib_boost_LIBRARY_SEARCH_DIRS_DEBUG = /usr/local/Cellar/boost/1.58.0/lib;/usr/local/Cellar/boost/1.58.0/lib;/usr/local/Cellar/boost/1.58.0/stage/lib;/usr/local/Cellar/boost/1.58.0/include/lib;/usr/local/Cellar/boost/1.58.0/include/../lib;/usr/local/Cellar/boost/1.58.0/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:1045 ] Searching for OPTIONAL_LIBRARY_RELEASE: boost_optional-mt-1_58;boost_optional-mt;boost_optional-mt-1_58;boost_optional-mt;boost_optional
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:1087 ] Searching for OPTIONAL_LIBRARY_DEBUG: boost_optional-mt-d-1_58;boost_optional-mt-d;boost_optional-mt-d-1_58;boost_optional-mt-d;boost_optional-mt;boost_optional
-- [ /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:1153 ] Boost_FOUND = 1
CMake Error at /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/FindBoost.cmake:1247 (message):
Unable to find the requested Boost libraries.
Boost version: 1.58.0
Boost include path: /usr/local/Cellar/boost/1.58.0/include
Could not find the following static Boost libraries:
boost_optional
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)
CMake Warning (dev) at CMakeLists.txt:9 (target_link_libraries):
Cannot specify link libraries for target "hash" which is not built by this
project.
CMake does not support this but it used to work accidentally and is being
allowed for compatibility.
Policy CMP0016 is not set: target_link_libraries() reports error if its
only argument is not a target. Run "cmake --help-policy CMP0016" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
I execute by running cmake .
Edit. The problem has been solved. The correct CMakeLists.txt should be :
cmake_minimum_required(VERSION 2.6)
SET(BOOST_ROOT /usr/local/Cellar/boost/1.58.0)
SET(BOOST_INCLUDEDIR /usr/local/Cellar/boost/1.58.0/include)
find_package(Boost REQUIRED)
include_directories(${BOOST_INCLUDEDIR})
add_executable(myProgram main.cc)
The error occurred because Boost.Optional is a header-only file and I do not need to locate the lib for it.
Boost.Optional is a head only libraries:
see http://www.boost.org/doc/libs/1_60_0/libs/optional/doc/html/index.html
The COMPONENTS in find_package is required only for built libraries. So, you only need to write:
find_package(Boost 1.58.0 REQUIRED)
see similar link: CMake Boost 1.59.0 geometry
Well, Boost.Optional is a header-only library so it's not possible to locate its shared lib which name, according to docs, should be specified in the components argument. I guess it's the root of the problem, and you should simply search for boost itself without any component:
find_package(Boost REQUIRED)
In this case there's no additional precompiled library so target_link_libraries for Boost.Optional is not needed (but may be required for other 3rd-party libs in the project.

Boost-Lib: how can I build stp with boost on debian

i want to build stp on Debian Jessy with CMake which use the boost library, I got the errror:
Could not find the following Boost libraries:
boost_program_options
boost_system
I have tried to set the include path direct but no succes.
For me it seems that there are only headers and no lib. What can I do?
Here the complete output with Boost_DEBUG=ON and Boost_DETAILED_FAILURE=ON:
-- Doing a RelWithDebInfo build
-- Building shared library currently broken due to mix of C++/C code
-- Checking for C++ hash_set implementation...
-- C++ hash_set found as std::unordered_set in <unordered_set>
-- Checking for C++ hash_multiset implementation...
-- C++ hash_multiset found as std::unordered_multiset in <unordered_set>
-- Checking for C++ hash_map implementation...
-- C++ hash_map found as std::unordered_map in <unordered_map>
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:492 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:494 ] Boost_USE_MULTITHREADED = TRUE
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:496 ] Boost_USE_STATIC_LIBS =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:498 ] Boost_USE_STATIC_RUNTIME =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:500 ] Boost_ADDITIONAL_VERSIONS =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:502 ] Boost_NO_SYSTEM_PATHS =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:554 ] Declared as CMake or Environmental Variables:
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:556 ] BOOST_ROOT = /usr/include/boost
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:558 ] BOOST_INCLUDEDIR =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:560 ] BOOST_LIBRARYDIR =
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:562 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:655 ] location of version.hpp: /usr/include/boost/version.hpp
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:679 ] version.hpp reveals boost 1.54.0
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:755 ] guessed _boost_COMPILER = -gcc48
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:765 ] _boost_MULTITHREADED = -mt
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:808 ] _boost_RELEASE_ABI_TAG = -
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:810 ] _boost_DEBUG_ABI_TAG = -d
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:858 ] _boost_LIBRARY_SEARCH_DIRS = /usr/include/boost/lib;/usr/include/boost/stage/lib;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:946 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc48-mt-1_54;boost_program_options-gcc48-mt;boost_program_options-mt-1_54;boost_program_options-mt;boost_program_options
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:982 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc48-mt-d-1_54;boost_program_options-gcc48-mt-d;boost_program_options-mt-d-1_54;boost_program_options-mt-d;boost_program_options-mt;boost_program_options
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:946 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc48-mt-1_54;boost_system-gcc48-mt;boost_system-mt-1_54;boost_system-mt;boost_system
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:982 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc48-mt-d-1_54;boost_system-gcc48-mt-d;boost_system-mt-d-1_54;boost_system-mt-d;boost_system-mt;boost_system
-- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1033 ] Boost_FOUND = 1
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1130 (message):
Unable to find the requested Boost libraries.
Boost version: 1.54.0
Boost include path: /usr/include
Could not find the following Boost libraries:
boost_program_options
boost_system
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:190 (find_package)
Adding public header(s) /home/michael/Downloads/stp/src/interface/C/c_interface.h to target libstp
Adding public header(s) /home/michael/Downloads/stp/src/interface/CPP/cpp_interface.h to target libstp
CMake Warning at CMakeLists.txt:269 (message):
Testing is disabled
-- Configuring incomplete, errors occurred!
I have seen the same problem on CentOS.
$ cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
First, i ensured libboost-system.so is exist in /usr/lib64.
$ find /usr -name "*boost*"
Then, in findBoost.cmake, i found it only looks boost in somedir/lib. So i installed x86 version
$ yum install boost-devel.x86_64
Not working.
Finally, it occurred to me, there is only .so files. So i tried to edit stp/CMakeLists.txt, and set
set(Boost_USE_STATIC_LIBS OFF)
if(NOT BUILD_SHARED_LIBS)
# If we are building libstp as static we will want to
# make sure there are no unresolved symbols to Boost
# library functions. Later we'll merge them into the
# archive so we'll need static boost libraries.
message("Trying to use static Boost libraries")
# set(Boost_USE_STATIC_LIBS ON)
endif()
It works!

Resources