Problem installing cranvas (specifically install_github('qtbase', 'ggobi'))

219 views
Skip to first unread message

alobo...@gmail.com

unread,
Nov 19, 2013, 3:37:15 AM11/19/13
to cra...@googlegroups.com
Hi!
I get this error (linuxmint Olivia based on Ubuntu raring) when I try to follow directions in
http://cranvas.org/download.html

I do have all dependencies:
$ sudo apt-get install libqt4-dev qt4-qmake cmake r-base-dev libcurl4-gnutls-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
r-base-dev is already the newest version.
cmake is already the newest version.
libcurl4-gnutls-dev is already the newest version.
libqt4-dev is already the newest version.
qt4-qmake is already the newest version.

and have qtbase from cran. 
Also, install_github('qtpaint', 'ggobi')
went on ok, but have the following problem at
install_github('qtbase', 'ggobi'):

> install_github('qtbase', 'ggobi')
Installing github repo(s) qtbase/master from ggobi
Downloading qtbase.zip from https://github.com/ggobi/qtbase/archive/master.zip
Installing package from /tmp/Rtmp69RVua/qtbase.zip
Installing qtbase
'/usr/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/Rtmp69RVua/qtbase-master' --library='/home/alobo/R/x86_64-pc-linux-gnu-library/3.0' --with-keep.source  \
  --install-tests

* installing *source* package 'qtbase' ...
** libs
** arch -
mkdir -p ../kdebindings-build;
cd ../kdebindings-build; \
    cmake ../kdebindings -DR_CXX="g++" -DCMAKE_CXX_FLAGS=" " -DCMAKE_SHARED_LINKER_FLAGS="   -shared" \
          -DCMAKE_INSTALL_PREFIX=../inst/local \
          -DCMAKE_EXE_LINKER_FLAGS="  " \
          -DCMAKE_MODULE_LINKER_FLAGS="  "; \
    LD_LIBRARY_PATH=../../generator/bin make install
CMake Warning at CMakeLists.txt:5 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core" with any
  of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.


CMake Error at generator/parser/CMakeLists.txt:41 (qt5_use_modules):
  Unknown CMake command "qt5_use_modules".


-- Configuring incomplete, errors occurred!
make[1]: Entering directory `/tmp/Rtmp69RVua/qtbase-master/kdebindings-build'
make[1]: Leaving directory `/tmp/Rtmp69RVua/qtbase-master/kdebindings-build'
make[1]: *** No rule to make target `install'.  Stop.
make: *** [all] Error 2
ERROR: compilation failed for package 'qtbase'
* removing '/home/alobo/R/x86_64-pc-linux-gnu-library/3.0/qtbase'
* restoring previous '/home/alobo/R/x86_64-pc-linux-gnu-library/3.0/qtbase'
Error: Command failed (1)

I'm kind of lost here, don't know what to do. Any help?
Thanks

Michael Lawrence

unread,
Nov 19, 2013, 7:08:42 AM11/19/13
to cra...@googlegroups.com
The download instructions apply only to the version of qtbase in CRAN. The master branch has already moved to Qt5, so those instructions are out of date. You'll need to get the qt5 equivalent of everything.

Michael


--
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.

alobo...@gmail.com

unread,
Nov 19, 2013, 7:39:21 AM11/19/13
to cra...@googlegroups.com
Michael,
do you know if I can have qt4 and qt5 at the same time? If not, would qt4-based applications be happy with qt5?
I have other applications using qt (i.e. qgis).
Otherwise, may be I rather stay on the cran version,which I assume stable. Is there a link summarizing the differences?

Thanks
Agus

Michael Lawrence

unread,
Nov 19, 2013, 7:54:47 AM11/19/13
to cra...@googlegroups.com
I would just rely on the CRAN version for now. Not everything has been tested with Qt5. That said, both qt4 and qt5 should peacefully coexist on your system.

Michael

Karel Fišer

unread,
Feb 24, 2014, 2:18:36 AM2/24/14
to cra...@googlegroups.com
I have similar issue (Ubuntu). Seems to be similar to http://askubuntu.com/questions/374755/what-package-do-i-need-to-build-a-qt-5-cmake-application.
Do we need qt*5-dev, names?



sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C             
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_GB.UTF-8   
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_GB.UTF-8  
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                
 [9] LC_ADDRESS=C               LC_TELEPHONE=C           
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C      

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages:
[1] devtools_1.4.1

loaded via a namespace (and not attached):
[1] digest_0.6.4   evaluate_0.5.1 httr_0.2       memoise_0.1    parallel_3.0.2
[6] RCurl_1.95-4.1 stringr_0.6.2  tools_3.0.2    whisker_0.3-2

Michael Lawrence

unread,
Feb 24, 2014, 8:53:25 AM2/24/14
to cra...@googlegroups.com
If you're asking whether you need the -dev packages installed to build qtbase, the answer is definitely "yes".

Michael


--

Karel Fišer

unread,
Feb 24, 2014, 9:14:09 AM2/24/14
to cra...@googlegroups.com
No, I were not. I felt like the path was not found only. However it was perhaps my fault. Will try to update qt packages...
thnaks
Reply all
Reply to author
Forward
0 new messages