Hi,

Mark Purcell wrote:
> I would like to request the build for aqbanking be upgraded for QT4.

I've just tried to build AqBanking 4.2.3 together with Qt4 on a current
Debian sid system with Qt4 installed by the package manager (i.e. with
package libqt4-dev installed). Thomas gave already some [1]hints on how
to compile current AqBanking with Qt4.

1.
http://lists.aqbanking.de/pipermail/aqbanking-user/2009-November/000038.html


But unfortunately I didn't succeed:

I called configure with the following options:

./configure --enable-debug=yes --enable-qt3=yes \
        --with-backends="aqnone aqhbci aqofxconnect" \
        --with-frontends="qbanking" --prefix=/usr \
        qt3_libs="-lQtCore -lQtGui -lQt3Support" \
        qt3_includes="-I/usr/include/qt4 -I/usr/include/qt4/Qt
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/Qt3Support" \
        qt3_moc=/usr/bin/moc-qt4 \
        qt3_uic=/usr/bin/uic-qt4

1. I needed to patch a Makefile.{am,in} because of a missing library
   (see attachment)
2. I needed to patch a .ui.h file and change a WFlags to Qt::WFlags.
   Maybe a qt3to4 mistake?
3. Eventually I ended up with following error:

libtool: compile:  g++ -DHAVE_CONFIG_H -DQT3_SUPPORT -I.
-I../../../../../../../../.. -I../../../../../../../../../headers
-I./../widgets -I./.. -I../widgets -I.. -I/usr/include/gwenhywfar3
-I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support -g -Wall -MT
wizard.lo -MD -MP -MF .deps/wizard.Tpo -c wizard.cpp  -fPIC -DPIC -o
.libs/wizard.o
wizard.cpp: In member function 'void Wizard::addAction(WizardAction*)':
wizard.cpp:61: error: no matching function for call to
'Wizard::addPage(WizardAction*&, const QString&)'
/usr/include/qt4/Qt/qwizard.h:129: note: candidates are: int
QWizard::addPage(QWizardPage*)
wizard.cpp: In member function 'virtual void Wizard::back()':
wizard.cpp:138: error: cannot call member function 'virtual void
Q3Wizard::back()' without object
wizard.cpp: In member function 'virtual void Wizard::next()':
wizard.cpp:163: error: cannot call member function 'virtual void
Q3Wizard::next()' without object
wizard.cpp:171: error: 'setFinishEnabled' was not declared in this scope
wizard.cpp:173: error: 'setFinishEnabled' was not declared in this scope
wizard.cpp: In member function 'void
Wizard::setNextEnabled(WizardAction*, bool)':
wizard.cpp:183: error: 'setNextEnabled' is not a member of 'WizardUi'
wizard.cpp: In member function 'void
Wizard::setBackEnabled(WizardAction*, bool)':
wizard.cpp:191: error: 'setBackEnabled' is not a member of 'WizardUi'
make[13]: *** [wizard.lo] Error 1
make[13]: Leaving directory
`/home/micha/aqbanking/libaqbanking-4.2.3/src/plugins/backends/aqhbci/ui/qt3/libs/dialogs/wizard'

Anyone an idea how to solve this?

Regards
  Micha
diff -aur libaqbanking-4.2.3.patched/src/frontends/qbanking/lib/Makefile.am aqbanking-4.2.3/src/frontends/qbanking/lib/Makefile.am
--- libaqbanking-4.2.3.patched/src/frontends/qbanking/lib/Makefile.am	2010-01-15 12:46:35.000000000 +0100
+++ aqbanking-4.2.3/src/frontends/qbanking/lib/Makefile.am	2009-05-29 21:32:53.000000000 +0200
@@ -83,9 +83,9 @@
 # Build and link a test program to verify the linker flags
 noinst_PROGRAMS = testlib checklib
 testlib_SOURCES = testlib.cpp
-testlib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(gwenhywfar_libs) $(qt3_libs)
+testlib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(qt3_libs)
 checklib_SOURCES = checklib.cpp
-checklib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(gwenhywfar_libs) $(qt3_libs)
+checklib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(qt3_libs)
 TESTS = checklib
 clean-local:
 	-rm -rf testfolder
diff -aur libaqbanking-4.2.3.patched/src/frontends/qbanking/lib/Makefile.in aqbanking-4.2.3/src/frontends/qbanking/lib/Makefile.in
--- libaqbanking-4.2.3.patched/src/frontends/qbanking/lib/Makefile.in	2010-01-15 12:47:19.000000000 +0100
+++ aqbanking-4.2.3/src/frontends/qbanking/lib/Makefile.in	2010-01-02 15:18:02.000000000 +0100
@@ -96,11 +96,11 @@
 am_checklib_OBJECTS = checklib.$(OBJEXT)
 checklib_OBJECTS = $(am_checklib_OBJECTS)
 checklib_DEPENDENCIES = libqbanking.la $(am__DEPENDENCIES_1) \
-	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+	$(am__DEPENDENCIES_1)
 am_testlib_OBJECTS = testlib.$(OBJEXT)
 testlib_OBJECTS = $(am_testlib_OBJECTS)
 testlib_DEPENDENCIES = libqbanking.la $(am__DEPENDENCIES_1) \
-	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+	$(am__DEPENDENCIES_1)
 DEFAULT_INCLUDES = -...@am__isrc@ -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
@@ -478,9 +478,9 @@
 	dialogs/libdialogs.la views/libviews.la gui/libqgui.la \
 	$(aqbanking_internal_libs) $(am__append_1)
 testlib_SOURCES = testlib.cpp
-testlib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(gwenhywfar_libs) $(qt3_libs)
+testlib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(qt3_libs)
 checklib_SOURCES = checklib.cpp
-checklib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(gwenhywfar_libs) $(qt3_libs)
+checklib_LDADD = libqbanking.la $(aqbanking_internal_libs) $(qt3_libs)
 all: $(BUILT_SOURCES)
 	$(MAKE) $(AM_MAKEFLAGS) all-recursive
 

Reply via email to