Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.79k stars 838 forks source link

make problems #124

Open CharlesAnjos opened 9 years ago

CharlesAnjos commented 9 years ago

i'm trying to execute the make command and it gives me this error:

charles@notemint ~/cool-retro-term $ make
cd app/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/charles/cool-retro-term/app/app.pro -o Makefile ) && make -f Makefile 
make[1]: Entrando no diretório `/home/charles/cool-retro-term/app'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o main.o main.cpp
main.cpp: In function ‘int main(int, char**)’:
main.cpp:19:17: error: variable ‘QStringList importPathList’ has initializer but incomplete type
     QStringList importPathList = engine.importPathList();
                 ^
main.cpp:19:56: error: invalid use of incomplete type ‘class QStringList’
     QStringList importPathList = engine.importPathList();
                                                        ^
In file included from /usr/include/qt5/QtCore/qurl.h:48:0,
                 from /usr/include/qt5/QtQml/qqmlengine.h:45,
                 from /usr/include/qt5/QtQml/qqmlapplicationengine.h:45,
                 from /usr/include/qt5/QtQml/QQmlApplicationEngine:1,
                 from main.cpp:1:
/usr/include/qt5/QtCore/qstring.h:75:7: error: forward declaration of ‘class QStringList’
 class QStringList;
       ^
make[1]: ** [main.o] Erro 1
make[1]: Saindo do diretório `/home/charles/cool-retro-term/app'
make: ** [sub-app-make_first] Erro 2

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4478396-make-problems?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github).
Swordfish90 commented 9 years ago

Mmh, that's strange. Could you please give me some more details like: what kind of Qt version are you using (check with qmake -v) and which OS?

teuneboon commented 9 years ago

@Swordfish90 having the same issue, the feedback you requested:

> qmake -v
QMake version 3.0
Using Qt version 5.1.1 in /usr/lib/x86_64-linux-gnu

Using the latest version of Linux Mint Debian

Swordfish90 commented 9 years ago

@teuneboon "Using Qt version 5.1.1" . Qt 5.2 is the minimum version required to run crt. If they are not available in debian I suggest you to grab them directory from Digia and to follow the procedure for "Anyone else" in the readme file.

Nepta commented 9 years ago

solved the same problem by adding

#include <QStringList>

in app/main.cpp

teuneboon commented 9 years ago

@Nepta: Thanks, this solved it for me as well

Swordfish90 commented 9 years ago

Wow, I'm amazed. So you managed to build it with Qt 5.1? Is everything working?

Nepta commented 9 years ago

it build with Qt 5.1 but don't execute ^^''

module "QtQuick" version 2.2 is not installed