PDA

View Full Version : error while installing qt4 on kali linux 2020.2



musa.najame
20th April 2020, 13:51
hello im trying to install qt4 on kali Linux
-------------------------------
Distributor ID:Kali
Description:Kali GNU/Linux Rolling
Release:2020.2
Codename:kali-rolling
------------------------------
I went throw the following steps

apt-get update
apt-get install wget make g++ libxext-dev python-pip python-dev
apt-get install openssl cmake

wget https://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
tar -xvf qt-everywhere-opensource-src-4.8.6.tar.gz
cd qt-everywhere-opensource-src-4.8.6

./configure -fast

till here everything went ok but when I run "make" I'm getting the following errors

and I need qt4 because I have a program that requires only qt4 because it's not updated to work with qt5

the errors start with :



dialogs/qprintdialog_unix.cpp: In destructor ‘virtual QPrintPropertiesDialog::~QPrintPropertiesDialog() :
dialogs/qprintdialog_unix.cpp:281:19: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’
281 | delete widget.cupsPropertiesPage;
| ^~~~~~~~~~~~~~~~~~
dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::applyPrinterProperties(QPr inter*)’:
dialogs/qprintdialog_unix.cpp:287:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
287 | widget.pageSetup->setPrinter(p);
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::setupPrinter() const’:
dialogs/qprintdialog_unix.cpp:292:12: error: ‘const class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
292 | widget.pageSetup->setupPrinter();
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::selectPrinter()’:
dialogs/qprintdialog_unix.cpp:337:16: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’
337 | widget.cupsPropertiesPage->setEnabled(false);
| ^~~~~~~~~~~~~~~~~~
dialogs/qprintdialog_unix.cpp:338:16: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
338 | widget.pageSetup->selectPrinter(0);
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::selectPdfPsPrinter(const QPrinter*)’:
dialogs/qprintdialog_unix.cpp:345:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
345 | widget.pageSetup->selectPdfPsPrinter(p);
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp:346:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘tabs’
346 | widget.tabs->setTabEnabled(1, false); // disable the advanced tab
| ^~~~
dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintDialogPrivate::init()’:
dialogs/qprintdialog_unix.cpp:389:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘color’
389 | options.color->setIconSize(QSize(32, 32));
| ^~~~~
dialogs/qprintdialog_unix.cpp:390:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘color’
390 | options.color->setIcon(QIcon(QLatin1String(":/trolltech/dialogs/qprintdialog/images/status-color.png")));
| ^~~~~
dialogs/qprintdialog_unix.cpp:391:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘grayscale’
391 | options.grayscale->setIconSize(QSize(32, 32));
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp:392:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘grayscale’
392 | options.grayscale->setIcon(QIcon(QLatin1String(":/trolltech/dialogs/qprintdialog/images/status-gray-scale.png")));
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp:421:30: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘reverse’
421 | QObject::connect(options.reverse, SIGNAL(toggled(bool)),
| ^~~~~~~
dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintDialogPrivate::applyPrinterProperties(QPrint er*)’:
dialogs/qprintdialog_unix.cpp:430:17: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘color’
430 | options.color->setChecked(true);
| ^~~~~
dialogs/qprintdialog_unix.cpp:432:17: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘grayscale’
432 | options.grayscale->setChecked(true);
| ^~~~~~~~~
dialogs/qprintdialog_unix.cpp:436:17: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘noDuplex’
436 | options.noDuplex->setChecked(true); break;
| ^~~~~~~~


and finish with



dialogs/qprintdialog_unix.cpp:1020:40: error: ‘class Ui::QPrintWidget’ has no member named ‘printers’
1020 | printer->setPrinterName(widget.printers->currentText());
| ^~~~~~~~
make[1]: *** [Makefile:128621: .obj/release-shared/qprintdialog_unix.o] Error 1
make[1]: Leaving directory '/root/qt-everywhere-opensource-src-4.8.6/src/gui'
make: *** [Makefile:423: sub-gui-make_default-ordered] Error 2



any help please I tried all solutions i found available on net