Studiofreya / boost-build-scripts

Scripts for building boost
55 stars 26 forks source link

"System cannot find path specified" Visual Studio 2017 #1

Closed bw4sz closed 7 years ago

bw4sz commented 7 years ago

Hello!

I placed your .bat in the boost folder (named as above). Added the boost folder to my path. Made sure that the .bat and the entire boost folder had admin privileges. Running newest version of visual studio 2017, windows 10, boost downloaded and extracted this morning. Any idea what file cannot be found, what privileges need to set? I right click and "run as admin" in case something about C:/Program Files is interfering.

Building boost_1_64_0 with 4 cores using toolset msvc-14.1.
The system cannot find the path specified.
Building Boost.Build engine
The system cannot find the path specified.
'.\build.bat' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.

You can try to obtain a prebuilt binary from

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941

Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.
'b2' is not recognized as an internal or external command,
operable program or batch file.
'b2' is not recognized as an internal or external command,
operable program or batch file.
'b2' is not recognized as an internal or external command,
operable program or batch file.
'b2' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .

image

image

bw4sz commented 7 years ago

For those following along at home. Running from within Visual Studio Command line works.

image

Thanks for your great work. Hopefully this closed issue will help others.

kentf commented 7 years ago

Hi, the script is supposed to work out of the box. It's supposed to be next to the boost directory, not inside it. I've tested it numerous times, it should be enough to just launch the script.

The first error is that the script is inside the boost folder.

It seems to me there are at least 1 more mistake. The boost file bootstrap.bat can't find the file build.bat inside boost_1_64_0\tools\build\src\engine.

This step will build b2.exe, which is used to build rest of boost.

Could you try to place the script next to the boost folder, and make sure you've extracted the .7z archive correctly?

bw4sz commented 7 years ago

yes that works. Thanks!

Do you happen to know if I have to invoke another command to get boost-python support?

the docs http://www.boost.org/doc/libs/1_54_0/libs/python/doc/building.html#installing-boost-python-on-your-system

are a bit vague. I would have thought it would be in

C:\Program Files\boost_1_64_0\stage\x64\lib

On Sat, Jul 8, 2017 at 11:56 AM, Kent notifications@github.com wrote:

Hi, the script is supposed to work out of the box. It's supposed to be next to the boost directory, not inside it. I've tested it numerous times, it should be enough to just launch the script.

The first error is that the script is inside the boost folder.

It seems to me there are at least 1 more mistake. The boost file bootstrap.bat can't find the file build.bat inside boost_1_64_0\tools\build\src\engine.

This step will build b2.exe, which is used to build rest of boost.

Could you try to place the script next to the boost folder, and make sure you've extracted the .7z archive correctly?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Studiofreya/boost-build-scripts/issues/1#issuecomment-313874658, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJwrKXLAYZiaWWiKptHi_6IQ9yCl2xoks5sL9DogaJpZM4OR0XA .

-- Ben Weinstein, Ph.D. Postdoctoral Fellow Oregon State University http://benweinstein.weebly.com/