oferkv / phototonic

Image Viewer and organizer
GNU General Public License v3.0
159 stars 43 forks source link

Fatal error: QtWidgets: No such file or directory #248

Closed student-sx closed 4 years ago

student-sx commented 6 years ago

I tried to install it in ubuntu 17.10 but got the following error during make:

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I/usr/local/include -I. -o main.o main.cpp
In file included from main.cpp:19:0:
Phototonic.h:22:10: fatal error: QtWidgets: No such file or directory
 #include <QtWidgets>
          ^~~~~~~~~~~
compilation terminated.
Makefile:525: recipe for target 'main.o' failed
make: *** [main.o] Error 1
sandsmark commented 4 years ago

You need to install qtbase5-dev: https://packages.ubuntu.com/search?searchon=contents&keywords=QtWidgets&mode=exactfilename&suite=eoan&arch=any