Unable to open a qt project made earlier on other system (raspberry pi)
-
Hey there,
I am unable to open my qt project which was initially created on an other system (raspberry pi). I have been using the same qt version on both the systems.
Following is the image attached for the same. It would be great if anyone could help.Thanks,
-
The image is missing.
Please also post all error messages you are getting + relevant pieces of code (if any).
-
Their is the post by @Wieland , about how to upload image on the forum
Below link is the guide by @Wieland .https://forum.qt.io/topic/62615/how-to-insert-image-on-this-forum
U can use the link to upload the images and provide the link to the forum for users to understand the query.
https://postimg.cc/Thanks,
-
-
delete user file and build folder. clean, qmake, rebuild the project, I hope it will run.
-
@sush said in Unable to open a qt project made earlier on other system (raspberry pi):
[Makefile] Error 2
Can you post what in the compiler output tab?
The code is not enough on its own.
Could be something with the pro file or something it cant build. -
Hi,
How "old" is that project ?
-
Here is the compiler output tab
06:35:41: Running steps for project etco2... 06:35:41: Configuration unchanged, skipping qmake step. 06:35:41: Starting: "/usr/bin/make" /usr/lib/arm-linux-gnueabihf/qt4/bin/qmake -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../etco2(03-04)/etco2.pro Makefile:147: recipe for target 'Makefile' failed /bin/sh: 1: Syntax error: "(" unexpected make: *** [Makefile] Error 2 06:35:41: The process "/usr/bin/make" exited with code 2. Error while building/deploying project etco2 (kit: Desktop) When executing step "Make" 06:35:41: Elapsed time: 00:00.
Here is my .pro file
#------------------------------------------------- # # Project created by QtCreator 2017-01-25T04:50:47 # #------------------------------------------------- QT += core gui #QT += opengl CONFIG += serialport #DEFINES += QCUSTOMPLOT_USE_OPENGL greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport TARGET = etco2 TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp \ ../QCustomPlot/qcustomplot/qcustomplot.cpp \ alarmdialog.cpp HEADERS += mainwindow.h \ ../QCustomPlot/qcustomplot/qcustomplot.h \ alarmdialog.h FORMS += mainwindow.ui \ alarmdialog.ui
-
Can you build it from the command line ?
What is on line 147 of that Makefile ?