Daniel Rossberg said:
I posted my method of building brlcad multiple times here, for example:
Run these commands in a Visual Studio 2019 command prompt. (Scroll down to see the discussion of issues during the build there.)
Thank You @Daniel Rossberg .
I have one doubt regarding :
okay,got it
That really helped.
Good Afternoon,
I have initiated with local setup of BRL-CAD:
1.mkdir brlcad/build
2.cmake .. -DBRLCAD_ENABLE_STRICT=OFF -DBRLCAD_ENABLE_COMPILER_WARNINGS=OFF -DBRLCAD_BUNDLED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="D:\Downloads\brlcad_install"
but for the second command it is taking way more time to complete this command ,like near about 1 hour to just barely complete the command , i have to rerun this command twice to complete the build
should i share the terminal logs here to get the clear picture so that you can help me in figuring it out
Sorry for the delay,caught with other things,
but here i am uploading the text file having the complete log when i ran this second command
BRLCAD_build-log.txt
@Abhishek, if you build brlcad this way, cmake doesn't just configure the brlcad build, but builds all the bext stuff too. To separate this and work around some issues, it is recommended to build bext first end configure brlcad with -DBRLCAD_EXT_DIR set to the bext build dirtectory.
If you like to try this all-in-one build, it is recommended to clone with recursive option, e.g. git clone --recursive https://github.com/BRL-CAD/brlcad.git.
This seems to have been worked a year ago.
The externals are no longer a submodule in the main repo so recursive shouldn’t do anything different. Recursive on bext is enormous (more than the default options as that includes Appleseed and ospray deps) but should work.
@Daniel Rossberg correct me if wrong,so here is how should i proceed.
1.Build Bext locally first - as per the bext Readme
- mkdir bext_build
cd bext_build
- cmake ../bext -DENABLE_ALL=ON -DCMAKE_BUILD_TYPE=Release
- cmake --build . --config Release --parallel 8
ps: i didnt understand this way of building BRL-CAD link
2.Then proceed to build BRL-CAD
Do i have to build BRLCAD in the parent folder(bext) and then proceed to BRLCAD build ?
Instead of Bext i just turn this flag on = -DBRLCAD_BUNDLED_LIBS=ON in the brlcad build only.
@Abhishek yes, you're on the right track -- you build all of bext which just builds all of the 3rd party dependencies. This is not building BRL-CAD. This is building the dependencies that BRL-CAD requires like libpng, tcl/tk, opencv, zlib, and 60+ other deps. Once you build "bext", THEN you follow the instructions in that link you didn't understand to actually build BRL-CAD itself.
You'll specify BRLCAD_EXT_DIR in your "brlcad" clone'd repo cmake to tell it where you built the "bext" dependencies.
As for where you build, that part doesn't matter much so long as you specify the right paths later.
Sean said:
Abhishek yes, you're on the right track -- you build all of bext which just builds all of the 3rd party dependencies. This is not building BRL-CAD. This is building the dependencies that BRL-CAD requires like libpng, tcl/tk, opencv, zlib, and 60+ other deps. Once you build "bext", THEN you follow the instructions in that link you didn't understand to actually build BRL-CAD itself.
You'll specify BRLCAD_EXT_DIR in your "brlcad" clone'd repo cmake to tell it where you built the "bext" dependencies.
As for where you build, that part doesn't matter much so long as you specify the right paths later.
Thanks @Sean
Correct me if wrong after successfully building the bext,
i can add the bext build path to BRLCAD cmake while building it, and then continue with the mentioned steps.
Yup that’s exactly how it’s supposed to work. You specify BRLCAD_EXT_DIR to the man cmake with the path the to bext’s build dir
please help me install brlcad on arch linux
"Hi @Sean and @Erik,
I am [Nilesh vishwakarma], a student developer interested in the project 'Production-Ready PBR: Integrating BRL-CAD geometry ray tracing with Appleseed rendering'. I have a strong background in C++ and I am fascinated by Path Tracing and Physically-Based Rendering.
I have already started exploring the BRL-CAD source code, specifically the art utility. I am currently setting up the build environment. I would love to contribute a small patch or fix a 'Good First Issue' to get started with the codebase.
Looking forward to your guidance on how I can better align my proposal with the project goals."
i just used aur, the readme file is too complicated
no, its not work
@Володимир, I don't know about Arch Linux, but I found this: https://aur.archlinux.org/packages/brlcad
I don't know if this helps.
Regarding compilation in general, I wrote down some hints (unfortunately, our wiki is still offline, therefore I used GitHub): https://drossberg.github.io/BRL-CAD/compiling.html
Last updated: Mar 11 2026 at 01:08 UTC