PDA

View Full Version : Another Compile error...:( EQ 5



Chuin
12-12-2003, 06:39 PM
Running RH8.0 and I have what I think is the correct version of QT.

I have searched other compile errors and have tried to apply their solutions to correct this error with no luck.



source='mapcore.cpp' object='mapcore.o' libtool=no \
depfile='.deps/mapcore.Po' tmpdepfile='.deps/mapcore.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3-gcc3.2/include -I/usr/X11R6/incl
ude -DPKGDATADIR=\"/usr/local/share/showeq/\" -I/usr/include/pcap -D_REENTR
ANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISP
LAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o mapcore.o `test -f 'mapcore.cpp'
|| echo './'`mapcore.cpp
mapcore.cpp: In member function `void MapData::loadSOEMap(const QString&,
bool)':
mapcore.cpp:968: no matching function for call to `QString::remove(QRegExp&)'
/usr/lib/qt3-gcc3.2/include/qstring.h:500: candidates are: QString&
QString::remove(unsigned int, unsigned int)
/usr/lib/qt3-gcc3.2/include/qstring.h:607: `QString& QString::replace(const
QString&, const QString&)' is private
mapcore.cpp:1094: within this context
/usr/lib/qt3-gcc3.2/include/qstring.h: In member function `void
MapData::saveSOEMap(const QString&) const':
/usr/lib/qt3-gcc3.2/include/qstring.h:607: `QString& QString::replace(const
QString&, const QString&)' is private
mapcore.cpp:1361: within this context
make[3]: *** [mapcore.o] Error 1
make[3]: Leaving directory `/seq/showeq/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/seq/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/seq/showeq'
make: *** [all] Error 2

Zaphod
12-12-2003, 09:28 PM
Originally posted by Chuin
Running RH8.0 and I have what I think is the correct version of QT.

I have searched other compile errors and have tried to apply their solutions to correct this error with no luck.



source='mapcore.cpp' object='mapcore.o' libtool=no \
depfile='.deps/mapcore.Po' tmpdepfile='.deps/mapcore.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3-gcc3.2/include -I/usr/X11R6/incl
ude -DPKGDATADIR=\"/usr/local/share/showeq/\" -I/usr/include/pcap -D_REENTR
ANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISP
LAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o mapcore.o `test -f 'mapcore.cpp'
|| echo './'`mapcore.cpp
mapcore.cpp: In member function `void MapData::loadSOEMap(const QString&,
bool)':
mapcore.cpp:968: no matching function for call to `QString::remove(QRegExp&)'
/usr/lib/qt3-gcc3.2/include/qstring.h:500: candidates are: QString&
QString::remove(unsigned int, unsigned int)
/usr/lib/qt3-gcc3.2/include/qstring.h:607: `QString& QString::replace(const
QString&, const QString&)' is private
mapcore.cpp:1094: within this context
/usr/lib/qt3-gcc3.2/include/qstring.h: In member function `void
MapData::saveSOEMap(const QString&) const':
/usr/lib/qt3-gcc3.2/include/qstring.h:607: `QString& QString::replace(const
QString&, const QString&)' is private
mapcore.cpp:1361: within this context
make[3]: *** [mapcore.o] Error 1
make[3]: Leaving directory `/seq/showeq/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/seq/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/seq/showeq'
make: *** [all] Error 2

Those errors indicate that you are compiling against Qt 3.0.5 as opposed to the Qt 3.1 or higher that is listed as required in my CVS commit and tarball of ShowEQ 5 Beta 1 (http://seq.sourceforge.net/forums/showthread.php?s=&threadid=4385) announcement post excerpted below:



Requirement updates:
ShowEQ will now require Qt 3.1+ from this release forward.


If you thought you had upgraded to Qt 3.1 or higher, then your problem is that you somehow ended up pointing configure at the Qt 3.0.5 that comes by default with RedHat 8. Make sure to set the appropriate environment variables (QTDIR) and/or pass configure the appropriate command line options to point it at the new version of Qt.

Enjoy,
Zaphod (dohpaZ)