New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling fails at file ./src/foundation/PropertySet.cpp (Debian 9 / armhf) #156
Comments
I wonder whether other people have the same problem with building from source or whether it's my fault (e. g. missing package, gcc too old, ...). Or might this even be a platform/compiler-specific issue? |
I can't really help you with your issue. However, I'd like to point you out to a related project by 4lex4, in case you haven't seen it yet: Building scantailor and its dependencies. There are detailed instructions for building STA from source there. |
@Piolie Thanks for your comment. I've already read through the building instructions, of course (that is, at least, the Linux part) and I think I followed all the steps which are described there. |
Possible reasons which I could imagine for the build failure are: I think the next thing I'll try is to build from the current git master instead of the (pre-)release tarball ... |
What I could try is simply comment the trouble-causing lines out, but I don't think it's a good idea to do that without knowing what I do. The code is usually there for a reason. |
I also tried make with the -k option (keep going even if a file fails to build), but it stopped and failed at the same file nevertheless. |
I have never built anything from source. Like, in my life :(. But just in case you missed it, the Linux section explains how to get the dependencies and also how to build STA. Although that part is just three lines. Referring to your c) point. In the releases section it says: For Linux users: install Qt5 Svg devel package before building this version. Maybe check that? One more thing. I suggest you do try with the latest master. There have been more than a hundred commits since 2019.8.16_EA, some of which I consider important. I'm eager to get an official release soon. PS: I find it very interesting that you are trying to run STA in a Raspberry Pi. Hope you succeed and report back your results. Sorry I cannot help you any more. |
I already have the libqt5svg5 package (both library and header files), but that was a good idea. |
Today, I compiled STA on KDE Neon 20.04 and it worked without problems. So apparently, I either really had too outdated dependencies on the Rapsberry Pi or these are armhf platform-specific issues. Since there is basically no point at using STA on a Rapsberry anyway, I am closing this now. |
I tried to build ScanTailor Advanced from the latest pre-release source tarball (2019.8.16_EA) on Debian GNU/Linux 9 ("Stretch") on an armhf device (Raspberry Pi 2B), but compiling fails at file
./src/foundation/PropertySet.cpp
:/home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp: In copy constructor ‘PropertySet::PropertySet(const PropertySet&)’: /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:20: error: expected unqualified-id before ‘[’ token for (const auto& [type, prop] : other.m_props) { ^ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:20: error: expected ‘;’ before ‘[’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:21: error: ‘type’ was not declared in this scope for (const auto& [type, prop] : other.m_props) { ^~~~ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:27: error: ‘prop’ was not declared in this scope for (const auto& [type, prop] : other.m_props) { ^~~~ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp: In lambda function: /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:33: error: expected ‘{’ before ‘:’ token for (const auto& [type, prop] : other.m_props) { ^ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp: In copy constructor ‘PropertySet::PropertySet(const PropertySet&)’: /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:33: error: expected ‘;’ before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:33: error: expected primary-expression before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:33: error: expected ‘)’ before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:30:33: error: expected primary-expression before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp: In member function ‘QDomElement PropertySet::toXml(QDomDocument&, const QString&) const’: /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:20: error: expected unqualified-id before ‘[’ token for (const auto& [type, prop] : m_props) { ^ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:20: error: expected ‘;’ before ‘[’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:21: error: ‘type’ was not declared in this scope for (const auto& [type, prop] : m_props) { ^~~~ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:27: error: ‘prop’ was not declared in this scope for (const auto& [type, prop] : m_props) { ^~~~ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp: In lambda function: /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:33: error: expected ‘{’ before ‘:’ token for (const auto& [type, prop] : m_props) { ^ /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp: In member function ‘QDomElement PropertySet::toXml(QDomDocument&, const QString&) const’: /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:33: error: expected ‘;’ before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:33: error: expected primary-expression before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:33: error: expected ‘)’ before ‘:’ token /home/pi/build/scantailor-advanced-2019.8.16_EA/src/foundation/PropertySet.cpp:48:33: error: expected primary-expression before ‘:’ token src/foundation/CMakeFiles/foundation.dir/build.make:114: die Regel für Ziel „src/foundation/CMakeFiles/foundation.dir/PropertySet.cpp.o“ scheiterte make[2]: *** [src/foundation/CMakeFiles/foundation.dir/PropertySet.cpp.o] Fehler 1 make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet... CMakeFiles/Makefile2:225: die Regel für Ziel „src/foundation/CMakeFiles/foundation.dir/all“ scheiterte make[1]: *** [src/foundation/CMakeFiles/foundation.dir/all] Fehler 2 Makefile:162: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2
Full make/cmake build log: sta_buildlog.txt
Versions of tools and dependencies:
A more detailed versions output from apt: dep_versions.txt
Operating System: Debian GNU/Linux 9 ("Stretch")
Kernel: Linux 4.19.66-v7+
Architecture: 32-bit arm hard-float (armhf)
UPDATE: Invalid
The text was updated successfully, but these errors were encountered: