[Topic DIscussion] deepin-terminal compile error with ubuntu 22.04 release
Tofloor
poster avatar
177******71
deepin
2022-05-22 23:41
Author
  1. using ubuntu 22.04 ,first git clone https://github.com/linuxdeepin/deepin-terminal.git
  2. Make sure you have installed all dependencies, you can use the following command.
$ cd deepin-terminal
$ sudo apt build-dep .
  1. Build:
$ cd deepin-terminal
$ mkdir build
$ cd build
$ cmake ..
$ make

output:

(base) xxxxxx@alphago:/Downloads/deepin-terminal/build$ make
[ 1%] Automatic MOC for target terminalwidget5
[ 1%] Built target terminalwidget5_autogen
Consolidate compiler generated dependencies of target terminalwidget5
[ 1%] Building CXX object 3rdparty/terminalwidget/CMakeFiles/terminalwidget5.dir/lib/Emulation.cpp.o
/home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.cpp: In member function ‘void Konsole::Emulation::receiveData(const char*, int, bool)’:
/home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.cpp:304:25: error: ‘QString::QString(const char*)’ is private within this context
304 | QString utf16Text = "";
| ^
In file included from /home/chunmwan/anaconda3/include/qt/QtCore/qobject.h:47,
from /home/chunmwan/anaconda3/include/qt/QtCore/qiodevice.h:45,
from /home/chunmwan/anaconda3/include/qt/QtCore/qdatastream.h:44,
from /home/chunmwan/anaconda3/include/qt/QtGui/qregion.h:49,
from /home/chunmwan/anaconda3/include/qt/QtGui/qevent.h:45,
from /home/chunmwan/anaconda3/include/qt/QtGui/QKeyEvent:1,
from /home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.h:30,
from /home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.cpp:23:
/home/chunmwan/anaconda3/include/qt/QtCore/qstring.h:793:5: note: declared private here
793 | QString(const char ch);
| ^~~~~~~
/home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.cpp:306:31: error: ‘QString::QString(const QByteArray&)’ is private within this context
306 | if (QString(_codec->name()).toUpper().startsWith("GB") && !isCommandExec) {
| ^
In file included from /home/chunmwan/anaconda3/include/qt/QtCore/qobject.h:47,
from /home/chunmwan/anaconda3/include/qt/QtCore/qiodevice.h:45,
from /home/chunmwan/anaconda3/include/qt/QtCore/qdatastream.h:44,
from /home/chunmwan/anaconda3/include/qt/QtGui/qregion.h:49,
from /home/chunmwan/anaconda3/include/qt/QtGui/qevent.h:45,
from /home/chunmwan/anaconda3/include/qt/QtGui/QKeyEvent:1,
from /home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.h:30,
from /home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.cpp:23:
/home/chunmwan/anaconda3/include/qt/QtCore/qstring.h:794:5: note: declared private here
794 | QString(const QByteArray &a);
| ^~~~~~~
/home/chunmwan/Downloads/deepin-terminal/3rdparty/terminalwidget/lib/Emulation.cpp:306:53: error: ‘QString::QString(const char
)’ is private within this context

Reply Favorite View the author
All Replies

No replies yet