You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error that was demo'd on the Installing C++ tab has happened to me, even though I followed the instructions to the T. Stack Overflow as been less than helpful as well.
You didn't specify, but I assume you're talking about the cmake error in finding the boost libraries under a Windows install? (It looks like the only detailed error message on that page)
I hit almost the same error message when I tried to replicate it, so I think this is the same thing that happened to you. If not, we're going to need a few more details about what you're actually hitting.
The problem is that page links to both an old version of Visual Studio and an old version of Boost. If you're using a newer version of Visual Studio you need to use a version of Boost compiled for the newer Visual Studio version. The page mentions that could be a problem but doesn't have a link to the Boost lib necessary for the latest VS.
The first line of cmake output will tell you what version of Visual Studio you have:
@LegalizeAdulthood@kytrinyx It does look like that page needs at least a small update pointing to the latest Visual Studio and Boost versions. I don't think it needs anything else changed, but I'm not too familiar with that pathway.
The versions of Visual Studio and Boost that you're trying to use, just to confirm those match up.
The command you're using and the full error message you're getting. You may need to rerun cmake on an empty directory, it cuts off some stuff otherwise.
(Also, as a sanity check, you did rename the folder lib32-msvc-14.0 to lib when you upgraded your version of Boost right?)
Hmm, it looks like it found Boost but can't find the libraries. If you've renamed the C:/Program Files/boost_1_61_0/lib32-msvc-14.0 folder to lib it should've been able to find it, so I'm not sure what's wrong exactly.
You can try pointing cmake to the boost library directly by adding the cmake option: -DBOOST_LIBRARYDIR:PATH='C:/Program Files/boost_1_61_0/your-lib-folder-here'
I've added a comment to #190 (comment), the short of it is if you are on Windows (using Visual Studio), then you need to make sure you are using the correct CMake generator for the architecture version of Boost you downloaded. See the prior link for info.
With that said...
What architecture (x32 or x64) of Boost did you download?
What CMake Generator are you using?
Setup is now much easier on Windows, see the new docs. Boost is no longer necessary and you can just open the folder in Visual Studio, no need to install and run cmake yourself. Closing.
Activity
matthewyaspan commentedon Jul 24, 2016
hmmmm perhaps this isnt the place for this...
kytrinyx commentedon Jul 24, 2016
It might be fine :)
If we can help you figure out what went wrong, we can improve your documentation.
@LegalizeAdulthood do you understand what might have gone wrong here?
arcuru commentedon Jul 26, 2016
@matthewyaspan
You didn't specify, but I assume you're talking about the cmake error in finding the boost libraries under a Windows install? (It looks like the only detailed error message on that page)
I hit almost the same error message when I tried to replicate it, so I think this is the same thing that happened to you. If not, we're going to need a few more details about what you're actually hitting.
The problem is that page links to both an old version of Visual Studio and an old version of Boost. If you're using a newer version of Visual Studio you need to use a version of Boost compiled for the newer Visual Studio version. The page mentions that could be a problem but doesn't have a link to the Boost lib necessary for the latest VS.
The first line of cmake output will tell you what version of Visual Studio you have:
Building for: Visual Studio XXGo to the latest version of the Boost binaries and download the 32bit version that matches your version of Visual Studio. If you have VS 2015, that would be boost_1_61_0-msvc-14.0-32.exe
@LegalizeAdulthood @kytrinyx It does look like that page needs at least a small update pointing to the latest Visual Studio and Boost versions. I don't think it needs anything else changed, but I'm not too familiar with that pathway.
matthewyaspan commentedon Jul 27, 2016
Thanks for responding, both of you!
Upgrading versions of Boost didn't solve the problem, although it is much better organized in new versions, so that's nice.
Let me know what info you think would be useful to know! And I'm sorry for not mentioning, this is a Windows 10 machine.
arcuru commentedon Jul 27, 2016
The versions of Visual Studio and Boost that you're trying to use, just to confirm those match up.
The command you're using and the full error message you're getting. You may need to rerun cmake on an empty directory, it cuts off some stuff otherwise.
(Also, as a sanity check, you did rename the folder
lib32-msvc-14.0tolibwhen you upgraded your version of Boost right?)matthewyaspan commentedon Jul 30, 2016
So I have VS2015 and have tried both 1.55 and 1.61 versions of Boost.
Command:
cmake CMakeLists.txtError:

arcuru commentedon Aug 1, 2016
Hmm, it looks like it found Boost but can't find the libraries. If you've renamed the
C:/Program Files/boost_1_61_0/lib32-msvc-14.0folder tolibit should've been able to find it, so I'm not sure what's wrong exactly.You can try pointing cmake to the boost library directly by adding the cmake option:
-DBOOST_LIBRARYDIR:PATH='C:/Program Files/boost_1_61_0/your-lib-folder-here'drey-stepanyuk commentedon Dec 7, 2016
Anyone ever find a solution to this issue? I'm experiencing the same exact thing.
lobotomiac commentedon Jul 30, 2018
try renaming it from lib to something else and then trying to build and then to lib again. worked for me
cgorshing commentedon Aug 7, 2018
I've added a comment to #190 (comment), the short of it is if you are on Windows (using Visual Studio), then you need to make sure you are using the correct CMake generator for the architecture version of Boost you downloaded. See the prior link for info.
With that said...
What architecture (x32 or x64) of Boost did you download?
What CMake Generator are you using?
arcuru commentedon Apr 20, 2019
Setup is now much easier on Windows, see the new docs. Boost is no longer necessary and you can just open the folder in Visual Studio, no need to install and run cmake yourself. Closing.