Installing by Source

Zoltan Padrah edited this page Aug 22, 2012 · 1 revision
Clone this wiki locally

Error in gpsimprocessor.cpp During compilation I have encountered this error in gpsimprocessor.cpp:

 gpsimprocessor.cpp: In constructor `RegisterInfo::RegisterInfo(Register*)':
 gpsimprocessor.cpp:813: error: no match for 'operator=' in '
    this->RegisterInfo::m_name =
    (*(this->RegisterInfo::m_pRegister->Register::_vptr.gpsimObject +
    160))(this->RegisterInfo::m_pRegister)'
 /usr/lib/qt/include/qstring.h:413: error: candidates are: QString&
    QString::operator=(const QString&)
 /usr/lib/qt/include/qstring.h:414: error:                 QString&
    QString::operator=(const char*)
 /usr/lib/qt/include/qstring.h:418: error:                 QString&
    QString::operator=(const QCString&)
 /usr/lib/qt/include/qstring.h:868: error:                 QString&
    QString::operator=(QChar)
 /usr/lib/qt/include/qstring.h:871: error:                 QString&
    QString::operator=(char)
 make[4]: *** [gpsimprocessor.lo] Error 1

I change the line 813 of gpsimprocessor.cpp from:

 m_name =  m_pRegister->baseName();

to:

 m_name = (const QString&) m_pRegister->baseName();

now gpsimprocessor.cpp compile with success.

Error in itemgroup.cpp During compilation I have encountered this error in itemgroup.cpp:

 itemgroup.cpp: In member function `void ItemGroup::slotDistributeHorizontally()
    ':
 itemgroup.cpp:239: error: ISO C++ forbids declaration of `multimap' with no
    type
 itemgroup.cpp:239: error: template-id `multimap<double, Item*>' used as a
    declarator
 itemgroup.cpp:239: error: parse error before `;' token
 itemgroup.cpp:241: error: `DIMap' undeclared (first use this function)
 itemgroup.cpp:241: error: (Each undeclared identifier is reported only once for
    each function it appears in.)
 itemgroup.cpp:244: error: `ranked' undeclared (first use this function)
 itemgroup.cpp:244: error: `make_pair' undeclared in namespace `std'
 itemgroup.cpp:249: error: ISO C++ forbids declaration of `DIMap' with no type
 itemgroup.cpp:249: error: uninitialized const `DIMap'
 itemgroup.cpp:249: error: parse error before `::' token
 itemgroup.cpp:250: error: parse error before `::' token
 itemgroup.cpp:250: error: name lookup of `it' changed for new ISO `for' scoping
 itemgroup.cpp:243: error:   using obsolete binding at `it'
 itemgroup.cpp:250: error: `rankedEnd' undeclared (first use this function)
 itemgroup.cpp:252: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:263: error: parse error before `::' token
 itemgroup.cpp:265: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:265: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:265: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:268: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:249: warning: unused variable `const int DIMap'
 itemgroup.cpp: In member function `void ItemGroup::slotDistributeVertically()':
 itemgroup.cpp:285: error: ISO C++ forbids declaration of `multimap' with no
    type
 itemgroup.cpp:285: error: template-id `multimap<double, Item*>' used as a
    declarator
 itemgroup.cpp:285: error: parse error before `;' token
 itemgroup.cpp:290: error: `make_pair' undeclared in namespace `std'
 itemgroup.cpp:295: error: ISO C++ forbids declaration of `DIMap' with no type
 itemgroup.cpp:295: error: uninitialized const `DIMap'
 itemgroup.cpp:295: error: parse error before `::' token
 itemgroup.cpp:296: error: parse error before `::' token
 itemgroup.cpp:296: error: name lookup of `it' changed for new ISO `for' scoping
 itemgroup.cpp:289: error:   using obsolete binding at `it'
 itemgroup.cpp:298: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:309: error: parse error before `::' token
 itemgroup.cpp:311: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:311: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:311: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:314: error: base operand of `->' has non-pointer type `
    QValueListIterator<GuardedItem>'
 itemgroup.cpp:295: warning: unused variable `const int DIMap'
 make[3]: *** [itemgroup.o] Error 1

I haven't found a solution yet