Thursday, March 22, 2012

[FAILED] Building ODIN Under CentOS 6.2


Linux 2.6.32-220.7.1.el6.centos.plus.x86_64 #1 SMP Wed Mar 7 11:06:23 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux


Download the source code (1.8.4) from http://od1n.sourceforge.net/download.html
Extract the files.
CFLAG=-O2 -pipe -march=core2 (default for odin is -O3 -fno-tree-vectorize (O3 enabled it and this disabled it) )
./configure --enable-oilsupport --enable-pngsupport
Install gsl-devel 1.13-1
Install blitz-devel 1.9-13
BUG FIX: sudo ln -s /usr/lib64/blitz/include/blitz/gnu /usr/include/blitz/gnu
Install lapack-devel 3.2.1-4 (+ blas + gcc-gfortran)
Install qt-devel 3.3.8b-30 ( +many dependencies, especially i686 packages)
BUG FIX: sudo ln -s /usr/include/Qt /usr/lib64/qt4/include
BUG FIX: sudo ln -s /usr/lib64/pkgconfig/Qt.pc /usr/lib64/pkgconfig/qt.pc
Install qwt-devel 5.1.1-4 ( + libxi-devel, + qt-devel)
Install liboil-devel 0.3.16-4 (+dcbook-utils, +gtk-doc)
Install libpng-devel 1.2.46-2

QwtPlotPicker function can be found here /usr/include/qwt/qwt_plot_picker.h

ERROR during make:

/bin/sh ../libtool --tag=CXX   --mode=link g++  -DQT_THREAD_SUPPORT  -O3 -fno-tree-vectorize -O2 -pipe -march=core2  -L/usr/lib64/qt-3.3/lib   -o odin odincomp.o odinconf.o odindebugger.o odindialog_progress.o odindialog_process.o odindialog_system.o odindialog_system_moc.o odindialog_debug.o odindialog_debug_moc.o odindialog_idea.o odindialog_idea_moc.o odindialog_pulsar.o odindialog_pulsar_moc.o odindialog_tree.o odindialog_kspace.o odindialog_kspace_moc.o odindialog_new.o odindialog_new_moc.o odinmethod.o odinplot_range.o odinplot_range_moc.o odinplot_vtk.o odinplot.o odinplot_moc.o odinview.o odinview_moc.o odin.o odin_moc.o main.o ../odinseq/libodinseq.la ../odinqt/libodinqt.la ../odinpara/libodinpara.la ../tjutils/libtjutils.la
libtool: link: g++ -DQT_THREAD_SUPPORT -O3 -fno-tree-vectorize -O2 -pipe -march=core2 -o .libs/odin odincomp.o odinconf.o odindebugger.o odindialog_progress.o odindialog_process.o odindialog_system.o odindialog_system_moc.o odindialog_debug.o odindialog_debug_moc.o odindialog_idea.o odindialog_idea_moc.o odindialog_pulsar.o odindialog_pulsar_moc.o odindialog_tree.o odindialog_kspace.o odindialog_kspace_moc.o odindialog_new.o odindialog_new_moc.o odinmethod.o odinplot_range.o odinplot_range_moc.o odinplot_vtk.o odinplot.o odinplot_moc.o odinview.o odinview_moc.o odin.o odin_moc.o main.o  -L/usr/lib64/qt-3.3/lib ../odinseq/.libs/libodinseq.so ../odinqt/.libs/libodinqt.so ../odinpara/.libs/libodinpara.so ../tjutils/.libs/libtjutils.so -Wl,-rpath -Wl,/usr/local/lib
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::qt_property(int, int, QVariant*)'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::staticMetaObject()'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::qt_invoke(int, QUObject*)'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtAbstractScaleDraw::draw(QPainter*, QColorGroup const&) const'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::qt_cast(char const*)'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPicker::accept(QPointArray&) const'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::trackerText(QwtDoublePoint const&) const'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::className() const'
../odinqt/.libs/libodinqt.so: undefined reference to `QwtPlotPicker::qt_emit(int, QUObject*)'
collect2: ld returned 1 exit status

No comments: