Hello Peter
Ok. Still getting problems but better recap on what I am/should be doing.
I found /usr/lib64/qt4/bin/qmake so have altered my $PATH so that it picks that one up first.
I am building with following:-
make distclean/find . -name Makefile -exec rm -f {} \;
export QTDIR=/usr/lib64/qt4/ && export QMAKESPEC=”linux-g++-64″ && touch calitko.pro && qmake && make
But have had to keep the patch of:-
bzr diff
=== modified file ‘3rdParty/moc/moc.pro’
— 3rdParty/moc/moc.pro 2007-05-15 20:37:45 +0000
+++ 3rdParty/moc/moc.pro 2007-07-21 10:41:22 +0000
@@ -15,6 +15,7 @@
win32:DEFINES += QT_NODLL
DESTDIR = .
+QMAKE_CXXFLAGS += -DQMAKE_OPENSOURCE_EDITION
INCLUDEPATH = .
DEPENDPATH += .
=== modified file ‘3rdParty/qmake/qmake.pro’
— 3rdParty/qmake/qmake.pro 2007-03-04 14:23:23 +0000
+++ 3rdParty/qmake/qmake.pro 2007-07-21 10:40:35 +0000
@@ -15,6 +15,9 @@
OBJECTS_DIR = .
MOC_DIR = .
+QMAKE_CXXFLAGS += -DQMAKE_OPENSOURCE_EDITION
+QT_EDITION = OpenSource
+
#guts
bootstrap {
VPATH += $$QT_SOURCE_TREE/src/corelib/global \
Otherwise I get:-
error: msvc_nmake.h: No such file or directory
After doing the above I got to:-
g++ -m64 -o moc ./moc.o ./preprocessor.o ./main.o ./generator.o ./parser.o ./token.o ./TestGenerator.o -lQtGui -lQtCore -lpthread
make[2]: Leaving directory `/home/gander/PROJ/calitko-0.6.1/3rdParty/moc’
make[1]: Leaving directory `/home/gander/PROJ/calitko-0.6.1/3rdParty’
make -f Makefile.calitko-wrapper
make[1]: Entering directory `/home/gander/PROJ/calitko-0.6.1′
3rdParty/qmake/qmake tester.pri -unix -o Makefile.calitko-wrapper.tester
Could not find mkspecs for your QMAKESPEC after trying:
/usr/share/qt4/mkspecs
Error processing project file: tester.pri
So I made a link to /usr/lib64/qt-3.3/mkspecs/linux-g++-64/
in
/usr/share/qt4/mkspecs
and carried on to get:-
Gnutella/Handshaking/SlotAllocator.cpp:196: error: cast from ‘Gnutella::Handshaking::Slot*’ to ‘int’ loses precision
make[2]: *** [Gnutella/Handshaking/SlotAllocator.o] Error 1
make[2]: Leaving directory `/home/gander/PROJ/calitko-0.6.1′
make[1]: *** [sub-tester-pri-make_default] Error 2
BTW. I re-checked out before doing any of this with:-
bzr branch http://bzr.calitko.org/releases/calitko-0.6.1.
Is that correct? (or any of the above steps?)
Giles
