Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Build dependencies #2

Closed
taisto opened this issue Aug 30, 2017 · 10 comments
Closed

Build dependencies #2

taisto opened this issue Aug 30, 2017 · 10 comments

Comments

@taisto
Copy link

taisto commented Aug 30, 2017

After following the build instructions I get an error during compilation with qt4.8:
In file included from src/main.cpp:1:0: src/miomain.h:8:30: fatal error: QCommandLineParser: Datei oder Verzeichnis nicht gefunden #include <QCommandLineParser>
From searching online I get the impression, that QCommandLineParser was introduced with qt5.2.

@dehnhardt
Copy link
Owner

Ok, again I broke the compatibility with QT4.8...
Qt5.2 is about 3 Years old. Do you think backward compatibility to QT4.x ist still needed? What distro are you on?

@taisto
Copy link
Author

taisto commented Aug 30, 2017

After retrying with QT5 compilation works fine for me. I guess all it takes is an update of the build instructions.

@dehnhardt
Copy link
Owner

updated the buid depencencies

@MatthewGitter
Copy link

MatthewGitter commented Nov 19, 2018

$ make
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DQT_DEPRECATED_WARNINGS -D__LINUX_ALSA__ -D__MIO_DEBUG__ -D__RTMIDI_DEBUG__ -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/usr/include/libusb-1.0 -I. -I. -o main.o src/main.cpp
In file included from src/main.cpp:1:0:
src/iconnconfigmain.h:8:10: fatal error: QCommandLineParser: No such file or directory
#include <QCommandLineParser>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:516: recipe for target 'main.o' failed
make: *** [main.o] Error 1
$ locate QCommandLineParser
/usr/include/x86_64-linux-gnu/qt5/QtCore/QCommandLineParser

@dehnhardt
Copy link
Owner

@MatthewGitter Do you use QT >= 5.2?

@MatthewGitter
Copy link

MatthewGitter commented Nov 19, 2018 via email

@dehnhardt
Copy link
Owner

Then everything is ok. You still need QT5.2 or later and as you clearly stated you have only4.8.x.

@MatthewGitter
Copy link

MatthewGitter commented Nov 19, 2018 via email

@MatthewGitter
Copy link

I noticed in the BUILD.md doc that I needed to install libclalsadrv-dev , so I did. I ran qmake -qt=5 ; make again (this time including the -qt=5). This time no problem (except a warning on a switch/case default fallthru) building, and it runs and finds my device. I suppose it what the -qt-5 switch to qmake that made the difference.

@dehnhardt
Copy link
Owner

Ok, thanks for the finding. I will add that tip that in the dependencies file,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants