make problems #124

Open
opened 2014-09-19 02:50:42 +02:00 by CharlesAnjos · 7 comments
CharlesAnjos commented 2014-09-19 02:50:42 +02:00 (Migrated from github.com)

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).
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 ``` ## <bountysource-plugin> --- 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). </bountysource-plugin>
Swordfish90 commented 2014-09-19 09:22:20 +02:00 (Migrated from github.com)

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?

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 2014-10-02 14:11:03 +02:00 (Migrated from github.com)

@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 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 2014-10-02 22:17:04 +02:00 (Migrated from github.com)

@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.

@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 2014-10-03 16:48:25 +02:00 (Migrated from github.com)

solved the same problem by adding

#include <QStringList>

in app/main.cpp

solved the same problem by adding ``` c #include <QStringList> ``` in app/main.cpp
teuneboon commented 2014-10-03 16:54:13 +02:00 (Migrated from github.com)

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

@Nepta: Thanks, this solved it for me as well
Swordfish90 commented 2014-10-03 17:19:24 +02:00 (Migrated from github.com)

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

Wow, I'm amazed. So you managed to build it with Qt 5.1? Is everything working?
Nepta commented 2014-10-04 13:00:12 +02:00 (Migrated from github.com)

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

module "QtQuick" version 2.2 is not installed
it build with Qt 5.1 but don't execute ^^'' ``` module "QtQuick" version 2.2 is not installed ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#124
No description provided.