GithubHelp home page GithubHelp logo

Upgrade to Boost 1.66 about boost-cmake HOT 15 CLOSED

orphis avatar orphis commented on June 30, 2024
Upgrade to Boost 1.66

from boost-cmake.

Comments (15)

macdew avatar macdew commented on June 30, 2024 1

We've just updated to Boost 1.67.0 (with some patches to work with Visual Studio 2017 and /permissive- build flag). Again, this library worked fine for us.

Have you tried writing your own libs definition file for Beast? This library isn't rocket science, it's open source and you could contribute?

from boost-cmake.

rcdailey avatar rcdailey commented on June 30, 2024

Any possibility of this happening soon? The main motivation is for proper VS2017 support, since Boost 1.63 has a silly warning during compilation about unknown compiler version.

from boost-cmake.

Orphis avatar Orphis commented on June 30, 2024

Sure, if I get to sit down a bit and rest first. Spent a lot of time traveling recently!

from boost-cmake.

rcdailey avatar rcdailey commented on June 30, 2024

Should I consider this project dead? I've waited months for updates but none happen. I hate the idea of having to build boost the "official" way, but at this point I need 1.66 or newer because of some issues compiling for Android NDK. Your boost 1.66 branch won't build against the NDK due to an open issue on boost filesystem. I'd like to try 1.65 but I can't do that either :(

from boost-cmake.

macdew avatar macdew commented on June 30, 2024

We've upgraded to Boost 1.65.1, though admittedly we use very few boost modules... Is there a particular module that's failing to build for you?

from boost-cmake.

darkr4y avatar darkr4y commented on June 30, 2024

1.66 added the beast which is a low level http module , its useful , please support 1.66 thx.

from boost-cmake.

rcdailey avatar rcdailey commented on June 30, 2024

I'm gonna go ahead and say this project is dead.

from boost-cmake.

Orphis avatar Orphis commented on June 30, 2024

Would you mind sending a PR for 1.67.0 please? I have to admit I'm swamped with other work and have little time to allocate to this.

from boost-cmake.

macdew avatar macdew commented on June 30, 2024

We only use boost graph & regex, and neither of those libs required changing. I'll see if I can find some time this weekend to do a more thorough review of existing & new modules

from boost-cmake.

Orphis avatar Orphis commented on June 30, 2024

It's fine to be missing new libraries, but existing ones should probably work.

from boost-cmake.

palmerc avatar palmerc commented on June 30, 2024

I'll make a PR for 1.67.0

from boost-cmake.

Orphis avatar Orphis commented on June 30, 2024

We now have 1.67.0 thanks to @palmerc !

from boost-cmake.

rcdailey avatar rcdailey commented on June 30, 2024

Originally reported in #39, I am getting locale failures on Windows using MSVC 15.7:

18>e:\code\frontend\msvc_2017\core\thirdparty\boost\source\boost\boost_1_67_0\libs\locale\src\win32\lcid.cpp(89): error C2039: 'unique_lock': is not a member of 'boost'
18>e:\code\frontend\msvc_2017\core\thirdparty\boost\source\boost\boost_1_67_0\libs\locale\src\win32\lcid.cpp(24): note: see declaration of 'boost'
18>e:\code\frontend\msvc_2017\core\thirdparty\boost\source\boost\boost_1_67_0\libs\locale\src\win32\lcid.cpp(89): error C2065: 'unique_lock': undeclared identifier
18>e:\code\frontend\msvc_2017\core\thirdparty\boost\source\boost\boost_1_67_0\libs\locale\src\win32\lcid.cpp(89): error C2275: 'boost::mutex': illegal use of this type as an expression
18>e:\code\frontend\msvc_2017\core\thirdparty\boost\source\boost\boost_1_67_0\libs\locale\src\win32\lcid.cpp(89): note: see declaration of 'boost::mutex'
18>e:\code\frontend\msvc_2017\core\thirdparty\boost\source\boost\boost_1_67_0\libs\locale\src\win32\lcid.cpp(89): error C3861: 'lock': identifier not found

from boost-cmake.

rcdailey avatar rcdailey commented on June 30, 2024

I found out the problem. I wasn't able to reproduce the issues above in the standalone build, and the reason is because of this code at the bottom of the root CMakeLists.txt:

# TODO: Move those to option() calls in the right file
if(NOT BOOST_STANDALONE)
  # Compilation options required by all platforms
  set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS $<$<CONFIG:Release>:BOOST_DISABLE_ASSERT>)
  set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS BOOST_SYSTEM_NO_DEPRECATED)
  set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS BOOST_THREAD_VERSION=4)
  set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS BOOST_THREAD_USES_CHRONO)
  set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS BOOST_THREAD_PROVIDES_EXECUTORS)
endif()

If I comment out all of the compile definitions above, everything builds fine.

from boost-cmake.

rcdailey avatar rcdailey commented on June 30, 2024

So a little more analysis. It's actually this specific line that is causing the compiler error:

set_property(TARGET Boost::boost APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS BOOST_THREAD_VERSION=4)

If I comment this out, later on I get linker errors:

29>Services.lib(SynapseSubmission.obj) : error LNK2019: unresolved external symbol _BCryptCloseAlgorithmProvider@8 referenced in function "public: __thiscall boost::uuids::detail::random_provider_base::~random_provider_base(void)" (??1random_provider_base@detail@uuids@boost@@QAE@XZ)
29>Services.lib(SynapseSubmission.obj) : error LNK2019: unresolved external symbol _BCryptGenRandom@16 referenced in function "public: void __thiscall boost::uuids::detail::random_provider_base::get_random_bytes(void *,unsigned int)" (?get_random_bytes@random_provider_base@detail@uuids@boost@@QAEXPAXI@Z)
29>Services.lib(SynapseSubmission.obj) : error LNK2019: unresolved external symbol _BCryptOpenAlgorithmProvider@16 referenced in function "public: __thiscall boost::uuids::detail::random_provider_base::random_provider_base(void)" (??0random_provider_base@detail@uuids@boost@@QAE@XZ)
29>E:\code\frontend\msvc_2017\output\bin\Debug\Test_Services.exe : fatal error LNK1120: 3 unresolved externals

So from my perspective, Boost is busted here and I'm not sure what the issue is. How did you guys get it working?

from boost-cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.