--
You received this message because you are subscribed to the Google Groups "cranvas" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cranvas+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
It is a similar story for me:
i) pure 'R CMD install qtbase' results in missing libQt5Widgets.so.5
ii) adding Qt5 libs to LD_LIBRARY_PATH helps, but R CMD install qtbase then results in:error: unable to load shared object '/home/user/R/i686-redhat-linux-gnu-library/2.15/qtbase/libs/qtbase.so':
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'qtbase', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
/home/user/R/i686-redhat-linux-gnu-library/2.15/qtbase/libs/qtbase.so: undefined symbol: _ZTI9QUiLoader
Error: loading failedI can't find the _ZTI9QUiLoader symbol in Qt5 shared libs.
Creating a fake shared lib with _ZTI9QUiLoader (and some more symbols) defined and forcing it to be loaded via LD_PRELOAD works - R CMD install succeeds. However, I can't load the qtbase lib in R for the very same problem (_ZTI9QUiLoader missing).
On Thu, Dec 5, 2013 at 12:29 PM, Tomas Sieger <tomas....@seznam.cz> wrote:
It is a similar story for me:
i) pure 'R CMD install qtbase' results in missing libQt5Widgets.so.5
This seems like an Ubuntu issue. Why would the Qt5 libs not be in the LD_LIBRARY_PATH by default? Is Qt5 not officially supported?
ii) adding Qt5 libs to LD_LIBRARY_PATH helps, but R CMD install qtbase then results in:error: unable to load shared object '/home/user/R/i686-redhat-linux-gnu-library/2.15/qtbase/libs/qtbase.so':
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'qtbase', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
/home/user/R/i686-redhat-linux-gnu-library/2.15/qtbase/libs/qtbase.so: undefined symbol: _ZTI9QUiLoader
Error: loading failedI can't find the _ZTI9QUiLoader symbol in Qt5 shared libs.That's the QUiLoader typeinfo. If you do a R CMD ldd on the qtbase.so, do you see it linking to QtUiTools?
Creating a fake shared lib with _ZTI9QUiLoader (and some more symbols) defined and forcing it to be loaded via LD_PRELOAD works - R CMD install succeeds. However, I can't load the qtbase lib in R for the very same problem (_ZTI9QUiLoader missing).
Would be very helpful to get a list of those symbols.
Yea, looks like UiTools only builds statically, not sure why.
The symbol is intentionally local so that when the static lib is linked into a shared object, the symbols are not exposed. At the object file level, everything should be visible, I think.
The static lib is probably getting linked twice, first into the libsmokeqt.a (the smoke bindings, which is linked to qtbase.so), and then again into qtbase.so directly. Maybe that is causing an issue?
Somehow this got lost in the thread. This has been reported on github by someone else, and I assume you have not solved it yet. Everything is working for Tomas now, but maybe he doesn't have the QtBluetooth module?