Re: [Hamfax-devel] error when make of latest git
Brought to you by:
cschmitt
|
From: Christof S. <csc...@us...> - 2011-07-15 21:22:41
|
On Wed, Jul 13, 2011 at 01:39:21PM -0700, Christof Schmitt wrote: > 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 just finished the work to remove the Qt3 support library, so the above fix is no longer required: http://hamfax.git.sourceforge.net/git/gitweb.cgi?p=hamfax/hamfax;a=commit;h=20ee47716d19419f6f0f6661449e2707d6cc9cdf Does the latest git clone compile? 73 Christof |