Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Compile error #1687

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Compile error #1687

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: richardbrinkman
[Submitted to the original trac issue database at 12.39pm, Thursday, 2nd April 2009]

g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DVERSION=""0.14""-DREVISION=""-svn"" -DNDEBUG -DQT_NO_DEBUG_OUTPUT -DUSE_WEBKIT -DOSMARENDER -DLIBXML_STATIC -DLIBXSLT_STATIC -DLIBEXSLT_STATIC -D_TTY_POSIX_ -DSHARE_DIR=""/usr/local/share/merkaartor"" -DTRANSDIR_MERKAARTOR=""/home/brinkman/usr/share/merkaartor/translations"" -DGEOIMAGE -DWORLD_SHP=""/usr/local/share/merkaartor/world_background.osb"" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/QtSvg -I/usr/include/QtWebKit -I/usr/include/QtWebKit -I/usr/include -I../include -I../interfaces -I. -IRender -Iqextserialport -IGPS -INameFinder -I/usr/include/libxml2 -ITools -ITagTemplate -I../tmp -I../tmp -o ../tmp/obj_release/TMSPreferencesDialog.o Preferences/TMSPreferencesDialog.cpp
Preferences/TMSPreferencesDialog.cpp: In member function void TMSPreferencesDialog::addServer(const TmsServer&):
Preferences/TMSPreferencesDialog.cpp:37: error: conversion from long unsigned intto const QVariant is ambiguous
/usr/include/QtCore/qvariant.h:208: note: candidates are: QVariant::QVariant(Qt::GlobalColor)
/usr/include/QtCore/qvariant.h:179: note: QVariant::QVariant(const char*)
/usr/include/QtCore/qvariant.h:177: note: QVariant::QVariant(double)
/usr/include/QtCore/qvariant.h:176: note: QVariant::QVariant(bool)
/usr/include/QtCore/qvariant.h:175: note: QVariant::QVariant(qulonglong)
/usr/include/QtCore/qvariant.h:174: note: QVariant::QVariant(qlonglong)
/usr/include/QtCore/qvariant.h:173: note: QVariant::QVariant(uint)
/usr/include/QtCore/qvariant.h:172: note: QVariant::QVariant(int)
/usr/include/QtCore/qvariant.h:164: note: QVariant::QVariant(QVariant::Type)
make[1]: *** [../tmp/obj_release/TMSPreferencesDialog.o] Error 1

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 3.06pm, Thursday, 2nd April 2009]

64bits thingy, I guess....

Could you try withe following patch:

=== modified file 'src/Preferences/TMSPreferencesDialog.cpp'
--- src/Preferences/TMSPreferencesDialog.cpp 2009-04-01 09:25:33 +0000
+++ src/Preferences/TMSPreferencesDialog.cpp 2009-04-02 15:05:43 +0000
@@ -34,7 +34,7 @
theTmsServers.push_back(srv);
if (!srv.deleted) {
QListWidgetItem* item = new QListWidgetItem(srv.TmsName);

  •           item->setData(Qt::UserRole, theTmsServers.size()-1);
    
  •           item->setData(Qt::UserRole, (int)(theTmsServers.size()-1));
              lvTmsServers->addItem(item);
      }
    

}

@openstreetmap-trac
Copy link
Author

Author: master_up
[Added to the original trac issue at 4.15pm, Saturday, 4th April 2009]

This fixes compilation.

@openstreetmap-trac
Copy link
Author

Author: richardbrinkman
[Added to the original trac issue at 2.09pm, Monday, 6th April 2009]

(In [14405]) FIX: compile error (fixes #1687)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant