Skip to content

Setting up C++ dev environment #96

Closed

Description

@matthewyaspan

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.

Activity

  1. matthewyaspan commented on Jul 24, 2016

    @matthewyaspan
    Author

    hmmmm perhaps this isnt the place for this...

  2. kytrinyx commented on Jul 24, 2016

    @kytrinyx
    Member

    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?

  3. arcuru commented on Jul 26, 2016

    @arcuru
    Contributor

    @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 XX

    Go 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.

  4. matthewyaspan commented on Jul 27, 2016

    @matthewyaspan
    Author

    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.

  5. arcuru commented on Jul 27, 2016

    @arcuru
    Contributor

    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?)

  6. matthewyaspan commented on Jul 30, 2016

    @matthewyaspan
    Author

    So I have VS2015 and have tried both 1.55 and 1.61 versions of Boost.

    Command: cmake CMakeLists.txt

    Error:
    error

  7. arcuru commented on Aug 1, 2016

    @arcuru
    Contributor

    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'

  8. drey-stepanyuk commented on Dec 7, 2016

    @drey-stepanyuk

    Anyone ever find a solution to this issue? I'm experiencing the same exact thing.

  9. lobotomiac commented on Jul 30, 2018

    @lobotomiac

    try renaming it from lib to something else and then trying to build and then to lib again. worked for me

  10. cgorshing commented on Aug 7, 2018

    @cgorshing

    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?

  11. arcuru commented on Apr 20, 2019

    @arcuru
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions