求助,ubuntu 20 安装 qt 4.8.7 编译时的问题
在ubuntu 20下安装QT4.8.7,从everywhere的包编译的。make过程中出现error,但是我找到响应的文件(CPP h ui三个文件),相关的属性是存在的,
比如下面第一个错误 cupsPropertiesPage 这个控件存在,大小写也是正确的。。。
有人知道怎么解决吗?
问题如下:
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp: In destructor ‘virtual QPrintPropertiesDialog::~QPrintPropertiesDialog()’:
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp:281:19: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’
281 | delete widget.cupsPropertiesPage;
| ^~~~~~~~~~~~~~~~~~
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::applyPrinterProperties(QPrinter*)’:
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp:287:12: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
287 | widget.pageSetup->setPrinter(p);
| ^~~~~~~~~
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::setupPrinter() const’:
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp:292:12: error: ‘const class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
292 | widget.pageSetup->setupPrinter();
| ^~~~~~~~~
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp: In member function ‘void QPrintPropertiesDialog::selectPrinter()’:
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp:337:16: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’
337 | widget.cupsPropertiesPage->setEnabled(false);
| ^~~~~~~~~~~~~~~~~~
/home/4.8.7/src/gui/dialogs/qprintdialog_unix.cpp:338:16: error: ‘class Ui::QPrintPropertiesWidget’ has no member named ‘pageSetup’
338 | widget.pageSetup->selectPrinter(0);
| ^~~~~~~~~
…………………………
make: *** [Makefile:128930:.obj/release-shared/qprintdialog_unix.o] 错误 1