question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu Build Error.

See original GitHub issue

The error as follow:

......
../../QtScrcpy-1.4.5/QtScrcpy/dialog.cpp: In member function ‘void Dialog::execAdbCmd()’:
../../QtScrcpy-1.4.5/QtScrcpy/dialog.cpp:140:78: error: ‘SkipEmptyParts’ is not a member of ‘Qt’
     m_adb.execute(ui->serialBox->currentText().trimmed(), cmd.split(" ", Qt::SkipEmptyParts));
                                                                              ^~~~~~~~~~~~~~
Makefile:953: recipe for target 'dialog.o' failed
make[1]: Leaving directory '/home/agou-ops/Downloads/build-all-Desktop-Release/QtScrcpy'
make[1]: *** [dialog.o] Error 1
make: *** [sub-QtScrcpy-make_first] Error 2
Makefile:44: recipe for target 'sub-QtScrcpy-make_first' failed
10:39:58: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project all (kit: Desktop)
When executing step "Make"

QTCreator Version: 4.5.2 and my Build option is release.

How should I fix it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
marcussacanacommented, Nov 8, 2020

Here is what I did: Changed all Qt::SkipEmptyParts to QString::SplitBehavior::SkipEmptyParts Changed all position() to posf() (not sure if is rigth anyway)

Anyway my build binary: QtScrcpy.zip As a extra, a version with small changes: QtScrcpy Linux Custom.zip

1reaction
mwmb2commented, Dec 22, 2020

@BobbyWibowo, Thanks for your information. After installing the latest QT with the online installer, I could build it successfully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the "make: command not found" Error in Ubuntu
Want to build a package but stuck with the "make: command not found" error in Ubuntu? Here's how you can get rid of...
Read more >
Build From Source Ubuntu Error[OPEN] - KiCad.info Forums
Hi everyone, I'm trying to build kicad from source on ubuntu 20.04. I cloned the codes from the link git clone kicad -...
Read more >
Compile error on Ubuntu 20.04 · Issue #1048 - GitHub
It looks like it tries to link to Ubuntu's libtiff 5, not the libtiff4.2 that it compiles already in the install folder. ........
Read more >
gcc build and compile error ubuntu 20.04
This one solved my problem. The point is that do not pay attention to the exact version number, for example there is no...
Read more >
Build error on Ubuntu 20.10 - Google Groups
I"m getting the following error when building on Ubuntu 20.10: ERROR at //build/config/sysroot.gni:65:11: Script returned non-zero exit code ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found