Stream: brlcad

Topic: compiling MOOSE


view this post on Zulip Sumagna Das (Mar 08 2021 at 18:24):

Daniel Rossberg said:

The version in rt-cubed is kind of concept work. A real product would be more like this: https://github.com/drossberg/MOOSE

The functionality is basically the same, but MOOSE uses more C++11 and builds (and installs) a brlcad library (libbrlcad.so, brlcad.dll, ...) containing all necessary functions. In addition, other bindings could be added there. At the moment, it contains a raw Lua interface.

Hey
i encountered an error while building this

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:24):

-- Found BRL-CAD 7.32.1 at /usr/local
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindLua.cmake:231 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/CMakeLists.txt:42 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/sumagnadas/github/MOOSE/build/CMakeFiles/CMakeOutput.log".

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:29):

i have lua installed

view this post on Zulip Daniel Rossberg (Mar 08 2021 at 18:29):

Set MODULE_LUA to OFF. You can do this in the CMake GUI too.

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:30):

Daniel Rossberg said:

Set MODULE_LUA to OFF. You can do this in the CMake GUI too.

that worked like a charm

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:30):

but do you have any idea why this is happening

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:31):

i installed all the three versions of lua but it detected none of them

view this post on Zulip Daniel Rossberg (Mar 08 2021 at 18:41):

Did you installed the development package too?

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:42):

dont know about that one

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:42):

but i dont think i have installed that

view this post on Zulip Daniel Rossberg (Mar 08 2021 at 18:43):

e.g. liblua5.3-dev

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:44):

nope

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:44):

that might be the reason then i guess

view this post on Zulip Daniel Rossberg (Mar 08 2021 at 18:45):

Probably, the build of the Lua binding needs the Lua header files.

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:48):

will try that out later

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:49):

can you give me little example of trying out rt-cubed like printing the title or something like that?

view this post on Zulip Sumagna Das (Mar 08 2021 at 18:49):

or where can i look for that

view this post on Zulip Daniel Rossberg (Mar 08 2021 at 18:55):

The PrintTitle examply would be mainly the same. You had to adjust a directory only (I think).

However, there is an example project using MOOSE: https://github.com/drossberg/BrlCadGUI
You can use this as template for your own projects, mainly the main CMakeLists.txt.

view this post on Zulip Sumagna Das (Mar 08 2021 at 19:12):

is raytracing available in rt-cubed and/or MOOSE?

view this post on Zulip Sumagna Das (Mar 08 2021 at 19:12):

i want to test it out

view this post on Zulip Daniel Rossberg (Mar 08 2021 at 20:54):

Yes, this is one of the main features of this API.

view this post on Zulip Sumagna Das (Mar 09 2021 at 01:50):

Any examples I can check?

view this post on Zulip Daniel Rossberg (Mar 09 2021 at 11:51):

Any example from rt-cubed/tests/coreInterface should work with MOOSE, after some adaptions.

Take https://github.com/drossberg/BrlCadGUI, remove the C++ files from the source directory and replace them by PrintTitle.cpp, adapt the CMakeLists.txt files and see what happens. You would probably have to fix the include statement in the PrintTitle.cpp.

view this post on Zulip Sumagna Das (Mar 09 2021 at 13:21):

i had some problems with getting MOOSE to work with the cppyy module for python (it is the python bindings generator which i found out recently to be up to date)

view this post on Zulip Sumagna Das (Mar 09 2021 at 13:25):

it was having problmes with BRLCAD_MOOSE_EXPORT

view this post on Zulip Sumagna Das (Mar 09 2021 at 13:27):

so i was using the rt-cubed repo


Last updated: Oct 09 2024 at 00:44 UTC