Unable to open a qt project made earlier on other system (raspberry pi)
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.
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 .
U can use the link to upload the images and provide the link to the forum for users to understand the query.
Sorry, Here are the new set of images along with the error logs.
You should try delete any .USER file ( or move them away)
Then open and configure the project for the compiler.
Error seems to be for ui mainwindow.h which is generated.
delete user file and build folder. clean, qmake, rebuild the project, I hope it will run.
Hi, Thanks for the help it worked. Even though now I am getting a makefile error.
[Makefile] Error 2
[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.
How "old" is that project ?
Hi, The project is only 4 months old.
I have been using the same QT version with same environment setups still not working out.
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 ?
This post is deleted!
Thanks to all of you, I got my previous project running finally.
There was some problem with the project name and I deleted the .USER file from the project also.