Re: [Hamfax-devel] error when make of latest git
Brought to you by:
cschmitt
|
From: Robert L. <rob...@sa...> - 2011-07-18 09:09:32
|
Dear Christof, I just cloned hamfax git ~/$ git clone git://hamfax.git.sourceforge.net/gitroot/hamfax/hamfax Ran the procedure autoreconf -f -i Then ./configure Then make got the errors below. Note that I will be away sailing from Azores (that is why I installed hamfax, the one from Debian repository is working ) and will not be able to respond for next 4 weeks. I can help you again by testing after 15 August. My son is expert in QT and did a lot with porting Sailcut from Qt3 to Qt4, I will be able to ask him to look into it if you still have some problems. 73, Robert (F1EL many many years ago but dropped it when I moved abroad) ~/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/QtGui -Wall -g -O2 -MT src/hamfax-Config.o -MD -MP -MF src/.deps/hamfax-Config.Tpo -c -o src/hamfax-Config.o `test -f 'src/Config.cpp' || echo './'`src/Config.cpp mv -f src/.deps/hamfax-Config.Tpo src/.deps/hamfax-Config.Po g++ -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/hamfax\" -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -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 mv -f src/.deps/hamfax-CorrectDialog.Tpo src/.deps/hamfax-CorrectDialog.Po g++ -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/hamfax\" -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -Wall -g -O2 -MT src/hamfax-DisplayLevel.o -MD -MP -MF src/.deps/hamfax-DisplayLevel.Tpo -c -o src/hamfax-DisplayLevel.o `test -f 'src/DisplayLevel.cpp' || echo './'`src/DisplayLevel.cpp mv -f src/.deps/hamfax-DisplayLevel.Tpo src/.deps/hamfax-DisplayLevel.Po g++ -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/hamfax\" -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -Wall -g -O2 -MT src/hamfax-FaxImage.o -MD -MP -MF src/.deps/hamfax-FaxImage.Tpo -c -o src/hamfax-FaxImage.o `test -f 'src/FaxImage.cpp' || echo './'`src/FaxImage.cpp mv -f src/.deps/hamfax-FaxImage.Tpo src/.deps/hamfax-FaxImage.Po g++ -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/hamfax\" -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -Wall -g -O2 -MT src/hamfax-FaxWindow.o -MD -MP -MF src/.deps/hamfax-FaxWindow.Tpo -c -o src/hamfax-FaxWindow.o `test -f 'src/FaxWindow.cpp' || echo './'`src/FaxWindow.cpp src/FaxWindow.cpp: In member function ‘void FaxWindow::adjustIOC()’: src/FaxWindow.cpp:691: error: ‘getInt’ is not a member of ‘QInputDialog’ src/FaxWindow.cpp: In member function ‘void FaxWindow::scaleToIOC()’: src/FaxWindow.cpp:702: error: ‘getInt’ is not a member of ‘QInputDialog’ make: *** [src/hamfax-FaxWindow.o] Error 1 Regards / Amitiés Robert LAINE http://www.sailcut.com Free CAD for sails and hull http://sailcut.sourceforge.net GPL source code ----- Le Friday 15 July 2011 23:22:24 Christof Schmitt, vous avez écrit : > 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 |