[Paraview] [EXTERNAL] paraview cmake can't find proper qt
Scott, W Alan
wascott at sandia.gov
Fri Jan 9 16:05:07 EST 2015
Jeff,
I probably hit Qt with too big of a hammer, but try the following (Python, but you get the idea).
I believe that the most important single line below is setting the MOC executable.
Alan
'-DQT_INCLUDE_DIR:PATH='+qtInstallDir+'/include '+\
'-DQT_MOC_EXECUTABLE:FILEPATH='+qtInstallDir+'/bin/moc ' +\
'-DQT_QMAKE_EXECUTABLE:FILEPATH='+qtInstallDir+'/bin/qmake ' +\
'-DQT_UIC_EXECUTABLE:FILEPATH='+qtInstallDir+'/bin/uic '
# During build, we are having issues linking to Qt - specifically the
# libQtXml.so library. Let's add the Qt library path to LD_LIBRARY_PATH.
path = os.environ.get('LD_LIBRARY_PATH')
os.environ['LD_LIBRARY_PATH']=qtInstallDir+'/lib/:'+path
-----Original Message-----
From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Jeff Becker
Sent: Friday, January 09, 2015 11:00 AM
To: paraview at paraview.org
Subject: [EXTERNAL] [Paraview] paraview cmake can't find proper qt
Hi. My initial run of ccmake complained that my distro's qt was too old, so I downloaded and built/installed a supported version in /usr/local/Trolltech/Qt-4.8.6. Thus I set:
//Where can the qmake-qt4 library be found QT_QMAKE_EXECUTABLE:FILEPATH=/usr/local/Trolltech/Qt-4.8.6/bin/qmake
However, even though ccmake completes (allowing the g key to be activated), the qt libraries/executables listed in CMakeCache.txt are all from the distro's versions (in /usr/lib64/qt4). E.g.,
//Path to a library.
QT_CUSTOMWIDGETPLUGIN_PLUGIN_RELEASE:FILEPATH=/usr/lib64/qt4/plugins/designer/libcustomwidgetplugin.so
//Path to a program.
QT_DBUSCPP2XML_EXECUTABLE:FILEPATH=/usr/lib64/qt4/bin/qdbuscpp2xml
Is there a QTHOME or similar variable I need to set to get the right libraries/executables? Thanks.
-jeff
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
More information about the ParaView
mailing list