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
-- 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".
i have lua
installed
Set MODULE_LUA to OFF. You can do this in the CMake GUI too.
Daniel Rossberg said:
Set MODULE_LUA to OFF. You can do this in the CMake GUI too.
that worked like a charm
but do you have any idea why this is happening
i installed all the three versions of lua but it detected none of them
Did you installed the development package too?
dont know about that one
but i dont think i have installed that
e.g. liblua5.3-dev
nope
that might be the reason then i guess
Probably, the build of the Lua binding needs the Lua header files.
will try that out later
can you give me little example of trying out rt-cubed like printing the title or something like that?
or where can i look for that
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.
is raytracing available in rt-cubed and/or MOOSE?
i want to test it out
Yes, this is one of the main features of this API.
Any examples I can check?
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.
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)
it was having problmes with BRLCAD_MOOSE_EXPORT
so i was using the rt-cubed repo
Last updated: Jan 09 2025 at 00:46 UTC