/build/zint-2.7.0/frontend_qt/exportwindow.cpp:109:9: error: 'txtFeedback' was not declared in this scope; did you mean 'Feedback'? 109 | txtFeedback->clear(); | ^~~~~~~~~~~ | Feedback make[3] *** [frontend_qt/CMakeFiles/zint-qt.dir/build.make:193: frontend_qt/CMakeFiles/zint-qt.dir/exportwindow.cpp.o] Error 1 make[3] *** Waiting for unfinished jobs.... /build/zint-2.7.0/frontend_qt/mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*, Qt::WindowFlags)': /build/zint-2.7.0/frontend_qt/mainwindow.cpp:161:13: error: 'chkAutoHeight' was not declared in this scope 161 | connect(chkAutoHeight, SIGNAL(stateChanged( int )), SLOT(autoheight_clicked())); | ^~~~~~~~~~~~~ /build/zint-2.7.0/frontend_qt/mainwindow.cpp: In member function 'void MainWindow::autoheight_clicked()': /build/zint-2.7.0/frontend_qt/mainwindow.cpp:331:9: error: 'chkAutoHeight' was not declared in this scope 331 | if (chkAutoHeight->isChecked()) { | ^~~~~~~~~~~~~ /build/zint-2.7.0/frontend_qt/mainwindow.cpp:332:9: error: 'lblHeight' was not declared in this scope; did you mean 'PdmHeight'? 332 | lblHeight->setEnabled(false); | ^~~~~~~~~ | PdmHeight /build/zint-2.7.0/frontend_qt/mainwindow.cpp:335:9: error: 'lblHeight' was not declared in this scope; did you mean 'PdmHeight'? 335 | lblHeight->setEnabled(true); | ^~~~~~~~~ | PdmHeight /build/zint-2.7.0/frontend_qt/mainwindow.cpp: In member function 'void MainWindow::update_preview()': /build/zint-2.7.0/frontend_qt/mainwindow.cpp:1072:8: error: 'chkAutoHeight' was not declared in this scope 1072 | if(chkAutoHeight->isChecked()) { | ^~~~~~~~~~~~~ make[3] *** [frontend_qt/CMakeFiles/zint-qt.dir/build.make:154: frontend_qt/CMakeFiles/zint-qt.dir/mainwindow.cpp.o] Error 1
Thank you for the bug-report.
I have no idea about Debian. But on the windows side this may happen, if the following command was not issued before a make:
qmake backend-qt
Just an idea...
Thanks, I tried that but it did not help...
There is a somewhat similar output in https://sourceforge.net/p/zint/tickets/175/ (although not completely the same), but it might relate to the same problem!
I am running Ubuntu 18.04.3 as mentioned in ticket 175.
In Ubuntu when trying with 'qmake ../backend_qt' prior to calling 'sudo makie install' in the build directory yields (in Danish) that the File Format was not recoqnized
(e.g. "strip:/tmp/zint-2.7.0/backend_qt/inst/include/zint.h: Filformatet ikke genkendt"):
Cheers
Last edit: Anders Lind 2020-01-15
Jakob Haufe pointed out to me that the problem is because pre-generated files in the release tarball are not being removed before build (e.g.
make clean
).Manuallty removing
frontend_qt/ui_*.h
files fixes this FTBFS.Build system should be corrected to always re-build those files as required.
Another detail: This only happens when building in a separate build directory. Then, the source directory comes first in the include path but the generated
ui_*
files end up in the build directory, effectively being ignored.IMHO the real bug is the release tarball containing build artifacts.
Thank you for the hint. That is definitively an error in "2.7.0/zint-2.7.0.tar.gz".
May you please try the file "test/zint-2.7.0.tar.gz" ?
I tried to restore the real release files, but had still some differences.
I am not the best git master...
Thank you,
Harald
Thanks, Harald. No need to try test tarball as removing artifacts with
rm -v frontend_qt/ui_*.h
is sufficient to fix build with original tarball. As I've said removing those files should be done inmake clean
so I recommend to implement that then release a corrected 2.7.1 release -- there are already some fixes in master that qualify for minor release.What I understood is, that there is an issue in "make clean". Will you provide the patch for this?
I also understood that the issue is solved so I close the bug.
A new version 2.7.1 may come soon.
Thank you,
Harald
Workaround is known but the issue is not fixed so let's keep the ticket open please.
I'm not sure I have enough time to contribute a patch...