trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] rosegarden - gcc47 - need help - probably 5 second fix of "has no member named 'getAsEvent'"

From: "David C. Rankin" <drankinatty@...>
Date: Thu, 12 Apr 2012 15:59:03 -0500
On 04/11/2012 01:59 PM, /dev/ammo42 wrote:
<snip>
>>   I have no idea how to chase this error through the stl container,
>> etc....
>>
> getAsEvent here is a static member function of AbstractSet, this is why
> this-> doesn't work.
> Here getAsEvent(x) can be changed to AbstractSet::getAsEvent(x) (there
> is no reference to an actual AbstractSet since the member function is
> static). If it still doesn't work (I'm not a template guru...) you can
> also try AbstractSet<Element,Container>::getAsEvent(x).
> 


/dev/ammo42

  It required the 'AbstractSet<Element,Container>::getAsEvent(x)' type fix and
other related fixes to 'this->push_back' to get past the initial errors. It
built smoothly after that until it hit (a now very familiar looking)
redeclaration error:

[ 53%] Building CXX object
src/CMakeFiles/RosegardenExtended-static.dir/document/RosegardenGUIDoc.cpp.o
cd /build/src/build/src && /usr/bin/c++   -DHAVE_XFT -DHAVE_ALSA -DHAVE_LIBJACK
-DHAVE_DSSI -DHAVE_LIBLO -DHAVE_LIBLRDF -DHAVE_LADSPA -DHAVE_FFTW3F
-DHAVE_CONFIG_H -fpermissive  -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT
-include tqt.h -O2 -w -fexceptions -DNDEBUG -include tqt.h -I/opt/tqt3/include
-I/usr/include/tqt -I/opt/trinity/include -I/build/src/build
-I/build/src/build/src -I/build/src/rosegarden/src
-I/build/src/rosegarden/src/base -I/usr/include/alsa -I/usr/include/freetype2
-I/usr/include/raptor2    -D'VERSION="1.7.0"' -o
CMakeFiles/RosegardenExtended-static.dir/document/RosegardenGUIDoc.cpp.o -c
/build/src/rosegarden/src/document/RosegardenGUIDoc.cpp
/build/src/rosegarden/src/document/RosegardenGUIDoc.cpp: In member function
'void Rosegarden::RosegardenGUIDoc::stopRecordingMidi()':
/build/src/rosegarden/src/document/RosegardenGUIDoc.cpp:2152:27: error:
redeclaration of 'std::multiset<Rosegarden::Event*,
Rosegarden::Event::EventCmp>::iterator i'
/build/src/rosegarden/src/document/RosegardenGUIDoc.cpp:2147:40: error:
'std::map<unsigned int, Rosegarden::Segment*>::iterator i' previously declared here
make[2]: ***
[src/CMakeFiles/RosegardenExtended-static.dir/document/RosegardenGUIDoc.cpp.o]
Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: *** [src/CMakeFiles/RosegardenExtended-static.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2

  That brings rosegarden to the point where my knowledge is exhausted. However,
it is on par with the other failures in:

tde-kipi-plugins - error: redeclaration of 'TQListViewItemIterator it'

tde-tdepim - error: redeclaration of 'TQMap<TQGuardedPtr<KMFolder>,
int>::Iterator it'

tde-k3b - error: redeclaration of 'K3bAudioEditorWidget::Range* r'

digiam - still dead with libpng15 issue.

  What is your thought on the redeclaration issue??

-- 
David C. Rankin, J.D.,P.E.