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....c-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 :

Qt Code:
  1. dialogs/qprintdialog_unix.cpp: In destructor ‘virtual QPrintPropertiesDialog::~QPrintPropertiesDialog():
  2. dialogs/qprintdialog_unix.cpp:281:19: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’
  3. 281 | delete widget.cupsPropertiesPage;
  4. | ^~~~~~~~~~~~~~~~~~
  5. dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::applyPrinterProperties(QPrinter*):
  6. dialogs/qprintdialog_unix.cpp:287:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
  7. 287 | widget.pageSetup->setPrinter(p);
  8. | ^~~~~~~~~
  9. dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::setupPrinter() const:
  10. dialogs/qprintdialog_unix.cpp:292:12: error:const class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
  11. 292 | widget.pageSetup->setupPrinter();
  12. | ^~~~~~~~~
  13. dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::selectPrinter():
  14. dialogs/qprintdialog_unix.cpp:337:16: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’
  15. 337 | widget.cupsPropertiesPage->setEnabled(false);
  16. | ^~~~~~~~~~~~~~~~~~
  17. dialogs/qprintdialog_unix.cpp:338:16: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
  18. 338 | widget.pageSetup->selectPrinter(0);
  19. | ^~~~~~~~~
  20. dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::selectPdfPsPrinter(const QPrinter*):
  21. dialogs/qprintdialog_unix.cpp:345:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
  22. 345 | widget.pageSetup->selectPdfPsPrinter(p);
  23. | ^~~~~~~~~
  24. dialogs/qprintdialog_unix.cpp:346:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘tabs’
  25. 346 | widget.tabs->setTabEnabled(1, false); // disable the advanced tab
  26. | ^~~~
  27. dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintDialogPrivate::init():
  28. dialogs/qprintdialog_unix.cpp:389:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘color’
  29. 389 | options.color->setIconSize(QSize(32, 32));
  30. | ^~~~~
  31. dialogs/qprintdialog_unix.cpp:390:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘color’
  32. 390 | options.color->setIcon(QIcon(QLatin1String(":/trolltech/dialogs/qprintdialog/images/status-color.png")));
  33. | ^~~~~
  34. dialogs/qprintdialog_unix.cpp:391:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘grayscale’
  35. 391 | options.grayscale->setIconSize(QSize(32, 32));
  36. | ^~~~~~~~~
  37. dialogs/qprintdialog_unix.cpp:392:13: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘grayscale’
  38. 392 | options.grayscale->setIcon(QIcon(QLatin1String(":/trolltech/dialogs/qprintdialog/images/status-gray-scale.png")));
  39. | ^~~~~~~~~
  40. dialogs/qprintdialog_unix.cpp:421:30: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘reverse’
  41. 421 | QObject::connect(options.reverse, SIGNAL(toggled(bool)),
  42. | ^~~~~~~
  43. dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintDialogPrivate::applyPrinterProperties(QPrinter*):
  44. dialogs/qprintdialog_unix.cpp:430:17: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘color’
  45. 430 | options.color->setChecked(true);
  46. | ^~~~~
  47. dialogs/qprintdialog_unix.cpp:432:17: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘grayscale’
  48. 432 | options.grayscale->setChecked(true);
  49. | ^~~~~~~~~
  50. dialogs/qprintdialog_unix.cpp:436:17: error: ‘class Ui::QPrintSettingsOutput’ has no member named ‘noDuplex’
  51. 436 | options.noDuplex->setChecked(true); break;
  52. | ^~~~~~~~
To copy to clipboard, switch view to plain text mode 

and finish with

Qt Code:
  1. dialogs/qprintdialog_unix.cpp:1020:40: error: ‘class Ui::QPrintWidget’ has no member named ‘printers’
  2. 1020 | printer->setPrinterName(widget.printers->currentText());
  3. | ^~~~~~~~
  4. make[1]: *** [Makefile:128621: .obj/release-shared/qprintdialog_unix.o] Error 1
  5. make[1]: Leaving directory '/root/qt-everywhere-opensource-src-4.8.6/src/gui'
  6. make: *** [Makefile:423: sub-gui-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode 

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