linuxdeepin / deepin-editor

Text editor for DDE
GNU General Public License v3.0
104 stars 64 forks source link

master branch doesnt build #2

Closed john-gold closed 6 years ago

john-gold commented 6 years ago

Hey, probably I'm missing some new dependencies? (using Linux 4.14.15-1 / x84_64 Arch Linux)

Info: creating stash file /home/logol/git/aur/deepin-editor/src/deepin-editor-git/editor/build/.qmake.stash
g++ -c -pipe -g -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../editor -I. -isystem /usr/include/libdtk-2.0/DWidget -isystem /usr/include/libdtk-2.0/DCore -isystem /usr/include/qt -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o window.o ../src/window.cpp
g++ -c -pipe -g -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../editor -I. -isystem /usr/include/libdtk-2.0/DWidget -isystem /usr/include/libdtk-2.0/DCore -isystem /usr/include/qt -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o startmanager.o ../src/startmanager.cpp
g++ -c -pipe -g -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../editor -I. -isystem /usr/include/libdtk-2.0/DWidget -isystem /usr/include/libdtk-2.0/DCore -isystem /usr/include/qt -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o dbusinterface.o ../src/dbusinterface.cpp
g++ -c -pipe -g -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I../../editor -I. -isystem /usr/include/libdtk-2.0/DWidget -isystem /usr/include/libdtk-2.0/DCore -isystem /usr/include/qt -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -o texteditor.o ../src/texteditor.cpp
../src/window.cpp:24:10: fatal error: danchors.h: No such file or directory
 #include "danchors.h"
          ^~~~~~~~~~~~
aiamuzz commented 6 years ago

the following dependencies are required ...

sudo apt-get install debhelper
sudo apt-get install qt5-qmake
sudo apt-get install qtbase5-dev
sudo apt-get install pkg-config
sudo apt-get install libdtkcore-dev
sudo apt-get install libdtkwidget-dev
sudo apt-get install libxcb-util0-dev
sudo apt-get install libxcb1-dev
sudo apt-get install libqt5x11extras5-dev
sudo apt-get install libprocps-dev
sudo apt-get install libxext-dev
sudo apt-get install libxtst-dev
sudo apt-get install libpolkit-qt5-1-dev
sudo apt-get install libkf5syntaxhighlighting-dev
john-gold commented 6 years ago

file is included in dtkwidget repo

mikield commented 6 years ago

@logol I have libdtkwidget-dev installed with version 2.0.6.1-1 but I can not compile the editor. What should I do to fix this issue? I have the same issue with file not found.

john-gold commented 6 years ago

@mikield hey is it the same file that's missing? I'm not using a debian-based distro so I'm not sure how to fix it for you, but did you check if the libdtkwidget-dev package of your distro contains this header file? If not you might need to rebuild the package using this repo

aiamuzz commented 6 years ago

release 0.0.4 isn't building ...

g++ -c -m64 -pipe -g -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DWORDS_DB_FILE_PATH=\"/usr/share/deepin-editor//words.db\" -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../../editor -I. -isystem /usr/include/libdtk-2.0.7/DWidget -isystem /usr/include/libdtk-2.0.7/DCore -isystem /usr/include/libdtk-2.0/DWm -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/KF5/KCodecs -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o window.o ../src/window.cpp
../src/window.cpp: In member function ‘void Window::handleConfirmCompletion()’:
../src/window.cpp:1334:64: error: ‘class Dtk::Widget::DSimpleListView’ has no member named ‘getSelections’; did you mean ‘addSelections’?
         auto completionItems = wordCompletionWindow->listview->getSelections();
                                                                ^~~~~~~~~~~~~
../src/window.cpp:1336:26: error: unable to deduce ‘auto&&’ from ‘completionItems’
         for (auto item : completionItems) {
                          ^~~~~~~~~~~~~~~
Makefile:877: recipe for target 'window.o' failed
make: *** [window.o] Error 1