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

MAKE process error on Debian 10 #128

Open
Suitear opened this issue Jan 3, 2022 · 2 comments
Open

MAKE process error on Debian 10 #128

Suitear opened this issue Jan 3, 2022 · 2 comments

Comments

@Suitear
Copy link

Suitear commented Jan 3, 2022

I have QT5 installed.

But this error pop out when executing 'make' command

/home/user/torrent-file-editor/bencodemodel.cpp: In member function ‘void BencodeModel::appendRow(const QModelIndex&)’: /home/user/torrent-file-editor/bencodemodel.cpp:562:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas] #pragma GCC diagnostic ignored "-Wdeprecated-copy" ^~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/torrent-file-editor.dir/build.make:415: CMakeFiles/torrent-file-editor.dir/bencodemodel.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/torrent-file-editor.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

@kevin201
Copy link

kevin201 commented Feb 7, 2022

Same error on Ubuntu 18.04

@DanielArmengod
Copy link

Similar -Werror=deprecated-delcaration building on Debian 11 with qt5 (because apparently qt4 is no longer in Debian repos):

[ 61%] Building CXX object CMakeFiles/torrent-file-editor.dir/bencode.cpp.o
/home/daniel/tfe/torrent-file-editor-0.3.17/bencode.cpp: In static member function ‘static QByteArray Bencode::toRaw(const Bencode*)’:
/home/daniel/tfe/torrent-file-editor-0.3.17/bencode.cpp:518:41: error: ‘QByteArray& QByteArray::operator+=(const QString&)’ is deprecated: Use QString's toUtf8(), toLatin1() or toLocal8Bit() [-Werror=deprecated-declarations]
  518 |         res += QString::number(ba.size());
      |                                         ^

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