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

Setting up C++ dev environment #96

Closed
matthewyaspan opened this issue Jul 24, 2016 · 11 comments
Closed

Setting up C++ dev environment #96

matthewyaspan opened this issue Jul 24, 2016 · 11 comments

Comments

@matthewyaspan
Copy link

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.

@matthewyaspan
Copy link
Author

hmmmm perhaps this isnt the place for this...

@kytrinyx
Copy link
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?

@arcuru
Copy link
Contributor

arcuru commented 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 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.

@matthewyaspan
Copy link
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.

@arcuru
Copy link
Contributor

arcuru commented 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.0 to lib when you upgraded your version of Boost right?)

@matthewyaspan
Copy link
Author

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

Command: cmake CMakeLists.txt

Error:
error

@arcuru
Copy link
Contributor

arcuru commented 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.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'

@drey-stepanyuk
Copy link

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

@lobotomiac
Copy link

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

@cgorshing
Copy link

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
Copy link
Contributor

arcuru commented 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.

@arcuru arcuru closed this as completed Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants