qt4/qt5 and qtpaint package on Ubuntu

21 views
Skip to first unread message

Stéphane Laurent

unread,
Dec 22, 2015, 8:05:53 AM12/22/15
to cranvas
Hello,


I'm using Ubuntu 14.04. I followed the instructions given on cranvas.org to install qt :
sudo apt-add-repository -y "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install libqt4-dev qt4-qmake cmake r-base-dev libcurl4-gnutls-dev

The I got a problem to install qtpaint by doing
install_github('ggobi/qtpaint')

It looked like the installation required Qt5 whereas I have Qt4 installed.

I managed to install it by doing that instead:
install_github('qtpaint', 'ggobi', ref='5a2a582')

But now I cant update to qtpaint 0.9.1, I get some error messages. 

Is there a way to fix that ?

Cranvas works with my installation but not very well. I got a problem with 
qtime(..., group=...)

The group argument is ignored: the graphic is the same if I remove it.  
Could it be due to the above problem or is it something else ?




Stéphane Laurent

unread,
Dec 22, 2015, 8:52:39 AM12/22/15
to cranvas
After installing
sudo apt-get install qtbase5-dev
I have reinstalled all the packages, without problem.
But now I get another error :
> library(cranvas)
Error : .onLoad a échoué dans loadNamespace() pour 'qtbase', détails :
  appel : fun(libname, pkgname)
  erreur : FATAL: This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem.
I have spent some time with Google to install this plugin, but I'm totally lost...

Xiaoyue Cheng

unread,
Dec 22, 2015, 11:21:25 AM12/22/15
to cranvas
Here is the answer to the very last question:

"group" is not an argument for qtime any more. You can use vdiv=... for vertical faceting (pressing key V) or hdiv=... for horizontal faceting (pressing key H).

Stéphane Laurent

unread,
Dec 22, 2015, 12:08:35 PM12/22/15
to cranvas
Thank you ! hdiv gives what I wanted. 

I still have the problem qit QT5. 
So I removed all the packages and I reinstalled as in my first post after typing Sys.setenv(QT_SELECT="4")
Reply all
Reply to author
Forward
0 new messages