boostorg / boost

Super-project for modularized Boost
https://github.com/boostorg/wiki/wiki/Getting-Started%3A-Overview
Boost Software License 1.0
7.23k stars 1.77k forks source link

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

Open ZhikangLai opened 4 months ago

ZhikangLai commented 4 months ago

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

m1mist commented 4 months ago

我换成1.83版本就编译过了

ZhikangLai commented 4 months ago

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

ZhikangLai commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

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