Stream: brlcad

Topic: query


view this post on Zulip Omkar Nikam (Apr 08 2024 at 16:14):

Hi wonderful brlcad community , I was trying to run ( last step )the binaries but unfortunately I am not able to ; as mentioned Here :
"You can run the binaries you just compiled as they are in the brlcad/build/bin directory. On Windows, they can be in Debug/ or Release/ folders." but , in my case , there i cannot locate these binaries :
And please let me know where to run these commands;
bin/benchmark run
bin/mged
bin/archer
because on vs terminal i tried to run them , but I am getting some errors.

sincerely,
Omkar

view this post on Zulip Daniel Rossberg (Apr 10 2024 at 17:11):

Hi @Omkar Nikam, what have you done meanwhile? It looks like, you managed to clone the brlcad repository on your computer. And then? Did you build the ALL_BUILD project in Visual Studio at the end?

view this post on Zulip Matteo Balice (Apr 10 2024 at 17:42):

Sorry, how can I insert some validation tests for a feature i added in the ray tracing?

view this post on Zulip Daniel Rossberg (Apr 11 2024 at 06:20):

Where did you added the feature? Librt? In this case, src/librt/tests would be the right place.

view this post on Zulip Matteo Balice (Apr 11 2024 at 08:02):

Daniel Rossberg ha scritto:

Where did you added the feature? Librt? In this case, src/librt/tests would be the right place.

No, I added it in src/rt/rtsurf.c

view this post on Zulip Daniel Rossberg (Apr 11 2024 at 08:25):

How about adding a BRLCAD_ADD_TEST() line to src/rt/CMakeLists.txt?

view this post on Zulip Matteo Balice (Apr 11 2024 at 08:56):

Daniel Rossberg ha scritto:

BRLCAD_ADD_TEST

How does it work?

view this post on Zulip Daniel Rossberg (Apr 11 2024 at 09:50):

You declare your test, e.g. the executable to run, parameters, ..., in the BRLCAD_ADD_TEST() expression. See at other CMakeLists.txt for examples and at misc/CMake/BRLCAD_Test_Wrappers.cmake for its implementation.

To run the tests, run make test with gcc or build the RUN_TESTS CMake target in MS Visual Studio.

view this post on Zulip Matteo Balice (Apr 12 2024 at 13:24):

Daniel Rossberg ha scritto:

You declare your test, e.g. the executable to run, parameters, ..., in the BRLCAD_ADD_TEST() expression. See at other CMakeLists.txt for examples and at misc/CMake/BRLCAD_Test_Wrappers.cmake for its implementation.

To run the tests, run make test with gcc or build the RUN_TESTS CMake target in MS Visual Studio.

Since the function to test needs a .g file and some objects inside it, are there any files I can already use to test?

view this post on Zulip Himanshu (Apr 12 2024 at 17:06):

Matteo Balice said:

Daniel Rossberg ha scritto:

You declare your test, e.g. the executable to run, parameters, ..., in the BRLCAD_ADD_TEST() expression. See at other CMakeLists.txt for examples and at misc/CMake/BRLCAD_Test_Wrappers.cmake for its implementation.

To run the tests, run make test with gcc or build the RUN_TESTS CMake target in MS Visual Studio.

Since the function to test needs a .g file and some objects inside it, are there any files I can already use to test?

You can find it under installed dir of brlcad or say your build dir of brlcad and then navigate to share/db/.

view this post on Zulip Daniel Rossberg (Apr 12 2024 at 17:06):

Looking at src/libged/tests, checking in a test.g and referring it as "${CMAKE_CURRENT_SOURCE_DIR}/test.g" works.

Maybe, something like "${CMAKE_BINARY_DIR}/share/db/castle.g" works too, I just could not find an example with it.

view this post on Zulip Matteo Balice (Apr 14 2024 at 16:42):

Once I have uploaded a .g file in mged, what is the terminal command to see all the objects inside it?

view this post on Zulip Himanshu (Apr 14 2024 at 16:49):

Matteo Balice said:

Once I have uploaded a .g file in mged, what is the terminal command to see all the objects inside it?

lsto list the objects. Here you can take reference if you need something further MGED_Reference_Card.ind (brlcad.org)

view this post on Zulip Daniel Rossberg (Apr 14 2024 at 18:06):

tops gives you the list of top level objects.


Last updated: Oct 09 2024 at 00:44 UTC