Stream: brlcad

Topic: Building BRL-CAD


view this post on Zulip Abhishek (Feb 19 2026 at 17:49):

Daniel Rossberg said:

I posted my method of building brlcad multiple times here, for example: #brlcad > general chat @ 💬
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 :

  1. Dependencies of Qt while setting the BRL-CAD / MOOSE / ARBALEST, means i have Qt working but i use QtCreator for Qt Quick Development mostly.
  2. Should i continue setting up the codebase in my very windows machine or should i switch to WSL instead.

view this post on Zulip Daniel Rossberg (Feb 20 2026 at 13:38):

  1. We use the C++ API from Qt. Using Qt Creator is probably not an option here, because most of the work has to be done under the hood. Qt Creator may be an option for designing a new GUI, but extending an existing one and connecting it to to the BRL-CAD libraries, requires good old coding.
  2. It would be good, if you have a Windows and Linux system on hand. It doesn't matter, what your primary system is, but you should be able to ensure that your code works with both.

view this post on Zulip Abhishek (Feb 20 2026 at 13:50):

okay,got it
That really helped.

view this post on Zulip Abhishek (Feb 22 2026 at 09:58):

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

view this post on Zulip Abhishek (Feb 22 2026 at 09:59):

should i share the terminal logs here to get the clear picture so that you can help me in figuring it out

view this post on Zulip Abhishek (Feb 22 2026 at 18:29):

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

view this post on Zulip Daniel Rossberg (Feb 22 2026 at 18:44):

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

view this post on Zulip Daniel Rossberg (Feb 22 2026 at 18:49):

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.

view this post on Zulip Daniel Rossberg (Feb 22 2026 at 18:50):

This seems to have been worked a year ago.

view this post on Zulip Sean (Feb 22 2026 at 18:53):

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.

view this post on Zulip Abhishek (Feb 23 2026 at 14:04):

@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

view this post on Zulip Abhishek (Feb 23 2026 at 14:11):

Do i have to build BRLCAD in the parent folder(bext) and then proceed to BRLCAD build ?

view this post on Zulip Abhishek (Feb 23 2026 at 14:36):

Instead of Bext i just turn this flag on = -DBRLCAD_BUNDLED_LIBS=ON in the brlcad build only.

view this post on Zulip Sean (Feb 23 2026 at 18:52):

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

view this post on Zulip Abhishek (Feb 25 2026 at 13:23):

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.

view this post on Zulip Sean (Mar 01 2026 at 22:34):

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

view this post on Zulip Володимир (Mar 10 2026 at 06:32):

please help me install brlcad on arch linux

view this post on Zulip Nilesh Vishwakarma (Mar 10 2026 at 07:39):

"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."

view this post on Zulip Володимир (Mar 10 2026 at 07:59):

i just used aur, the readme file is too complicated

view this post on Zulip Володимир (Mar 10 2026 at 08:03):

no, its not work

view this post on Zulip Daniel Rossberg (Mar 10 2026 at 08:53):

@Володимир, 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