Re: [Hamfax-devel] error when make of latest git
Brought to you by:
cschmitt
|
From: Christof S. <csc...@us...> - 2011-07-13 20:39:38
|
On Wed, Jul 13, 2011 at 10:10:10PM +0200, Robert LAINE wrote:
> I cloned the git 12 July 2011 and after
> ~/$./configure
> é/$ make gave me the following error
>
> ~/hamfax$ make
> g++ -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/hamfax\" -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -Wall -g -O2 -MT
> src/hamfax-CorrectDialog.o -MD -MP -MF
> src/.deps/hamfax-CorrectDialog.Tpo -c -o src/hamfax-CorrectDialog.o
> `test -f 'src/CorrectDialog.cpp' || echo './'`src/CorrectDialog.cpp
> src/CorrectDialog.cpp: In
> constructor ‘CorrectDialog::CorrectDialog(QWidget*)’:
> src/CorrectDialog.cpp:28: error: ‘class QWidget’ has no member named ‘caption’
> src/CorrectDialog.cpp:28: error: ‘setCaption’ was not declared in this scope
> make: *** [src/hamfax-CorrectDialog.o] Error 1
>
> I have both Qt3 and Qt4 and KDE installed,
> Any idea how to fix that error??
The define for QT3_SUPPORT is missing which is required by the Qt3Support
module. On my system (Ubuntu Lucid), this is set automatically from the
pkg-config call in configure:
$ make src/hamfax-CorrectDialog.o
g++ -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/hamfax\" -DQT_SHARED -DQT3_SUPPORT -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSql -Wall -g -O2 -MT src/hamfax-CorrectDialog.o -MD -MP -MF src/.deps/hamfax-CorrectDialog.Tpo -c -o src/hamfax-CorrectDialog.o `test -f 'src/CorrectDialog.cpp' || echo './'`src/CorrectDialog.cpp
mv -f src/.deps/hamfax-CorrectDialog.Tpo src/.deps/hamfax-CorrectDialog.Po
Which Linux distibution and which Qt4 version are you using? One quick fix
might be adding the define manually, does this fix the build problem for you?
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,7 +30,7 @@ hamfax_SOURCES = \
src/hamfax.cpp
LIBS+=@Qt4_LIBS@
-hamfax_CXXFLAGS = @Qt4_CFLAGS@ -Wall
+hamfax_CXXFLAGS = @Qt4_CFLAGS@ -DQT3_SUPPORT -Wall
hamfax_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\"
nodist_hamfax_SOURCES = \
> I also suggest to update the README
>
> Installation:
> *************
>
> modify the section starting with ./configure as follows:
>
> check that autotool-dev is installed on your PC
> ~/$ autoreconf -f -i
> ~/$ ./configure
> ~/$ make
Thank your for pointing this out. This is required when building from a git
clone. I added the section here:
http://hamfax.git.sourceforge.net/git/gitweb.cgi?p=hamfax/hamfax;a=commitdiff;h=c1c529040027919f91b8db8fcc40b2856eacd8c9
73
Christof
|