[Paraview] Qt, OSX and pv310

Randy Hudson hudson at mcs.anl.gov
Wed Aug 22 14:08:32 EDT 2007



On my OSX 10.4.10 Intel Mac, I've been trying to build paraview 3.1.0 (without my flash-file readers; just vanilla paraview) with 
Qt and the build fails (with an out-of-date libQtUiTools.a) when "Linking CXX executable 
../../bin/paraview.app/Contents/MacOS/paraview".


I changed very few cmake parameters.  Here are their values during the build:
-----------------------------------------------------------------------------
BUILD_TESTING                    OFF
CMAKE_INSTALL_PREFIX             ./install
CMAKE_VERBOSE_MAKEFILE           ON


I've tried this with Qt 4.2.3, 4.3.0 (a coworker had used that one with success) and 4.3.1 -- all with the same failure, although 
in the "Linking CXX shared library ../../bin/libQtTesting.dylib" step of the build.


Here's the printout from the build w/ qt 4.3.0:
-----------------------------------------------
Linking CXX executable ../../bin/paraview.app/Contents/MacOS/paraview
cd /Users/hudson/Software/ParaView/ParaView.3.1.0/build/Applications/Client && /usr/bin/cmake -P 
CMakeFiles/paraview.dir/cmake_clean_target.cmake
cd /Users/hudson/Software/ParaView/ParaView.3.1.0/build/Applications/Client && /usr/bin/c++     -Wno-deprecated -noprebind 
-headerpad_max_install_names -fPIC "CMakeFiles/paraview.dir/AboutDialog.o" "CMakeFiles/paraview.dir/MainWindow.o" 
"CMakeFiles/paraview.dir/main.o" "CMakeFiles/paraview.dir/ProcessModuleGUIHelper.o" "CMakeFiles/paraview.dir/moc_AboutDialog.o" 
"CMakeFiles/paraview.dir/moc_MainWindow.o" "CMakeFiles/paraview.dir/qrc_Resources.o"   -o 
../../bin/paraview.app/Contents/MacOS/paraview  -L/Users/hudson/Software/ParaView/ParaView.3.1.0/build/bin -lpqComponents -lpqCore 
-lpqWidgets -lQtChart -lQtTesting -F/Library/Frameworks -framework QtAssistant -lQtUiTools -framework QtGui -framework Carbon 
-framework QuickTime -framework QtXml -framework QtNetwork -framework QtCore -framework ApplicationServices -lQVTK -framework 
QtGui -framework QuickTime -framework QtCore -framework ApplicationServices -lQtUiTools -lvtkPVServerManager -lvtkPVFiltersCS 
-lvtkPVFilters -lvtkPVServerCommonCS -lvtkPVServerCommon -lvtkPVCommandOptions -lvtkWidgetsCS -lvtkhdf5 -lvtkParallelCS 
-lvtkParallel -lvtkHybridCS -lvtkVolumeRenderingCS -lvtkVolumeRendering -lKWCommon -lvtkInfovisCS -lvtkInfovis -lvtkWidgets 
-lvtkHybrid -lvtkexoIIc -lvtklibxml2 -ldl -lreadline -lm -lvtkRenderingCS -lvtkRendering -lvtkftgl -lvtkfreetype -framework OpenGL 
-framework AGL -framework Carbon -lvtkGenericFilteringCS -lvtkGenericFiltering -lvtkGraphicsCS -lvtkGraphics -lverdict 
-lvtkImagingCS -lvtkImaging -lvtkIOCS -lvtkIO -lvtkDICOMParser -lvtkNetCDF -lvtkmetaio -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg 
-lvtkexpat -lvtkFilteringCS -lvtkFiltering -lvtkCommonCS -lvtkClientServer -lvtkCommon -lvtksys -lpthread -lm
/usr/bin/ld: table of contents for archive: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libQtUiTools.a is out of date; rerun 
ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libQtUiTools.a is out of date; rerun 
ranlib(1) (can't load from it)
collect2: ld returned 1 exit status
make[2]: *** [bin/paraview.app/Contents/MacOS/paraview] Error 1
make[1]: *** [Applications/Client/CMakeFiles/paraview.dir/all] Error 2
make: *** [all] Error 2


If I run ranlib against libQtUiTools.a, as suggested in the error message,
then I get undefined symbol "___dso_handle":
-------------------------------------------
Linking CXX shared library ../../bin/libpqCore.dylib
cd /Users/hudson/Software/ParaView/ParaView.3.1.0/build_flashreaders/Qt/Core && /usr/bin/cmake -P 
CMakeFiles/pqCore.dir/cmake_clean_target.cmake
cd /Users/hudson/Software/ParaView/ParaView.3.1.0/build_flashreaders/Qt/Core && /usr/bin/cmake -E cmake_link_script 
CMakeFiles/pqCore.dir/link.txt --verbose=1
/usr/bin/c++  -I/Users/hudson/Software/netcdf-3.6.2/install_dir/include -DWITH_PARTICLES -DDATA_PARTITIONED 
-DMPICH_IGNORE_CXX_SEEK -Wno-deprecated -noprebind -dynamiclib -headerpad_max_install_names  -o ../../bin/libpqCore.dylib 
-install_name libpqCore.dylib "CMakeFiles/pqCore.dir/pq3DWidgetFactory.o" "CMakeFiles/pqCore.dir/pqAnimationCue.o" 
"CMakeFiles/pqCore.dir/pqAnimationScene.o" "CMakeFiles/pqCore.dir/pqAnimationSceneImageWriter.o" 
"CMakeFiles/pqCore.dir/pqApplicationCore.o" "CMakeFiles/pqCore.dir/pqBarChartRepresentation.o" 
"CMakeFiles/pqCore.dir/pqCommandServerStartup.o" "CMakeFiles/pqCore.dir/pqCoreInit.o" "CMakeFiles/pqCore.dir/pqCoreTestUtility.o" 
"CMakeFiles/pqCore.dir/pqDataRepresentation.o" "CMakeFiles/pqCore.dir/pqDisplayPolicy.o" 
"CMakeFiles/pqCore.dir/pqElementInspectorView.o" "CMakeFiles/pqCore.dir/pqFileDialog.o" 
"CMakeFiles/pqCore.dir/pqFileDialogEventPlayer.o" "CMakeFiles/pqCore.dir/pqFileDialogEventTranslator.o" 
"CMakeFiles/pqCore.dir/pqFileDialogFavoriteModel.o" "CMakeFiles/pqCore.dir/pqFileDialogFilter.o" 
"CMakeFiles/pqCore.dir/pqFileDialogModel.o" "CMakeFiles/pqCore.dir/pqFlatTreeViewEventPlayer.o" 
"CMakeFiles/pqCore.dir/pqFlatTreeViewEventTranslator.o" "CMakeFiles/pqCore.dir/pqFormBuilder.o" 
"CMakeFiles/pqCore.dir/pqHelperProxyRegisterUndoElement.o" "CMakeFiles/pqCore.dir/pqHistogramTableModel.o" 
"CMakeFiles/pqCore.dir/pqImageUtil.o" "CMakeFiles/pqCore.dir/pqLineChartRepresentation.o" "CMakeFiles/pqCore.dir/pqLinksModel.o" 
"CMakeFiles/pqCore.dir/pqLinkViewWidget.o" "CMakeFiles/pqCore.dir/pqLookupTableManager.o" "CMakeFiles/pqCore.dir/pqMain.o" 
"CMakeFiles/pqCore.dir/pqManualServerStartup.o" "CMakeFiles/pqCore.dir/pqNameCount.o" "CMakeFiles/pqCore.dir/pqOptions.o" 
"CMakeFiles/pqCore.dir/pqObjectBuilder.o" "CMakeFiles/pqCore.dir/pqOutputWindow.o" "CMakeFiles/pqCore.dir/pqOutputWindowAdapter.o" 
"CMakeFiles/pqCore.dir/pqPendingDisplayManager.o" "CMakeFiles/pqCore.dir/pqPendingDisplayUndoElement.o" 
"CMakeFiles/pqCore.dir/pqPipelineFilter.o" "CMakeFiles/pqCore.dir/pqPipelineSource.o" 
"CMakeFiles/pqCore.dir/pqPipelineRepresentation.o" "CMakeFiles/pqCore.dir/pqPlotView.o" "CMakeFiles/pqCore.dir/pqPluginManager.o" 
"CMakeFiles/pqCore.dir/pqProcessModuleGUIHelper.o" "CMakeFiles/pqCore.dir/pqProgressManager.o" 
"CMakeFiles/pqCore.dir/pqPropertyLinks.o" "CMakeFiles/pqCore.dir/pqPropertyManager.o" "CMakeFiles/pqCore.dir/pqProxy.o" 
"CMakeFiles/pqCore.dir/pqProxyUnRegisterUndoElement.o" "CMakeFiles/pqCore.dir/pqQVTKWidgetEventPlayer.o" 
"CMakeFiles/pqCore.dir/pqQVTKWidgetEventTranslator.o" "CMakeFiles/pqCore.dir/pqReaderFactory.o" 
"CMakeFiles/pqCore.dir/pqRenderView.o" "CMakeFiles/pqCore.dir/pqRenderViewProxy.o" "CMakeFiles/pqCore.dir/pqRepresentation.o" 
"CMakeFiles/pqCore.dir/pqSMAdaptor.o" "CMakeFiles/pqCore.dir/pqSMProxy.o" "CMakeFiles/pqCore.dir/pqScalarBarVisibilityAdaptor.o" 
"CMakeFiles/pqCore.dir/pqScalarsToColors.o" "CMakeFiles/pqCore.dir/pqServer.o" "CMakeFiles/pqCore.dir/pqServerManagerModel.o" 
"CMakeFiles/pqCore.dir/pqServerManagerModelItem.o" "CMakeFiles/pqCore.dir/pqServerManagerObserver.o" 
"CMakeFiles/pqCore.dir/pqServerManagerSelectionModel.o" "CMakeFiles/pqCore.dir/pqServerResource.o" 
"CMakeFiles/pqCore.dir/pqServerResources.o" "CMakeFiles/pqCore.dir/pqServerStartupContext.o" 
"CMakeFiles/pqCore.dir/pqServerStartups.o" "CMakeFiles/pqCore.dir/pqSettings.o" 
"CMakeFiles/pqCore.dir/pqScalarBarRepresentation.o" "CMakeFiles/pqCore.dir/pqStandardServerManagerModelInterface.o" 
"CMakeFiles/pqCore.dir/pqStandardViewModules.o" "CMakeFiles/pqCore.dir/pqTableView.o" 
"CMakeFiles/pqCore.dir/pqTextRepresentation.o" "CMakeFiles/pqCore.dir/pqTimeKeeper.o" "CMakeFiles/pqCore.dir/pqUndoStack.o" 
"CMakeFiles/pqCore.dir/pqView.o" "CMakeFiles/pqCore.dir/pqVTKHistogramColor.o" "CMakeFiles/pqCore.dir/pqVTKHistogramModel.o" 
"CMakeFiles/pqCore.dir/pqVTKLineChartSeries.o" "CMakeFiles/pqCore.dir/pqWriterFactory.o" "CMakeFiles/pqCore.dir/pqXMLUtil.o" 
"CMakeFiles/pqCore.dir/moc_pq3DWidgetFactory.o" "CMakeFiles/pqCore.dir/moc_pqAnimationCue.o" 
"CMakeFiles/pqCore.dir/moc_pqAnimationScene.o" "CMakeFiles/pqCore.dir/moc_pqApplicationCore.o" 
"CMakeFiles/pqCore.dir/moc_pqBarChartRepresentation.o" "CMakeFiles/pqCore.dir/moc_pqCommandServerStartup.o" 
"CMakeFiles/pqCore.dir/moc_pqCoreTestUtility.o" "CMakeFiles/pqCore.dir/moc_pqDataRepresentation.o" 
"CMakeFiles/pqCore.dir/moc_pqDisplayPolicy.o" "CMakeFiles/pqCore.dir/moc_pqElementInspectorView.o" 
"CMakeFiles/pqCore.dir/moc_pqFileDialog.o" "CMakeFiles/pqCore.dir/moc_pqFileDialogEventTranslator.o" 
"CMakeFiles/pqCore.dir/moc_pqFileDialogFavoriteModel.o" "CMakeFiles/pqCore.dir/moc_pqFileDialogFilter.o" 
"CMakeFiles/pqCore.dir/moc_pqFileDialogModel.o" "CMakeFiles/pqCore.dir/moc_pqFlatTreeViewEventTranslator.o" 
"CMakeFiles/pqCore.dir/moc_pqFormBuilder.o" "CMakeFiles/pqCore.dir/moc_pqHistogramTableModel.o" 
"CMakeFiles/pqCore.dir/moc_pqLineChartRepresentation.o" "CMakeFiles/pqCore.dir/moc_pqLinksModel.o" 
"CMakeFiles/pqCore.dir/moc_pqLinkViewWidget.o" "CMakeFiles/pqCore.dir/moc_pqLookupTableManager.o" 
"CMakeFiles/pqCore.dir/moc_pqObjectBuilder.o" "CMakeFiles/pqCore.dir/moc_pqOutputWindow.o" 
"CMakeFiles/pqCore.dir/moc_pqOutputWindowAdapter.o" "CMakeFiles/pqCore.dir/moc_pqPendingDisplayManager.o" 
"CMakeFiles/pqCore.dir/moc_pqPipelineSource.o" "CMakeFiles/pqCore.dir/moc_pqPipelineFilter.o" 
"CMakeFiles/pqCore.dir/moc_pqPipelineRepresentation.o" "CMakeFiles/pqCore.dir/moc_pqPlotView.o" 
"CMakeFiles/pqCore.dir/moc_pqPluginManager.o" "CMakeFiles/pqCore.dir/moc_pqProgressManager.o" 
"CMakeFiles/pqCore.dir/moc_pqPropertyLinks.o" "CMakeFiles/pqCore.dir/moc_pqPropertyManager.o" 
"CMakeFiles/pqCore.dir/moc_pqProxy.o" "CMakeFiles/pqCore.dir/moc_pqQVTKWidgetEventTranslator.o" 
"CMakeFiles/pqCore.dir/moc_pqReaderFactory.o" "CMakeFiles/pqCore.dir/moc_pqRenderView.o" 
"CMakeFiles/pqCore.dir/moc_pqRepresentation.o" "CMakeFiles/pqCore.dir/moc_pqScalarBarRepresentation.o" 
"CMakeFiles/pqCore.dir/moc_pqScalarBarVisibilityAdaptor.o" "CMakeFiles/pqCore.dir/moc_pqScalarsToColors.o" 
"CMakeFiles/pqCore.dir/moc_pqServer.o" "CMakeFiles/pqCore.dir/moc_pqServerManagerModel.o" 
"CMakeFiles/pqCore.dir/moc_pqServerManagerModelItem.o" "CMakeFiles/pqCore.dir/moc_pqServerManagerObserver.o" 
"CMakeFiles/pqCore.dir/moc_pqServerManagerSelectionModel.o" "CMakeFiles/pqCore.dir/moc_pqServerResources.o" 
"CMakeFiles/pqCore.dir/moc_pqServerStartupContext.o" "CMakeFiles/pqCore.dir/moc_pqServerStartups.o" 
"CMakeFiles/pqCore.dir/moc_pqSettings.o" "CMakeFiles/pqCore.dir/moc_pqStandardServerManagerModelInterface.o" 
"CMakeFiles/pqCore.dir/moc_pqStandardViewModules.o" "CMakeFiles/pqCore.dir/moc_pqTableView.o" 
"CMakeFiles/pqCore.dir/moc_pqTextRepresentation.o" "CMakeFiles/pqCore.dir/moc_pqTimeKeeper.o" 
"CMakeFiles/pqCore.dir/moc_pqUndoStack.o" "CMakeFiles/pqCore.dir/moc_pqView.o" "CMakeFiles/pqCore.dir/moc_pqVTKHistogramModel.o" 
"CMakeFiles/pqCore.dir/moc_pqWriterFactory.o" "CMakeFiles/pqCore.dir/moc_pqPythonEventSourceImage.o" 
"CMakeFiles/pqCore.dir/qrc_pqCore.o" "CMakeFiles/pqCore.dir/pqPythonEventSourceImage.o" "CMakeFiles/pqCore.dir/vtkPVAxesWidget.o" 
"CMakeFiles/pqCore.dir/vtkPVAxesActor.o" -L/Users/hudson/Software/ParaView/ParaView.3.1.0/build_flashreaders/bin 
-L/Users/hudson/Software/netcdf-3.6.2/install_dir/lib -L/Users/hudson/Projects/Utilities/build 
-L/Users/hudson/Software/VisPrep/build_paraview -L/Users/hudson/Software/mpich2-1.0.5p4/install/lib -lQtChart -lQtTesting 
-lpqWidgets -lQVTK -lQtUiTools -lvtkPVServerManager -lvtkInfovisCS -framework Python -lQtUiTools -F/Library/Frameworks -framework 
QtXml -framework QtNetwork -framework QtGui -framework QuickTime -framework QtCore -lz -framework ApplicationServices 
-lvtkPVFiltersCS -lvtkPVFilters -lvtkPVServerCommonCS -lvtkPVServerCommon -lvtkInfovisCS -lvtkPVCommandOptions -lvtkWidgetsCS 
-lvtkPVPythonInterpretor -framework Python -lvtkhdf5 -lnetcdf_c++ -lnetcdf -lMyUtilities -lVisPrep_for_ParaView -licet_mpi 
-licet_strategies -licet -lvtkParallelCS -lvtkParallel -lmpich -lpmpich -lvtkHybridCS -lvtkVolumeRenderingCS -lvtkVolumeRendering 
-lKWCommon -lvtkInfovis -lvtkWidgets -lvtkHybrid -lvtkexoIIc -lvtklibxml2 -ldl -lreadline -lm -lvtkRenderingCS -lvtkRendering 
-lvtkftgl -lvtkfreetype -framework OpenGL -framework AGL -framework Carbon -lvtkGenericFilteringCS -lvtkGenericFiltering 
-lvtkGraphicsCS -lvtkGraphics -lverdict -lvtkImagingCS -lvtkImaging -lvtkIOCS -lvtkIO -lvtkDICOMParser -lvtkNetCDF -lvtkmetaio 
-lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -lvtkFilteringCS -lvtkFiltering -lvtkCommonCS -lvtkClientServer -lvtkCommon 
-lvtksys -lpthread -lm
ld: Undefined symbols:
___dso_handle
/usr/bin/libtool: internal link edit command failed
make[2]: *** [bin/libpqCore.dylib] Error 1
make[1]: *** [Qt/Core/CMakeFiles/pqCore.dir/all] Error 2
make: *** [all] Error 2



-- 

Randy.



More information about the ParaView mailing list