VeaaC / monav

Automatically exported from code.google.com/p/monav
0 stars 0 forks source link

MoNav Preprocessor Failed to Compile on Fedora-14 x86_64 #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES = NOGUI" 
monavpreprocessor.pro && make
2. /usr/lib64/qt4/bin/qmake "CONFIG += release" monavpreprocessor-gui.pro && 
make
3.

What is the expected output? What do you see instead?

../utils/log.cpp:70:1: error: ‘Log::Log’ names the constructor, not the type
make[1]: *** [log.o] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

What version of the product are you using? On what operating system?

LSB Version:    :core-4.0-amd64:core-4.0-noarch
Distributor ID: Fedora
Description:    Fedora release 14 (Laughlin)
Release:    14
Codename:   Laughlin

Please provide any additional information below.

Previous attempts to compile monav preprocessor on Fedora-13 also failed. This 
system was upgrade from FC13 to FC14. All updates are installed.

Original issue reported on code.google.com by peteadde...@gmail.com on 14 Mar 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Strange, that gcc 4.4.5 did not complain about this.

Please try whether r457 fixes this.

Original comment by veaac.fd...@gmail.com on 14 Mar 2011 at 5:51

GoogleCodeExporter commented 9 years ago
I just tried compiling monav svn r460 (latest code) - no joy. Here is the error:

protobuf -lQtCore -lpthread 
/usr/bin/ld: ../bin/plugins_preprocessor/libqtilerenderer.a(qtilerenderer.o): 
undefined reference to symbol 'inflate'
/usr/bin/ld: note: 'inflate' is defined in DSO /lib64/libz.so.1 so try adding 
it to the linker command line
/lib64/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [../bin/monav-preprocessor] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

Here are the commands:

/usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES = NOGUI" 
monavpreprocessor.pro && make

/usr/lib64/qt4/bin/qmake "CONFIG += release" monavpreprocessor-gui.pro && make

Original comment by peteadde...@gmail.com on 14 Mar 2011 at 7:07

GoogleCodeExporter commented 9 years ago
Please try r461.

Maybe I should just install FC14 myself. Seems to be way stricter than Ubuntu 
when it comes to compilation and linkage.

Are you using GCC 4.5?

Original comment by veaac.fd...@gmail.com on 14 Mar 2011 at 8:25

GoogleCodeExporter commented 9 years ago
I'm using:

zlib-1.2.5-2.fc14.x86_64
gcc-4.5.1-4.fc14.x86_64
gcc-c++-4.5.1-4.fc14.x86_64

I just compiled monav r461 - Here is the error:

collect2: ld returned 1 exit status
make[1]: *** [../bin/monav-preprocessor] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

Original comment by peteadde...@gmail.com on 14 Mar 2011 at 8:43

GoogleCodeExporter commented 9 years ago
It doesn't actually tell you which symbols are missing?

If this is the case I will try getting it to compile on FC14, but it will have 
to wait at least till tomorrow.

Original comment by veaac.fd...@gmail.com on 14 Mar 2011 at 8:51

GoogleCodeExporter commented 9 years ago
Hey, it looks like we have made some progress. This command compiled r461:

/usr/lib64/qt4/bin/qmake "CONFIG += release" monavpreprocessor-gui.pro && make

But this command failed on r461:

/usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES = NOGUI" 
monavpreprocessor.pro && make

Original comment by peteadde...@gmail.com on 14 Mar 2011 at 8:54

GoogleCodeExporter commented 9 years ago
Could could you try the second command on a fresh SVN copy? QMake is notorious 
for not updating deep makefiles correctly when using different parameters.

Original comment by veaac.fd...@gmail.com on 14 Mar 2011 at 9:01

GoogleCodeExporter commented 9 years ago
Tried (using 2nd command) to Compile monav svn r462 - results are the same as 
above. Here is the error that I got:

collect2: ld returned 1 exit status
make[1]: *** [../bin/monav-preprocessor] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

Original comment by peteadde...@gmail.com on 14 Mar 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Could you please try whether r466 fixes your problems? Maybe Fedora is somewhat 
picky about the link order.

Original comment by veaac.fd...@gmail.com on 24 Mar 2011 at 8:47

GoogleCodeExporter commented 9 years ago
This command has failed on r466:

/usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES = NOGUI" 
monavpreprocessor.pro && make

Clip of error message:
...
...
...

/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:216: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:218: undefined 
reference to `QToolButton::QToolButton(QWidget*)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:220: undefined 
reference to `QToolButton::setAutoRaise(bool)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:222: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:224: undefined 
reference to `QCheckBox::QCheckBox(QWidget*)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:226: undefined 
reference to `QAbstractButton::setChecked(bool)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:228: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:230: undefined 
reference to `QSpinBox::QSpinBox(QWidget*)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:232: undefined 
reference to `QSpinBox::setMaximum(int)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:234: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
collect2: ld returned 1 exit status
make[1]: *** [../bin/monav-preprocessor] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

Original comment by peteadde...@gmail.com on 26 Mar 2011 at 8:11

GoogleCodeExporter commented 9 years ago
Could you try DEFINES += NOGUI instead of DEFINES = NOGUI?

Original comment by hbnix.fdirct@gmail.com on 26 Mar 2011 at 8:20

GoogleCodeExporter commented 9 years ago
Both commands give the same error:

This command (1):

/usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES = NOGUI" 
monavpreprocessor.pro && make

and this command (2):

/usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES += NOGUI" 
monavpreprocessor.pro && make

Original comment by peteadde...@gmail.com on 26 Mar 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Could you please try r467? I removed an unnecessary gui dependency from the osm 
importer that might have caused the problem.

Original comment by hbnix.fdirct@gmail.com on 26 Mar 2011 at 9:10

GoogleCodeExporter commented 9 years ago
I'm still getting the same error:

Clip of error message:
...
...
...
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:226: undefined 
reference to `QAbstractButton::setChecked(bool)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:228: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:230: undefined 
reference to `QSpinBox::QSpinBox(QWidget*)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:232: undefined 
reference to `QSpinBox::setMaximum(int)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:234: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
collect2: ld returned 1 exit status
make[1]: *** [../bin/monav-preprocessor] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

Original comment by peteadde...@gmail.com on 26 Mar 2011 at 6:37

GoogleCodeExporter commented 9 years ago
Ok, i noticed that I have been very stupid and always compiled the GUI files, 
they were only excluded from usage. Strangely this never gave me any link 
errors.

Could you try whether r469 fixes some error messages?

You have to use "CONFIG+=nogui" instead of "DEFINES+=NOGUI" from now on.

Original comment by veaac.fd...@gmail.com on 31 Mar 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Just tried r470 with the following command:
/usr/lib64/qt4/bin/qmake "CONFIG += release NOGUI" monavpreprocessor.pro && make

Here is a clip of some of the error messages:

[padderly@trailblazer monav]$ /usr/lib64/qt4/bin/qmake "CONFIG += release 
NOGUI" monavpreprocessor.pro && make

usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui 
-I/usr/include -I../.. -I. -o testimporter.o testimporter.cpp
testimporter.cpp:472:6: warning: unused parameter ‘dataPlaces’
testimporter.cpp:472:6: warning: unused parameter ‘dataAddresses’
testimporter.cpp:472:6: warning: unused parameter ‘dataWayBuffer’
testimporter.cpp:472:6: warning: unused parameter ‘addressNames’
...
...
...
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `MRSettingsDialog':
/home/files/DEV/monav/plugins/osmrenderer/mrsettingsdialog.cpp:30: undefined 
reference to `QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>)'
/home/files/DEV/monav/plugins/osmrenderer/mrsettingsdialog.cpp:30: undefined 
reference to `QWidget::~QWidget()'
...
...
...
/home/files/DEV/monav/plugins/osmrenderer/mrsettingsdialog.cpp:108: undefined 
reference to `QAbstractButton::setChecked(bool)'
/home/files/DEV/monav/plugins/osmrenderer/mrsettingsdialog.cpp:109: undefined 
reference to `QAbstractButton::setChecked(bool)'
/home/files/DEV/monav/plugins/osmrenderer/mrsettingsdialog.cpp:110: undefined 
reference to `QAbstractButton::setChecked(bool)'
...
...
...
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `QWidget::resize(int, int)':
/usr/include/QtGui/qwidget.h:1001: undefined reference to 
`QWidget::resize(QSize const&)'
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `Ui_MRSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:110: undefined 
reference to `QWidget::sizePolicy() const'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:111: undefined 
reference to `QWidget::setSizePolicy(QSizePolicy)'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:112: undefined 
reference to `QVBoxLayout::QVBoxLayout(QWidget*)'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:114: undefined 
reference to `QFrame::QFrame(QWidget*, QFlags<Qt::WindowType>)'
...
...
...
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `QSpacerItem':
/usr/include/QtGui/qlayoutitem.h:102: undefined reference to `vtable for 
QSpacerItem'
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `Ui_MRSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:283: undefined 
reference to `QGridLayout::addItem(QLayoutItem*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:285: undefined 
reference to `QCheckBox::QCheckBox(QWidget*)'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:288: undefined 
reference to `QGridLayout::addWidget(QWidget*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
...
...
...
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `QSpacerItem':
/usr/include/QtGui/qlayoutitem.h:102: undefined reference to `vtable for 
QSpacerItem'
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `QToolBox::addItem(QWidget*, QString const&)':
/usr/include/QtGui/qtoolbox.h:135: undefined reference to `QIcon::QIcon()'
/usr/include/QtGui/qtoolbox.h:135: undefined reference to 
`QToolBox::insertItem(int, QWidget*, QIcon const&, QString const&)'
/usr/include/QtGui/qtoolbox.h:135: undefined reference to `QIcon::~QIcon()'
...
...
...
../bin/plugins_preprocessor/libmapnikrenderer.a(mrsettingsdialog.o): In 
function `Ui_MRSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:350: undefined 
reference to `QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>)'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:352: undefined 
reference to `QWidget::setGeometry(QRect const&)'
/home/files/DEV/monav/plugins/osmrenderer/ui_mrsettingsdialog.h:353: undefined 
reference to `QVBoxLayout::QVBoxLayout(QWidget*)'
...
...
...
../bin/plugins_preprocessor/libcontractionhierarchies.a(chsettingsdialog.o): In 
function `CHSettingsDialog':
/home/files/DEV/monav/plugins/contractionhierarchies/chsettingsdialog.cpp:6: 
undefined reference to `QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>)'
/home/files/DEV/monav/plugins/contractionhierarchies/chsettingsdialog.cpp:6: 
undefined reference to `QWidget::~QWidget()'
../bin/plugins_preprocessor/libcontractionhierarchies.a(chsettingsdialog.o): In 
function `CHSettingsDialog::readSettings(ContractionHierarchies::Settings 
const&)':
/home/files/DEV/monav/plugins/contractionhierarchies/chsettingsdialog.cpp:18: 
undefined reference to `QSpinBox::setValue(int)'
...
...
...
../bin/plugins_preprocessor/libgpsgrid.a(ggdialog.o): In function `GGDialog':
/home/files/DEV/monav/plugins/gpsgrid/ggdialog.cpp:26: undefined reference to 
`QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>)'
../bin/plugins_preprocessor/libgpsgrid.a(ggdialog.o): In function 
`Ui_GGDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/gpsgrid/ui_ggdialog.h:39: undefined reference to 
`QVBoxLayout::QVBoxLayout(QWidget*)'
/home/files/DEV/monav/plugins/gpsgrid/ui_ggdialog.h:41: undefined reference to 
`QFrame::QFrame(QWidget*, QFlags<Qt::WindowType>)'
/home/files/DEV/monav/plugins/gpsgrid/ui_ggdialog.h:43: undefined reference to 
`QFrame::setFrameShape(QFrame::Shape)'
...
...
...
../bin/plugins_preprocessor/libosmrenderer.a(orsettingsdialog.o): In function 
`ORSettingsDialog':
/home/files/DEV/monav/plugins/osmrenderer/orsettingsdialog.cpp:27: undefined 
reference to `QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>)'
/home/files/DEV/monav/plugins/osmrenderer/orsettingsdialog.cpp:27: undefined 
reference to `QWidget::~QWidget()'
../bin/plugins_preprocessor/libosmrenderer.a(orsettingsdialog.o): In function 
`qFindChild<QCheckBox*>':
...
...
...
../bin/plugins_preprocessor/libosmrenderer.a(orsettingsdialog.o): In function 
`QSpacerItem':
/usr/include/QtGui/qlayoutitem.h:102: undefined reference to `vtable for 
QSpacerItem'
../bin/plugins_preprocessor/libosmrenderer.a(orsettingsdialog.o): In function 
`Ui_ORSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/osmrenderer/ui_orsettingsdialog.h:192: undefined 
reference to `QGridLayout::addItem(QLayoutItem*, int, int, int, int, 
QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmrenderer/ui_orsettingsdialog.h:194: undefined 
reference to `QGridLayout::setColumnStretch(int, int)'
../bin/plugins_preprocessor/libosmrenderer.a(orsettingsdialog.o): In function 
`QToolBox::addItem(QWidget*, QString const&)':
...
...
...
../bin/plugins_preprocessor/libqtilerenderer.a(qrsettingsdialog.o): In function 
`Ui_QRSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/osmrenderer/ui_qrsettingsdialog.h:116: undefined 
reference to `QBoxLayout::addWidget(QWidget*, int, QFlags<Qt::AlignmentFlag>)'
../bin/plugins_preprocessor/libqtilerenderer.a(qrsettingsdialog.o): In function 
`QSpacerItem':
/usr/include/QtGui/qlayoutitem.h:102: undefined reference to `vtable for 
QSpacerItem'
../bin/plugins_preprocessor/libqtilerenderer.a(qrsettingsdialog.o): In function 
`Ui_QRSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/osmrenderer/ui_qrsettingsdialog.h:123: undefined 
reference to `QBoxLayout::addWidget(QWidget*, int, QFlags<Qt::AlignmentFlag>)'
/home/files/DEV/monav/plugins/osmrenderer/ui_qrsettingsdialog.h:126: undefined 
reference to `QLabel::setBuddy(QWidget*)'
...
...
...
../bin/plugins_preprocessor/libqtilerenderer.a(qrsettingsdialog.o): In function 
`QToolBox::addItem(QWidget*, QString const&)':
/usr/include/QtGui/qtoolbox.h:135: undefined reference to `QIcon::~QIcon()'
../bin/plugins_preprocessor/libqtilerenderer.a(moc_qrsettingsdialog.o): In 
function `QRSettingsDialog::qt_metacall(QMetaObject::Call, int, void**)':
/home/files/DEV/monav/plugins/osmrenderer/moc_qrsettingsdialog.cpp:69: 
undefined reference to `QWidget::qt_metacall(QMetaObject::Call, int, void**)'
../bin/plugins_preprocessor/libqtilerenderer.a(moc_qrsettingsdialog.o): In 
function `QRSettingsDialog::qt_metacast(char const*)':
/home/files/DEV/monav/plugins/osmrenderer/moc_qrsettingsdialog.cpp:64: 
undefined reference to `QWidget::qt_metacast(char const*)'
../bin/plugins_preprocessor/libqtilerenderer.a(moc_qrsettingsdialog.o):(.data.re
l.ro+0x0): undefined reference to `QWidget::staticMetaObject'
../bin/plugins_preprocessor/libqtilerenderer.a(moc_qrsettingsdialog.o):(.data.re
l.ro._ZTV16QRSettingsDialog[vtable for QRSettingsDialog]+0x38): undefined 
reference to `QWidget::event(QEvent*)'
../bin/plugins_preprocessor/libqtilerenderer.a(moc_qrsettingsdialog.o):(.data.re
l.ro._ZTV16QRSettingsDialog[vtable for QRSettingsDialog]+0x70): undefined 
reference to `QWidget::devType() const'
...
...
...
/home/files/DEV/monav/plugins/unicodetournamenttrie/uttsettingsdialog.cpp:25: 
undefined reference to `QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>)'
../bin/plugins_preprocessor/libunicodetournamenttrie.a(uttsettingsdialog.o): In 
function `QWidget::resize(int, int)':
/usr/include/QtGui/qwidget.h:1001: undefined reference to 
`QWidget::resize(QSize const&)'
../bin/plugins_preprocessor/libunicodetournamenttrie.a(uttsettingsdialog.o): In 
function `Ui_UTTSettingsDialog::setupUi(QWidget*)':
/home/files/DEV/monav/plugins/unicodetournamenttrie/ui_uttsettingsdialog.h:40: 
undefined reference to `QVBoxLayout::QVBoxLayout(QWidget*)'
/home/files/DEV/monav/plugins/unicodetournamenttrie/ui_uttsettingsdialog.h:42: 
undefined reference to `QFrame::QFrame(QWidget*, QFlags<Qt::WindowType>)'
...
...
...
/home/files/DEV/monav/plugins/osmimporter/ui_nodemodificatorwidget.h:179: 
undefined reference to `QSpinBox::setPrefix(QString const&)'
/home/files/DEV/monav/plugins/osmimporter/ui_nodemodificatorwidget.h:180: 
undefined reference to `QAbstractButton::setText(QString const&)'
/home/files/DEV/monav/plugins/osmimporter/ui_nodemodificatorwidget.h:181: 
undefined reference to `QAbstractButton::setText(QString const&)'
../bin/plugins_preprocessor/libosmimporter.a(nodemodificatorwidget.o): In 
function `QWidget::resize(int, int)':
/usr/include/QtGui/qwidget.h:1001: undefined reference to 
`QWidget::resize(QSize const&)'
../bin/plugins_preprocessor/libosmimporter.a(nodemodificatorwidget.o): In 
function `Ui_NodeModificatorWidget::setupUi(QFrame*)':
/home/files/DEV/monav/plugins/osmimporter/ui_nodemodificatorwidget.h:61: 
undefined reference to `QWidget::sizePolicy() const'
...
...
...
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:250: undefined 
reference to `QLabel::setText(QString const&)'
../bin/plugins_preprocessor/libosmimporter.a(highwaytypewidget.o):/home/files/DE
V/monav/plugins/osmimporter/ui_highwaytypewidget.h:251: more undefined 
references to `QLabel::setText(QString const&)' follow
../bin/plugins_preprocessor/libosmimporter.a(highwaytypewidget.o): In function 
`Ui_HighwayTypeWidget::retranslateUi(QWidget*)':
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:257: undefined 
reference to `QLineEdit::setText(QString const&)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:258: undefined 
reference to `QSpinBox::setSuffix(QString const&)'
/home/files/DEV/monav/plugins/osmimporter/ui_highwaytypewidget.h:259: undefined 
reference to `QSpinBox::setSuffix(QString const&)'
...
...
...
../bin/plugins_preprocessor/libosmimporter.a(moc_nodemodificatorwidget.o):(.data
.rel.ro._ZTV21NodeModificatorWidget[vtable for NodeModificatorWidget]+0x1f0): 
undefined reference to `non-virtual thunk to 
QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
../bin/plugins_preprocessor/libosmimporter.a(moc_nodemodificatorwidget.o):(.data
.rel.ro._ZTI21NodeModificatorWidget[typeinfo for NodeModificatorWidget]+0x10): 
undefined reference to `typeinfo for QFrame'
collect2: ld returned 1 exit status
make[1]: *** [../bin/monav-preprocessor] Error 1
make[1]: Leaving directory `/home/files/DEV/monav/preprocessor'
make: *** [sub-preprocessor-make_default] Error 2

Original comment by peteadde...@gmail.com on 1 Apr 2011 at 11:18

GoogleCodeExporter commented 9 years ago
I do not know whether qmake is case sensitive, so could you try "CONFIG+=nogui" 
instead of "CONFIG+=NOGUI"?

Original comment by veaac.fd...@gmail.com on 2 Apr 2011 at 8:28

GoogleCodeExporter commented 9 years ago
Compiling Monav r470 with the following two commands:

Command #1:
/usr/lib64/qt4/bin/qmake "CONFIG += release nogui" monavpreprocessor.pro && make

Command #2:
/usr/lib64/qt4/bin/qmake "CONFIG += nogui" monavpreprocessor.pro && make

I'm getting the same error messages as before with both commands - still no joy.

Original comment by peteadde...@gmail.com on 3 Apr 2011 at 1:01

GoogleCodeExporter commented 9 years ago
I explicitly removes QtGUI during compilation of the plugins and it works for 
me. Could you try r471? If you still have compile errors please try starting 
with a clean build directory. If this does not help could you please check 
whether your makefiles are correct? E.g., the 
plugins/osmimporter/Makefile.osmimporter should only contain the following 
source files:

SOURCES       = ../../../MoNav/plugins/osmimporter/osmimporter.cpp \
        ../../../MoNav/plugins/osmimporter/protobuff\ definitions/osmformat.pb.cc \
        ../../../MoNav/plugins/osmimporter/protobuff\ definitions/fileformat.pb.cc \
        ../../../MoNav/plugins/osmimporter/lzma/LzmaDec.c \
        ../../../MoNav/plugins/osmimporter/types.cpp moc_osmimporter.cpp \
        qrc_speedprofiles.cpp

Original comment by veaac.fd...@gmail.com on 3 Apr 2011 at 11:19

GoogleCodeExporter commented 9 years ago
I have success compiling Monav r473, but some warnings - see below:

WARNING: Failure to find: utils/coordinates.h
WARNING: Failure to find: utils/config.h
WARNING: Failure to find: interfaces/iimporter.h
WARNING: Failure to find: interfaces/ipreprocessor.h
WARNING: Failure to find: utils/bithelpers.h
WARNING: Failure to find: utils/qthelpers.h
WARNING: Failure to find: utils/edgeconnector.h

But r473 it did compiled.

Original comment by peteadde...@gmail.com on 3 Apr 2011 at 9:30

GoogleCodeExporter commented 9 years ago
MoNav r479 compiled successfully without errors or warnings.

Thank you.

Original comment by peteadde...@gmail.com on 10 Apr 2011 at 8:26

GoogleCodeExporter commented 9 years ago
Glad that this is fixed for you.

Original comment by veaac.fd...@gmail.com on 10 Apr 2011 at 8:29