> Hmm. What about making your own copy of the arguments when they do
> exist and referencing your local copy so you don't have to depend on
> them surviving during the runtime process? Can you get away with that
> or does Qt not let you?
This is extracted from the Qt documentation:
Warning: The data referred to by argc and argv must stay valid for the entire
lifetime of the QApplication <http://qt-project.org/doc/qt-5/qapplication.html>
object. In addition, argc must be greater than zero and argv must contain at
least one valid character string.
So, even though I make a copy it has to survive during the runtime process not
just to be valid when dm_open is called.
> Um. I'd suggest just installing the standard binary Qt package on OSX
> rather than trying to build it, if you mean you're trying to compile
> Qt itself from sources. Or do you man BRL-CAD's FindGL isn't working?
I’ve installed the standard binary package, but when building BRL-CAD with
cmake Qt searches for OpenGL as an extra lib and I couldn’t find why the
_qt5gui_find_extra_libs fails. However, since I don’t really know if this is
necessary since we don’t use OpenGL in Qt, I disabled the search and managed to
successfully build. However, I have some observations regarding the build (on
OS X 10.10):
1. In include/bu/cv.h I get a redefinition of ntohll and htonll so I guess
there are some problems with HAVE_NTOHLL which should be defined but it isn’t.
2. When raytracing I get an assertion failed message from
BU_ASSERT_LONG(cpu_num, <, MAX_PSW) (librt/prep.c line 590). After manually
modifying cpu_num to pass the assertion everything seems to work as expected
(tested also using the new Qt frame buffer)
3. Some bad news regarding the Qt display manager: the QWindow::fromId function
used to embed Qt in Tk fails, so basically the embedded window fails to be
created. I don’t know why this happens and what should be done to solve the
problem.
Cheers,
Vlad
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel