Skip to content
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

Error when running sudo checkinstall #17

Open
nsshub opened this issue May 10, 2021 · 2 comments
Open

Error when running sudo checkinstall #17

nsshub opened this issue May 10, 2021 · 2 comments

Comments

@nsshub
Copy link

nsshub commented May 10, 2021

I follow instruction to compile from this link. https://askubuntu.com/questions/1003678/install-dnscrypt-proxy-gui
when I reach the next command which is sudo checkinstall, I got error from terminal such bellow :

`_========================= Installation results ===========================
[ 62%] Built target DNSCryptClient
[ 63%] actions for pro.russianfedora.dnscryptclient
[ 65%] Built target pro.russianfedora.dnscryptclient.policy-customtarget
[ 75%] Built target dnscrypt_client_helper
[ 76%] actions for pro.russianfedora.dnscryptclienttest
[ 77%] Built target pro.russianfedora.dnscryptclienttest.policy-customtarget
[ 79%] Building CXX object src/helpers/test_helper/CMakeFiles/dnscrypt_client_test_helper.dir/dnscrypt_client_test_helper.cpp.o
/home/nss/dnscrypt-proxy-gui/src/helpers/test_helper/dnscrypt_client_test_helper.cpp: In function ‘bool preparedConfig()’:
/home/nss/dnscrypt-proxy-gui/src/helpers/test_helper/dnscrypt_client_test_helper.cpp:131:52: error: ‘KeepEmptyParts’ is not a member of ‘Qt’
131 | QStringList _parts = _s.split(" ", Qt::KeepEmptyParts);
| ^~~~~~~~~~~~~~
/home/nss/dnscrypt-proxy-gui/src/helpers/test_helper/dnscrypt_client_test_helper.cpp: In function ‘bool preparedServiceUnit()’:
/home/nss/dnscrypt-proxy-gui/src/helpers/test_helper/dnscrypt_client_test_helper.cpp:168:52: error: ‘KeepEmptyParts’ is not a member of ‘Qt’
168 | QStringList _parts = _s.split("=", Qt::KeepEmptyParts);
| ^~~~~~~~~~~~~~
make[2]: *** [src/helpers/test_helper/CMakeFiles/dnscrypt_client_test_helper.dir/build.make:84: src/helpers/test_helper/CMakeFiles/dnscrypt_client_test_helper.dir/dnscrypt_client_test_helper.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:372: src/helpers/test_helper/CMakeFiles/dnscrypt_client_test_helper.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

**** Installation failed. Aborting package creation._

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.
`

by the way I have installed dependencies exactly like the instruction said.

Can you help me to solve this problem ?

image

@F1ash
Copy link
Owner

F1ash commented May 11, 2021

It related with Qt version... you have version older than 5.14
Looks https://doc.qt.io/qt-5/qt.html#SplitBehaviorFlags-enum

@jacopotediosi
Copy link

To make it works on Ubuntu 20.04 LTS without upgrade Qt to 5.14:
rm -rf src/helpers/test_helper/ and remove add_subdirectory(test_helper) from src/helpers/CMakeLists.txt before sudo cmake ./

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants