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

fatal error: 'boost/numeric/conversion/cast.hpp' file not found with MSGPACK_USE_BOOST OFF #1005

Open
brandonros opened this issue Feb 20, 2022 · 0 comments

Comments

@brandonros
Copy link

brandonros commented Feb 20, 2022

cmake_minimum_required(VERSION 3.5.1)
project(j2534-rpc)
set(CMAKE_CXX_STANDARD 11)
# architecture
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
  set(ARCHITECTURE_SLUG "x64")
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
  set(ARCHITECTURE_SLUG "ia32")
endif()
# variables
set(MSGPACK_USE_BOOST OFF CACHE BOOL "")
add_definitions(-DMSGPACK_NO_BOOST)
# msgpack
add_subdirectory("deps/msgpack-c")
include_directories("deps/msgpack-c/include")
# openssl
add_subdirectory("deps/openssl-cmake")
set(OPENSSL_SSL_LIBRARY ssl)
set(OPENSSL_CRYPTO_LIBRARY crypto)
set(OPENSSL_INCLUDE_DIR "${openssl_BINARY_DIR}/include" "${openssl_BINARY_DIR}")
set(OPENSSL_FOUND ON)
message(STATUS "Build OpenSSL: ${openssl_BINARY_DIR}")
# curl
#add_subdirectory("deps/curl")
# diag test
add_executable(j2534-rpc-diag-test-${ARCHITECTURE_SLUG} src/j2534-rpc-diag-test.cpp)
target_link_libraries(j2534-rpc-diag-test-${ARCHITECTURE_SLUG} curl msgpackc-cxx)
Brandons-MacBook-Air:j2534-rpc-js brandonros 2022-02-20 13:48:04 $ rm -rf output && cmake -S . -B "output" && cmake --build output --config Debug
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /opt/homebrew/bin/doxygen (found version "1.9.3") found components: doxygen missing components: dot
-- OpenSSL version 1.1.1m
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of int
-- Check size of int - done
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Build OpenSSL: /Users/brandonros/Desktop/j2534-rpc-js/output/deps/openssl-cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/brandonros/Desktop/j2534-rpc-js/output
[  0%] Building CXX object CMakeFiles/j2534-rpc-diag-test-x64.dir/src/j2534-rpc-diag-test.cpp.o
In file included from /Users/brandonros/Desktop/j2534-rpc-js/src/j2534-rpc-diag-test.cpp:5:
In file included from /Users/brandonros/Desktop/j2534-rpc-js/deps/msgpack-c/include/msgpack.hpp:22:
In file included from /Users/brandonros/Desktop/j2534-rpc-js/deps/msgpack-c/include/msgpack/type.hpp:39:
In file included from /Users/brandonros/Desktop/j2534-rpc-js/deps/msgpack-c/include/msgpack/adaptor/cpp11/chrono.hpp:14:
/Users/brandonros/Desktop/j2534-rpc-js/deps/msgpack-c/include/msgpack/v1/adaptor/cpp11/chrono.hpp:20:10: fatal error: 'boost/numeric/conversion/cast.hpp' file not found
#include <boost/numeric/conversion/cast.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/j2534-rpc-diag-test-x64.dir/src/j2534-rpc-diag-test.cpp.o] Error 1
make[1]: *** [CMakeFiles/j2534-rpc-diag-test-x64.dir/all] Error 2
make: *** [all] Error 2
Brandons-MacBook-Air:j2534-rpc-js brandonros 2022-02-20 13:48:30 $ 
@brandonros brandonros changed the title fatal error: 'boost/predef/other/endian.h' file not found with MSGPACK_USE_BOOST OFF fatal error: 'boost/numeric/conversion/cast.hpp' file not found with MSGPACK_USE_BOOST OFF Feb 20, 2022
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

1 participant