-
Notifications
You must be signed in to change notification settings - Fork 271
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
RPi Imager 1.6.1 can't be built on Ubuntu 18.04 #200
Comments
Just replace it with .right(1) for now. Not sure if we can keep supporting 5.9.5 in the long run. |
Ah, before seeing your reply I just fixed it with: diff --git a/downloadthread.cpp b/downloadthread.cpp
index 1fa0e5c..010aa54 100644
--- a/downloadthread.cpp
+++ b/downloadthread.cpp
@@ -932,7 +932,7 @@ bool DownloadThread::_customizeImage()
for (auto mp : mountpoints)
{
folder = QString::fromStdString(mp);
- if (!folder.isEmpty() && folder.back() == '\\')
+ if (!folder.isEmpty() && folder.at(folder.size() - 1) == '\\')
folder.chop(1);
configFilename = folder+"/config.txt";
|
...but it also builds with the slightly simpler: diff --git a/downloadthread.cpp b/downloadthread.cpp
index 1fa0e5c..fe04290 100644
--- a/downloadthread.cpp
+++ b/downloadthread.cpp
@@ -932,7 +932,7 @@ bool DownloadThread::_customizeImage()
for (auto mp : mountpoints)
{
folder = QString::fromStdString(mp);
- if (!folder.isEmpty() && folder.back() == '\\')
+ if (!folder.isEmpty() && folder.right(1) == '\\')
folder.chop(1);
configFilename = folder+"/config.txt";
😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed the instructions in the README but it fails with a build error:
Looks like QString.back() was added in Qt 5.10, but Ubuntu 18.04 only includes Qt 5.9.5
The text was updated successfully, but these errors were encountered: