Create some directory you want QtRoot to be installed in. For example "QtRoot".
mkdir-pQtRoot/qtrootsyscdQtRootsetenvQTROOTSYSDIR`pwd`/qtrootsys# Use the dedicated directory # to keep ROOT and QtRoot separately# setenv QTROOTSYSDIR $ROOTSYS # This will merge ROOT and QtRoot # libraries and header files
and customize either .roootrc or $ROOTSYS/etc/system.rootrc file to turn the Qt-layer "on"
Upgrade the existent installation
To upgrade the "complement" installation with the latest QtRoot version one has to
#!/bin/bashcdQtRoot
setenvQTROOTSYSDIR`pwd`/qtrootsys# Use the dedicated directory # to keep ROOT and QtRoot separately# setenv QTROOTSYSDIR $ROOTSYS # This will merge ROOT and QtRoot # libraries and header files
svncheckoutsvn://svn.code.sf.net/p/qtroot/code/trunkqtRoot
cdqtRoot
qmake# use "qmake -spec macx-g++" for MacOS
make
makeinstall
Test
To test your installation
Set the package environment. To do that you need to find and select one of the 3 shell scripts created by the "Full Installation"
source set_environment.csh
source set_environment.sh # this script is Ok for Cygwin environment as well)
source set_environment.tcsh
If you skipped the "Full Installation" you may want to set the environment "by hand" too. For example, set_environment.sh does
and then I ran make that failed badly ! The output is huge so I am attaching a txt file, but I am posting below the last few lines that states the exact error:
src/TQtContextMenuImp.cxx:17:22: fatal error: QWebView: No such file or directory
compilation terminated.
Makefile:1437: recipe for target '.obj/TQtContextMenuImp.o' failed
make[1]: *** [.obj/TQtContextMenuImp.o] Error 1
make[1]: Leaving directory '/home/me/QtRoot/qtRoot/qtgui'
Makefile:81: recipe for target 'sub-qtgui-make_default-ordered' failed
make: *** [sub-qtgui-make_default-ordered] Error 2
How can I make this work ?
Additional info:
1. I already had a Qt 5.7.1 (not root QT) installed on my Ubuntu 16.04 (64 bit) system.
2. My ROOT version is 5.34/36.
Complement the existent ROOT installation with QtRoot plugin(x11 and MacOS only)
On X11 an MacOS platforms one can complement any existent "--disable-qt" ROOT installation with the QtRoot package.
First time installation
First make sure you provide the correct ROOT and Qt environment. This means
Create some directory you want QtRoot to be installed in. For example "QtRoot".
If you opt for the dedicated directory for Qt Root then do not forget to include the new package into your environment
For MacOS one needs:
and customize either .roootrc or $ROOTSYS/etc/system.rootrc file to turn the Qt-layer "on"
Upgrade the existent installation
To upgrade the "complement" installation with the latest QtRoot version one has to
Test
To test your installation
Set the package environment. To do that you need to find and select one of the 3 shell scripts created by the "Full Installation"
If you skipped the "Full Installation" you may want to set the environment "by hand" too. For example, set_environment.sh does
For MacOS one needs
as well.
Select the qtExamples directory and build the test suite:
Last edit: Valeri Fine 2014-03-30
Hi Valeri,
then I proceed to the step,
qmake
WHICH produces the following output:and then I ran
make
that failed badly ! The output is huge so I am attaching a txt file, but I am posting below the last few lines that states the exact error:How can I make this work ?
Additional info:
1. I already had a Qt 5.7.1 (not root QT) installed on my Ubuntu 16.04 (64 bit) system.
2. My ROOT version is 5.34/36.
Thanks a lot
Related
Code: code
Last edit: quantatanu 2017-01-15