JuBan1 / notepadqq

Notepad++-like editor for Linux

Home Page:http://notepadqq.altervista.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error on Ubuntu 18.04

darealshinji opened this issue · comments

Compiling fails at textedit.cpp:

c++ -c -O2 -std=gnu++1y -Wall -W -Wold-style-cast -D_REENTRANT -fPIC -DQT_NO_URL_CAST_FROM_STRING -DQT_DEPRECATED_WARNINGS -DAUTOLOAD_Asana_FONTS -DQT_DEPRECATED_WARNINGS -DNO_STANDARD_PATHS -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/uchardet -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I../../out/build_data -isystem /usr/include/libdrm -I../../out/build_data -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o ../../out/build_data/textedit.o ote/textedit.cpp
ote/textedit.cpp: In member function 'void ote::TextEdit::setFont(QFont)':
ote/textedit.cpp:247:22: error: 'm_tabWidth' was not declared in this scope
     auto stopWidth = m_tabWidth * fm.width(' ');
                      ^~~~~~~~~~
ote/textedit.cpp:247:22: note: suggested alternative: 'setTabWidth'
     auto stopWidth = m_tabWidth * fm.width(' ');
                      ^~~~~~~~~~
                      setTabWidth
Makefile:1227: recipe for target '../../out/build_data/textedit.o' failed
make[1]: *** [../../out/build_data/textedit.o] Error 1
make[1]: Leaving directory '/home/djcj/Downloads/notepadqq-JuBan1/src/ui'
Makefile:45: recipe for target 'sub-src-ui-make_first' failed
make: *** [sub-src-ui-make_first] Error 2

I'm using Ubuntu 18.04 and the system's default Qt5 stuff.

Thanks for the report! That was because of an error that snuck in for Qt 5.10 and below during refactoring. It compiles well now.