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

Why can't I build boost in my computer? #931

Open
ZhikangLai opened this issue Jul 26, 2024 · 7 comments
Open

Why can't I build boost in my computer? #931

ZhikangLai opened this issue Jul 26, 2024 · 7 comments

Comments

@ZhikangLai
Copy link

figure1
figure2
figure3
figure4
figure5
figure6
figure7
figure8
I can't not see any .lib in lib folder, Why?
figure9

@m1mist
Copy link

m1mist commented Jul 26, 2024

我换成1.83版本就编译过了

@ZhikangLai
Copy link
Author

build_output.txt
This file recored the whole message I built boost 1.85 version.

@ZhikangLai
Copy link
Author

ZhikangLai commented Jul 26, 2024

I have already fixed this issue. Take the attach file to replace ".\boost_1_85_0\tools\build\src\tools\msvc.jam".
msvc.zip

Or you can add the code as the figure show:
Snipaste_2024-07-26_22-15-26

@chilkaditya
Copy link

hi, @ZhikangLai. Can you please give me the entire steps to build boost and can use it in my local machine ?
My system configuration are as follows:

  1. Windows 11 OS
  2. VS code and mingw installed.
  3. Also Qt creator is installed.

@ZhikangLai
Copy link
Author

hi, @ZhikangLai. Can you please give me the entire steps to build boost and can use it in my local machine ? My system configuration are as follows:

  1. Windows 11 OS
  2. VS code and mingw installed.
  3. Also Qt creator is installed.

Hi, Mr. @chilkaditya , Which step are you stuck on? Could you share more details about your compiler?If you're using GCC, you might not encounter the same issue I did. However, if you're using MSVC 14.3, it's likely you're facing a similar problem.

@chilkaditya
Copy link

@ZhikangLai sure,
I do not have Microsoft visual studio IDE. I have vscode editor and mingw compiler downloaded separately. After downloading boost 1.85.0, using command prompt i run bootstrap.bat and then ./b2 command, then one bin.v2 folder generated but inside this folder there was libs folder. I attached image below.

image image image inside libs folder all folders is empty and I also cant use boost from vs code editor. I add bin.v2 path to environment variable. I am stuck here.

@ZhikangLai
Copy link
Author

@ZhikangLai sure, I do not have Microsoft visual studio IDE. I have vscode editor and mingw compiler downloaded separately. After downloading boost 1.85.0, using command prompt i run bootstrap.bat and then ./b2 command, then one bin.v2 folder generated but inside this folder there was libs folder. I attached image below.

image image image inside libs folder all folders is empty and I also cant use boost from vs code editor. I add bin.v2 path to environment variable. I am stuck here.

when you run "b2", have you try this command:
b2 toolset=gcc
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants