Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18906 closed defect (fixed)

qtiplot build fails

Reported by: jwhowse4 Owned by: jonas@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: qtiplot

Description

Qtiplot build fails on Intel Mac running Leopard 10.5.6 and Xcode 3.1.2 with the following error.

make[1]: *** [../tmp/qtiplot/Graph.o] Error 1
make: *** [sub-qtiplot-all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_aqua_qtiplot/work/qtiplot-0.9.7.5" && make all " returned error 2
Command output: /usr/bin/g++-4.0 -c -pipe -Os -Wall -W -DSCRIPTING_CONSOLE -DSCRIPTING_DIALOG -DQT_PLUGIN -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHON -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/macports/libexec/qt4-mac/mkspecs/macx-g++ -I. -I/opt/macports/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtCore -I/opt/macports/libexec/qt4-mac/include/QtCore -I/opt/macports/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtNetwork -I/opt/macports/libexec/qt4-mac/include/QtNetwork -I/opt/macports/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtGui -I/opt/macports/libexec/qt4-mac/include/QtGui -I/opt/macports/libexec/qt4-mac/lib/QtOpenGL.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtOpenGL -I/opt/macports/libexec/qt4-mac/include/QtOpenGL -I/opt/macports/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtXml -I/opt/macports/libexec/qt4-mac/include/QtXml -I/opt/macports/libexec/qt4-mac/lib/Qt3Support.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/Qt3Support -I/opt/macports/libexec/qt4-mac/include/Qt3Support -I/opt/macports/libexec/qt4-mac/lib/QtSvg.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtSvg -I/opt/macports/libexec/qt4-mac/include/QtSvg -I/opt/macports/libexec/qt4-mac/include -I/opt/macports/libexec/qt4-mac/lib/QtAssistant.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtAssistant -I/opt/macports/libexec/qt4-mac/include/QtAssistant -I/opt/macports/include -I../3rdparty/qwtplot3d/include -I../3rdparty/qwt/src -I../3rdparty/liborigin -I../3rdparty/zlib -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/include -Isrc/plot2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I../tmp/qtiplot -I. -F/opt/macports/libexec/qt4-mac/lib -o ../tmp/qtiplot/Graph.o src/plot2D/Graph.cpp
src/plot2D/Graph.cpp: In member function 'void Graph::initScaleLimits(int)':
src/plot2D/Graph.cpp:1122: error: 'class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1122: error: 'class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp:1161: error: 'class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1162: error: 'class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp:1173: error: 'class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1177: error: 'class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp:1183: error: 'class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1184: error: 'class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp:1194: error: 'class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1198: error: 'class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp: In member function 'QString Graph::saveScale()':
src/plot2D/Graph.cpp:1988: error: 'const class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1988: error: 'const class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp:1989: error: 'const class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:1989: error: 'const class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp: In member function 'void Graph::copy(Graph*)':
src/plot2D/Graph.cpp:4097: error: 'const class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:4097: error: 'const class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp:4098: error: 'const class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:4098: error: 'const class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/Graph.cpp: In member function 'void Graph::print(QPainter*, const QRect&, const QwtPlotPrintFilter&)':
src/plot2D/Graph.cpp:5573: error: 'const class QwtScaleDiv' has no member named 'lowerBound'
src/plot2D/Graph.cpp:5573: error: 'const class QwtScaleDiv' has no member named 'upperBound'
src/plot2D/cursors.h: At global scope:
src/plot2D/cursors.h:29: warning: 'cursor_xpm' defined but not used
src/plot2D/cursors.h:66: warning: 'vizor_xpm' defined but not used
make[1]: *** [../tmp/qtiplot/Graph.o] Error 1
make: *** [sub-qtiplot-all] Error 2

Change History (17)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jonas@…
Port: qtiplot added

comment:2 Changed 16 years ago by jonas@…

Do you have the qwt port installed? qtiplot comes with it's own copy which may be modified. Try to deactivate this port before installing qtiplot and see if it helps. In this case a fix could be to reorder the include path...

comment:3 Changed 16 years ago by mf2k (Frank Schima)

I can confirm that deactivating qwt allows qtiplot to build.

comment:4 Changed 16 years ago by jwhowse4

When I deactivate the qwt port, the build still fails but with a different error.

/usr/bin/g++-4.0 -c -pipe -Os -Wall -W -DSCRIPTING_CONSOLE -DSCRIPTING_DIALOG -DQT_PLUGIN -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHON -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/macports/libexec/qt4-mac/mkspecs/macx-g++ -I. -I/opt/macports/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtCore -I/opt/macports/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtNetwork -I/opt/macports/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtGui -I/opt/macports/libexec/qt4-mac/lib/QtOpenGL.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtOpenGL -I/opt/macports/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtXml -I/opt/macports/libexec/qt4-mac/lib/Qt3Support.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/Qt3Support -I/opt/macports/libexec/qt4-mac/lib/QtSvg.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtSvg -I/opt/macports/libexec/qt4-mac/include -I/opt/macports/libexec/qt4-mac/lib/QtAssistant.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtAssistant -I/opt/macports/include -I../3rdparty/qwtplot3d/include -I../3rdparty/qwt/src -I../3rdparty/liborigin -I../3rdparty/zlib -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/include -Isrc/plot2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I../tmp/qtiplot -I. -F/opt/macports/libexec/qt4-mac/lib -o ../tmp/qtiplot/PythonScripting.o src/scripting/PythonScripting.cpp
src/scripting/PythonScripting.cpp:61:23: error: sipAPIqti.h: No such file or directory
src/scripting/PythonScripting.cpp: In member function 'bool PythonScripting::setQObject(QObject*, const char*, PyObject*)':
src/scripting/PythonScripting.cpp:336: error: 'sipWrapperType' was not declared in this scope
src/scripting/PythonScripting.cpp:336: error: 'klass' was not declared in this scope
src/scripting/PythonScripting.cpp:336: error: 'sipFindClass' was not declared in this scope
src/scripting/PythonScripting.cpp:338: error: 'sipConvertFromInstance' was not declared in this scope
make[1]: *** [../tmp/qtiplot/PythonScripting.o] Error 1
make: *** [sub-qtiplot-all] Error 2

comment:5 Changed 16 years ago by atenderholt@…

I've deactivated qwt, but qtiplot still fails to build for me:

Undefined symbols:

"_png_destroy_write_struct", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_create_info_struct", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_write_info", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_get_io_ptr", referenced from:

_gl2psUserWritePNG in gl2ps.o

"_png_set_compression_level", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_write_end", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_write_row", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_set_write_fn", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_set_IHDR", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_create_write_struct", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [qtiplot.app/Contents/MacOS/qtiplot] Error 1 make: * [sub-qtiplot-all] Error 2

This is MacPorts 1.710 trying to build 0.9.7.5 on MacOS X 10.5.6 with XCode 3.1.2. Any ideas?

comment:6 Changed 16 years ago by jonas@…

I've just commited (r49316) a new version 0.9.7.6, now using the qwt52 port (I had to create a new one because qwt-5.2 contains source incompatible changes compared to 5.1; that's what the release notes proclame).

However, I don't think the linking problem above will be affected. It smells like a problem with libpng... Could you please post the entire linking command, not only the error?

comment:7 Changed 16 years ago by mf2k (Frank Schima)

I'm not able to install qwt52. See #19222.

comment:8 in reply to:  4 ; Changed 16 years ago by gnw3

Replying to jwhowse4@…:

When I deactivate the qwt port, the build still fails but with a different error.

/usr/bin/g++-4.0 -c -pipe -Os -Wall -W -DSCRIPTING_CONSOLE -DSCRIPTING_DIALOG -DQT_PLUGIN -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHON -DGL2PS_HAVE_LIBPNG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/macports/libexec/qt4-mac/mkspecs/macx-g++ -I. -I/opt/macports/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtCore -I/opt/macports/libexec/qt4-mac/lib/QtNetwork.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtNetwork -I/opt/macports/libexec/qt4-mac/lib/QtGui.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtGui -I/opt/macports/libexec/qt4-mac/lib/QtOpenGL.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtOpenGL -I/opt/macports/libexec/qt4-mac/lib/QtXml.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtXml -I/opt/macports/libexec/qt4-mac/lib/Qt3Support.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/Qt3Support -I/opt/macports/libexec/qt4-mac/lib/QtSvg.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtSvg -I/opt/macports/libexec/qt4-mac/include -I/opt/macports/libexec/qt4-mac/lib/QtAssistant.framework/Versions/4/Headers -I/opt/macports/libexec/qt4-mac/include/QtAssistant -I/opt/macports/include -I../3rdparty/qwtplot3d/include -I../3rdparty/qwt/src -I../3rdparty/liborigin -I../3rdparty/zlib -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/lib/include -Isrc/plot2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/origin -Isrc/table -Isrc/scripting -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I../tmp/qtiplot -I. -F/opt/macports/libexec/qt4-mac/lib -o ../tmp/qtiplot/PythonScripting.o src/scripting/PythonScripting.cpp
src/scripting/PythonScripting.cpp:61:23: error: sipAPIqti.h: No such file or directory
src/scripting/PythonScripting.cpp: In member function 'bool PythonScripting::setQObject(QObject*, const char*, PyObject*)':
src/scripting/PythonScripting.cpp:336: error: 'sipWrapperType' was not declared in this scope
src/scripting/PythonScripting.cpp:336: error: 'klass' was not declared in this scope
src/scripting/PythonScripting.cpp:336: error: 'sipFindClass' was not declared in this scope
src/scripting/PythonScripting.cpp:338: error: 'sipConvertFromInstance' was not declared in this scope
make[1]: *** [../tmp/qtiplot/PythonScripting.o] Error 1
make: *** [sub-qtiplot-all] Error 2

Some python scripts used to configure qtiplot have #!/usr/bin/python, so those who have installed SIP and PyQt (as described in the qtiplot docs) in the "System" python won't see this problem:

$ cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qtiplot/work/qtiplot-0.9.7.6/qtiplot" nashi:qtiplot gwhite$ head -1 *.py ==> python-includepath.py <== #!/usr/bin/python

==> python-libs-win.py <== #!/usr/bin/python

==> python-sipcmd.py <== #!/usr/bin/python

==> qtiUtil.py <== """

==> qtiplotrc.py <== import sys, os.path

comment:9 in reply to:  6 ; Changed 16 years ago by gnw3

Replying to jonas@…:

I've just commited (r49316) a new version 0.9.7.6, now using the qwt52 port (I had to create a new one because qwt-5.2 contains source incompatible changes compared to 5.1; that's what the release notes proclame).

However, I don't think the linking problem above will be affected. It smells like a problem with libpng... Could you please post the entire linking command, not only the error?

The port file had:

#configure.args "'INCLUDEPATH += ${prefix}/include' 'LIBS += -L${prefix}/libs -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt'"

Note "-L${prefix}/libs" with an "s"! Changed to "lib" without the"s", then I get the same png library problem:

/usr/bin/g++-4.0 -headerpad_max_install_names -o qtiplot.app/Contents/MacOS/qtiplot ../tmp/qtiplot/minigzip.o ../tmp/qtiplot/qwt3d_axis.o ../tmp/qtiplot/qwt3d_color.o ../tmp/qtiplot/qwt3d_coordsys.o ../tmp/qtiplot/qwt3d_drawable.o ../tmp/qtiplot/qwt3d_mousekeyboard.o ../tmp/qtiplot/qwt3d_movements.o ../tmp/qtiplot/qwt3d_lighting.o ../tmp/qtiplot/qwt3d_colorlegend.o ../tmp/qtiplot/qwt3d_plot.o ../tmp/qtiplot/qwt3d_label.o ../tmp/qtiplot/qwt3d_types.o ../tmp/qtiplot/qwt3d_enrichment_std.o ../tmp/qtiplot/qwt3d_autoscaler.o ../tmp/qtiplot/qwt3d_io_reader.o ../tmp/qtiplot/qwt3d_io.o ../tmp/qtiplot/qwt3d_scale.o ../tmp/qtiplot/qwt3d_gridmapping.o ../tmp/qtiplot/qwt3d_parametricsurface.o ../tmp/qtiplot/qwt3d_function.o ../tmp/qtiplot/qwt3d_surfaceplot.o ../tmp/qtiplot/qwt3d_gridplot.o ../tmp/qtiplot/qwt3d_meshplot.o ../tmp/qtiplot/qwt3d_io_gl2ps.o ../tmp/qtiplot/gl2ps.o ../tmp/qtiplot/Convolution.o ../tmp/qtiplot/Correlation.o ../tmp/qtiplot/Differentiation.o ../tmp/qtiplot/ExponentialFit.o ../tmp/qtiplot/FFTFilter.o ../tmp/qtiplot/FFT.o ../tmp/qtiplot/Filter.o ../tmp/qtiplot/Fit.o ../tmp/qtiplot/FitModelHandler.o ../tmp/qtiplot/Integration.o ../tmp/qtiplot/Interpolation.o ../tmp/qtiplot/LogisticFit.o ../tmp/qtiplot/MultiPeakFit.o ../tmp/qtiplot/NonLinearFit.o ../tmp/qtiplot/PluginFit.o ../tmp/qtiplot/PolynomialFit.o ../tmp/qtiplot/SigmoidalFit.o ../tmp/qtiplot/SmoothFilter.o ../tmp/qtiplot/fft2D.o ../tmp/qtiplot/fit_gsl.o ../tmp/qtiplot/nrutil.o ../tmp/qtiplot/ExpDecayDialog.o ../tmp/qtiplot/FFTDialog.o ../tmp/qtiplot/FitDialog.o ../tmp/qtiplot/FilterDialog.o ../tmp/qtiplot/FrequencyCountDialog.o ../tmp/qtiplot/IntDialog.o ../tmp/qtiplot/InterpolationDialog.o ../tmp/qtiplot/PolynomFitDialog.o ../tmp/qtiplot/SmoothCurveDialog.o ../tmp/qtiplot/main.o ../tmp/qtiplot/ApplicationWindow.o ../tmp/qtiplot/ConfigDialog.o ../tmp/qtiplot/CustomActionDialog.o ../tmp/qtiplot/DataSetDialog.o ../tmp/qtiplot/Folder.o ../tmp/qtiplot/FindDialog.o ../tmp/qtiplot/ImportASCIIDialog.o ../tmp/qtiplot/MdiSubWindow.o ../tmp/qtiplot/OpenProjectDialog.o ../tmp/qtiplot/PlotWizard.o ../tmp/qtiplot/RenameWindowDialog.o ../tmp/qtiplot/ColorBox.o ../tmp/qtiplot/ColorButton.o ../tmp/qtiplot/ColorMapEditor.o ../tmp/qtiplot/DoubleSpinBox.o ../tmp/qtiplot/ExtensibleFileDialog.o ../tmp/qtiplot/LineNumberDisplay.o ../tmp/qtiplot/PatternBox.o ../tmp/qtiplot/PenStyleBox.o ../tmp/qtiplot/SymbolBox.o ../tmp/qtiplot/SymbolDialog.o ../tmp/qtiplot/TextFormatButtons.o ../tmp/qtiplot/AddWidgetTool.o ../tmp/qtiplot/ArrowMarker.o ../tmp/qtiplot/BoxCurve.o ../tmp/qtiplot/CanvasPicker.o ../tmp/qtiplot/DataPickerTool.o ../tmp/qtiplot/EllipseWidget.o ../tmp/qtiplot/FrameWidget.o ../tmp/qtiplot/FunctionCurve.o ../tmp/qtiplot/Graph.o ../tmp/qtiplot/Grid.o ../tmp/qtiplot/ImageWidget.o ../tmp/qtiplot/LegendWidget.o ../tmp/qtiplot/LineProfileTool.o ../tmp/qtiplot/MultiLayer.o ../tmp/qtiplot/MultiPeakFitTool.o ../tmp/qtiplot/PlotCurve.o ../tmp/qtiplot/QwtBarCurve.o ../tmp/qtiplot/QwtErrorPlotCurve.o ../tmp/qtiplot/QwtHistogram.o ../tmp/qtiplot/QwtPieCurve.o ../tmp/qtiplot/RangeSelectorTool.o ../tmp/qtiplot/RectangleWidget.o ../tmp/qtiplot/ScaleDraw.o ../tmp/qtiplot/ScaleEngine.o ../tmp/qtiplot/ScalePicker.o ../tmp/qtiplot/ScreenPickerTool.o ../tmp/qtiplot/SelectionMoveResizer.o ../tmp/qtiplot/Spectrogram.o ../tmp/qtiplot/TexWidget.o ../tmp/qtiplot/TitlePicker.o ../tmp/qtiplot/TranslateCurveTool.o ../tmp/qtiplot/VectorCurve.o ../tmp/qtiplot/AssociationsDialog.o ../tmp/qtiplot/AxesDialog.o ../tmp/qtiplot/CurvesDialog.o ../tmp/qtiplot/CurveRangeDialog.o ../tmp/qtiplot/EnrichmentDialog.o ../tmp/qtiplot/ErrDialog.o ../tmp/qtiplot/FunctionDialog.o ../tmp/qtiplot/ImageExportDialog.o ../tmp/qtiplot/LayerDialog.o ../tmp/qtiplot/LineDialog.o ../tmp/qtiplot/PlotDialog.o ../tmp/qtiplot/TextDialog.o ../tmp/qtiplot/TextEditor.o ../tmp/qtiplot/Bar.o ../tmp/qtiplot/ColorMapPreviewDialog.o ../tmp/qtiplot/Cone3D.o ../tmp/qtiplot/Graph3D.o ../tmp/qtiplot/Plot3DDialog.o ../tmp/qtiplot/SurfaceDialog.o ../tmp/qtiplot/ColorMapDialog.o ../tmp/qtiplot/Matrix.o ../tmp/qtiplot/MatrixCommand.o ../tmp/qtiplot/MatrixDialog.o ../tmp/qtiplot/MatrixModel.o ../tmp/qtiplot/MatrixSizeDialog.o ../tmp/qtiplot/MatrixValuesDialog.o ../tmp/qtiplot/importOPJ.o ../tmp/qtiplot/OriginFile.o ../tmp/qtiplot/OriginParser.o ../tmp/qtiplot/OriginDefaultParser.o ../tmp/qtiplot/Origin750Parser.o ../tmp/qtiplot/ExportDialog.o ../tmp/qtiplot/SetColValuesDialog.o ../tmp/qtiplot/SortDialog.o ../tmp/qtiplot/Table.o ../tmp/qtiplot/TableDialog.o ../tmp/qtiplot/TableStatistics.o ../tmp/qtiplot/FindReplaceDialog.o ../tmp/qtiplot/MyParser.o ../tmp/qtiplot/Note.o ../tmp/qtiplot/ScriptingEnv.o ../tmp/qtiplot/Script.o ../tmp/qtiplot/ScriptEdit.o ../tmp/qtiplot/ScriptingLangDialog.o ../tmp/qtiplot/ScriptWindow.o ../tmp/qtiplot/muParserScript.o ../tmp/qtiplot/muParserScripting.o ../tmp/qtiplot/PythonScript.o ../tmp/qtiplot/PythonScripting.o ../tmp/qtiplot/PythonSyntaxHighlighter.o ../tmp/qtiplot/sipqticmodule.o ../tmp/qtiplot/sipqtiApplicationWindow.o ../tmp/qtiplot/sipqtiQwtPlot.o ../tmp/qtiplot/sipqtiGraph.o ../tmp/qtiplot/sipqtiGraph3D.o ../tmp/qtiplot/sipqtiArrowMarker.o ../tmp/qtiplot/sipqtiFrameWidget.o ../tmp/qtiplot/sipqtiEllipseWidget.o ../tmp/qtiplot/sipqtiImageWidget.o ../tmp/qtiplot/sipqtiLegendWidget.o ../tmp/qtiplot/sipqtiRectangleWidget.o ../tmp/qtiplot/sipqtiGrid.o ../tmp/qtiplot/sipqtiMultiLayer.o ../tmp/qtiplot/sipqtiTable.o ../tmp/qtiplot/sipqtiQwtLinearColorMap.o ../tmp/qtiplot/sipqtiMatrix.o ../tmp/qtiplot/sipqtiMdiSubWindow.o ../tmp/qtiplot/sipqtiScriptEdit.o ../tmp/qtiplot/sipqtiNote.o ../tmp/qtiplot/sipqtiPythonScript.o ../tmp/qtiplot/sipqtiPythonScripting.o ../tmp/qtiplot/sipqtiFolder.o ../tmp/qtiplot/sipqtiQList.o ../tmp/qtiplot/sipqtiFit.o ../tmp/qtiplot/sipqtiExponentialFit.o ../tmp/qtiplot/sipqtiTwoExpFit.o ../tmp/qtiplot/sipqtiThreeExpFit.o ../tmp/qtiplot/sipqtiSigmoidalFit.o ../tmp/qtiplot/sipqtiLogisticFit.o ../tmp/qtiplot/sipqtiGaussAmpFit.o ../tmp/qtiplot/sipqtiLorentzFit.o ../tmp/qtiplot/sipqtiNonLinearFit.o ../tmp/qtiplot/sipqtiPluginFit.o ../tmp/qtiplot/sipqtiMultiPeakFit.o ../tmp/qtiplot/sipqtiPolynomialFit.o ../tmp/qtiplot/sipqtiLinearFit.o ../tmp/qtiplot/sipqtiGaussFit.o ../tmp/qtiplot/sipqtiFilter.o ../tmp/qtiplot/sipqtiDifferentiation.o ../tmp/qtiplot/sipqtiIntegration.o ../tmp/qtiplot/sipqtiInterpolation.o ../tmp/qtiplot/sipqtiSmoothFilter.o ../tmp/qtiplot/sipqtiFFTFilter.o ../tmp/qtiplot/sipqtiFFT.o ../tmp/qtiplot/sipqtiCorrelation.o ../tmp/qtiplot/sipqtiConvolution.o ../tmp/qtiplot/sipqtiDeconvolution.o ../tmp/qtiplot/moc_qwt3d_plot.o ../tmp/qtiplot/moc_qwt3d_surfaceplot.o ../tmp/qtiplot/moc_Convolution.o ../tmp/qtiplot/moc_Correlation.o ../tmp/qtiplot/moc_Differentiation.o ../tmp/qtiplot/moc_ExponentialFit.o ../tmp/qtiplot/moc_FFTFilter.o ../tmp/qtiplot/moc_FFT.o ../tmp/qtiplot/moc_Filter.o ../tmp/qtiplot/moc_Fit.o ../tmp/qtiplot/moc_Integration.o ../tmp/qtiplot/moc_Interpolation.o ../tmp/qtiplot/moc_LogisticFit.o ../tmp/qtiplot/moc_MultiPeakFit.o ../tmp/qtiplot/moc_NonLinearFit.o ../tmp/qtiplot/moc_PluginFit.o ../tmp/qtiplot/moc_PolynomialFit.o ../tmp/qtiplot/moc_SigmoidalFit.o ../tmp/qtiplot/moc_SmoothFilter.o ../tmp/qtiplot/moc_ExpDecayDialog.o ../tmp/qtiplot/moc_FFTDialog.o ../tmp/qtiplot/moc_FitDialog.o ../tmp/qtiplot/moc_FilterDialog.o ../tmp/qtiplot/moc_FrequencyCountDialog.o ../tmp/qtiplot/moc_IntDialog.o ../tmp/qtiplot/moc_InterpolationDialog.o ../tmp/qtiplot/moc_PolynomFitDialog.o ../tmp/qtiplot/moc_SmoothCurveDialog.o ../tmp/qtiplot/moc_ApplicationWindow.o ../tmp/qtiplot/moc_ConfigDialog.o ../tmp/qtiplot/moc_CustomActionDialog.o ../tmp/qtiplot/moc_DataSetDialog.o ../tmp/qtiplot/moc_Folder.o ../tmp/qtiplot/moc_FindDialog.o ../tmp/qtiplot/moc_ImportASCIIDialog.o ../tmp/qtiplot/moc_MdiSubWindow.o ../tmp/qtiplot/moc_OpenProjectDialog.o ../tmp/qtiplot/moc_PlotWizard.o ../tmp/qtiplot/moc_RenameWindowDialog.o ../tmp/qtiplot/moc_ColorBox.o ../tmp/qtiplot/moc_ColorButton.o ../tmp/qtiplot/moc_ColorMapEditor.o ../tmp/qtiplot/moc_DoubleSpinBox.o ../tmp/qtiplot/moc_ExtensibleFileDialog.o ../tmp/qtiplot/moc_LineNumberDisplay.o ../tmp/qtiplot/moc_PatternBox.o ../tmp/qtiplot/moc_PenStyleBox.o ../tmp/qtiplot/moc_SymbolBox.o ../tmp/qtiplot/moc_SymbolDialog.o ../tmp/qtiplot/moc_TextFormatButtons.o ../tmp/qtiplot/moc_AddWidgetTool.o ../tmp/qtiplot/moc_CanvasPicker.o ../tmp/qtiplot/moc_DataPickerTool.o ../tmp/qtiplot/moc_EllipseWidget.o ../tmp/qtiplot/moc_FrameWidget.o ../tmp/qtiplot/moc_Graph.o ../tmp/qtiplot/moc_ImageWidget.o ../tmp/qtiplot/moc_LegendWidget.o ../tmp/qtiplot/moc_LineProfileTool.o ../tmp/qtiplot/moc_MultiLayer.o ../tmp/qtiplot/moc_MultiPeakFitTool.o ../tmp/qtiplot/moc_QwtPieCurve.o ../tmp/qtiplot/moc_RangeSelectorTool.o ../tmp/qtiplot/moc_RectangleWidget.o ../tmp/qtiplot/moc_ScalePicker.o ../tmp/qtiplot/moc_ScreenPickerTool.o ../tmp/qtiplot/moc_SelectionMoveResizer.o ../tmp/qtiplot/moc_TexWidget.o ../tmp/qtiplot/moc_TitlePicker.o ../tmp/qtiplot/moc_TranslateCurveTool.o ../tmp/qtiplot/moc_AssociationsDialog.o ../tmp/qtiplot/moc_AxesDialog.o ../tmp/qtiplot/moc_CurvesDialog.o ../tmp/qtiplot/moc_CurveRangeDialog.o ../tmp/qtiplot/moc_EnrichmentDialog.o ../tmp/qtiplot/moc_ErrDialog.o ../tmp/qtiplot/moc_FunctionDialog.o ../tmp/qtiplot/moc_ImageExportDialog.o ../tmp/qtiplot/moc_LayerDialog.o ../tmp/qtiplot/moc_LineDialog.o ../tmp/qtiplot/moc_PlotDialog.o ../tmp/qtiplot/moc_TextDialog.o ../tmp/qtiplot/moc_TextEditor.o ../tmp/qtiplot/moc_ColorMapPreviewDialog.o ../tmp/qtiplot/moc_Graph3D.o ../tmp/qtiplot/moc_Plot3DDialog.o ../tmp/qtiplot/moc_SurfaceDialog.o ../tmp/qtiplot/moc_ColorMapDialog.o ../tmp/qtiplot/moc_Matrix.o ../tmp/qtiplot/moc_MatrixDialog.o ../tmp/qtiplot/moc_MatrixModel.o ../tmp/qtiplot/moc_MatrixSizeDialog.o ../tmp/qtiplot/moc_MatrixValuesDialog.o ../tmp/qtiplot/moc_ExportDialog.o ../tmp/qtiplot/moc_SetColValuesDialog.o ../tmp/qtiplot/moc_SortDialog.o ../tmp/qtiplot/moc_Table.o ../tmp/qtiplot/moc_TableDialog.o ../tmp/qtiplot/moc_TableStatistics.o ../tmp/qtiplot/moc_FindReplaceDialog.o ../tmp/qtiplot/moc_Note.o ../tmp/qtiplot/moc_ScriptingEnv.o ../tmp/qtiplot/moc_Script.o ../tmp/qtiplot/moc_ScriptEdit.o ../tmp/qtiplot/moc_ScriptingLangDialog.o ../tmp/qtiplot/moc_ScriptWindow.o ../tmp/qtiplot/moc_muParserScript.o ../tmp/qtiplot/moc_muParserScripting.o ../tmp/qtiplot/moc_PythonScript.o ../tmp/qtiplot/moc_PythonScripting.o ../tmp/qtiplot/moc_PythonSyntaxHighlighter.o -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L/opt/local/lib -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt -lpython2.5 -framework QtAssistant -framework QtSvg -framework Qt3Support -lresolv -framework QtSql -framework QtXml -framework QtOpenGL -framework OpenGL -framework AGL -framework QtGui -framework Carbon -framework AppKit -framework QtNetwork -framework QtCore -lz -lm -framework ApplicationServices Undefined symbols:

"_png_destroy_write_struct", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_create_info_struct", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_write_info", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_get_io_ptr", referenced from:

_gl2psUserWritePNG in gl2ps.o

"_png_set_compression_level", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_write_end", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_write_row", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_set_write_fn", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_set_IHDR", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

"_png_create_write_struct", referenced from:

_gl2psConvertPixmapToPNG in gl2ps.o

ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: * [qtiplot.app/Contents/MacOS/qtiplot] Error 1 make: * [sub-qtiplot-all] Error 2

Error: Status 1 encountered during processing.

comment:10 in reply to:  7 ; Changed 16 years ago by jonas@…

Replying to macsforever2000@…:

I'm not able to install qwt52. See #19222.

Should be fixed now, please try again.

comment:11 in reply to:  8 ; Changed 16 years ago by jonas@…

Replying to gnwiii@…:

Some python scripts used to configure qtiplot have #!/usr/bin/python, so those who have installed SIP and PyQt (as described in the qtiplot docs) in the "System" python won't see this problem:

$ cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qtiplot/work/qtiplot-0.9.7.6/qtiplot" nashi:qtiplot gwhite$ head -1 *.py

==> python-includepath.py <== #!/usr/bin/python

==> python-libs-win.py <== #!/usr/bin/python

==> python-sipcmd.py <== #!/usr/bin/python

That's indeed strange. I have exactly the same shebangs and executing python-includepath.py also returns /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 here. However, the compiler commandline contains -I/opt/local/include/python2.5. So, my guess is that the buildsystem doesn't execute this script but calls python (from PATH) with it. In that case, sed'ing these python scripts to adapt the shebang won't help.

Am I correct that which python returns /usr/bin/python on your system? Please use python_select (you may have to install this port first) to make macport's python25 the default python. Hopefully that does the trick.

comment:12 in reply to:  9 Changed 16 years ago by jonas@…

Replying to gnwiii@…:

Replying to jonas@…:

I've just commited (r49316) a new version 0.9.7.6, now using the qwt52 port (I had to create a new one because qwt-5.2 contains source incompatible changes compared to 5.1; that's what the release notes proclame).

However, I don't think the linking problem above will be affected. It smells like a problem with libpng... Could you please post the entire linking command, not only the error?

The port file had:

#configure.args "'INCLUDEPATH += ${prefix}/include' 'LIBS += -L${prefix}/libs -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt'"

Note "-L${prefix}/libs" with an "s"! Changed to "lib" without the"s", then I get the same png library problem:

Thanks, fixed in r49871

/usr/bin/g++-4.0 -headerpad_max_install_names -o qtiplot.app/Contents/MacOS/qtiplot [removed tons of qtiplot's .o's] -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L/opt/local/lib -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt -lpython2.5 -framework QtAssistant -framework QtSvg -framework Qt3Support -lresolv -framework QtSql -framework QtXml -framework QtOpenGL -framework OpenGL -framework AGL -framework QtGui -framework Carbon -framework AppKit -framework QtNetwork -framework QtCore -lz -lm -framework ApplicationServices

My linking command (which worked here) looks like this

/usr/bin/g++-4.0 -headerpad_max_install_names -o qtiplot.app/Contents/MacOS/qtiplot [removed tons of qtiplot's .o's] -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L/opt/local/libs -lqwt -lgsl -lgslcblas -lmuparser -lboost_date_time-mt -lboost_thread-mt -lpython2.5 -framework QtAssistant -L/opt/local/lib -L/opt/local/libexec/qt4-mac/lib -F/opt/local/libexec/qt4-mac/lib -framework QtSvg -framework Qt3Support -lresolv -framework QtSql -framework QtXml -framework QtOpenGL -framework OpenGL -framework AGL -framework QtGui -framework Carbon -framework AppKit -lpng -framework QtNetwork -framework SystemConfiguration -lssl -lcrypto -framework QtCore -lz -lm -framework ApplicationServices

The interesing part is, that Qt seems to pull in some additional parameters, most notable:

  • -L/opt/local/lib (that why it worked here even with the libs/lib error you pointed out above)
  • -lpng (which is missing in your command and thus causing the errors about missing png symbols)

So, it should work if you would add "-lpng" to the linking command. Unfortunately I have now idea (for the moment ;-)) why these parameters are missing on your system.

comment:13 in reply to:  10 Changed 16 years ago by mf2k (Frank Schima)

Replying to jonas@…:

Replying to macsforever2000@…:

I'm not able to install qwt52. See #19222.

Should be fixed now, please try again.

qtiplot now builds fine for me.

comment:14 in reply to:  11 Changed 16 years ago by mano@…

Replying to jonas@…:

Am I correct that which python returns /usr/bin/python on your system? Please use python_select (you may have to install this port first) to make macport's python25 the default python. Hopefully that does the trick.

Thanks jonas for the tip python_select. It works now!

comment:15 Changed 16 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

comment:16 Changed 16 years ago by jonas@…

I haven't closed this ticket yet, because the png linking issue ist not solved... It had become a bit confusing but this ticket deals with three issues:

  • usage of wrong headers if the qwt port was installed (solved with qtiplot-0.9.7.6 by using external qwt52)
  • usage of system python instead of macport's python (solved by the usage of python_select)
  • missing -lpng linker switch for some people (see #comment:12). I've just committed r50094 as a potential fix.

comment:17 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.