mpogue2 / SquareDesk

Fully-featured music player and sequence designer, designed for square dance callers
10 stars 4 forks source link

Bug: QtStorageInfo -- No such file or directory (Linux) #362

Open olldray opened 6 years ago

olldray commented 6 years ago

Trying to compile on a different machine, this time Ubuntu 14.04.

The failure is:

g++ -c -m64 -pipe -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG_NO_WARNING -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_LOCATION_LIB -DQT_WEBKIT_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_POSITIONING_LIB -DQT_SENSORS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I. -I../local/include -I/usr/include/qt5 -I/usr/include/qt5/QtWebKitWidgets -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtSvg -I/usr/include/qt5/QtPrintSupport -I/usr/include/qt5/QtLocation -I/usr/include/qt5/QtWebKit -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtPositioning -I/usr/include/qt5/QtSensors -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o mainwindow.o mainwindow.cpp
mainwindow.cpp:43:24: fatal error: QStorageInfo: No such file or directory
 #include <QStorageInfo>
                        ^
compilation terminated.
make: *** [mainwindow.o] Error 1

It looks like on my system I do have a QStorageInfo:

$ ag -g QStorageInfo /usr/include
/usr/include/qt5/QtSystemInfo/QStorageInfo

But I'm not really sure how to add /usr/include/qt5/QtSystemInfo to the list of library include paths...

olldray commented 6 years ago

hm... looks like it may be a package version issue. Looking to see if I can upgrade my qt5

danlyke commented 6 years ago

Wow. I've never tried to compile on anything before 16.x, and went to 17.10 before I went to Qt5.

danlyke commented 6 years ago

So I think that you'd need to add the qtsysteminfo package in the test123.pro file. But if you've got a package version solution that might be better...

danlyke commented 6 years ago

@olldray what's the current state of this? Are we missing something in the .pro file?