Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Unable to open a qt project made earlier on other system (raspberry pi)

    General and Desktop
    6
    14
    2239
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sush last edited by

      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,

      0_1495618213422_etco2_prob.png

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        The image is missing.

        Please also post all error messages you are getting + relevant pieces of code (if any).

        (Z(:^

        1 Reply Last reply Reply Quote 2
        • Pradeep Kumar
          Pradeep Kumar last edited by Pradeep Kumar

          @sush

          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/

          http://imgur.com/upload

          Thanks,

          Pradeep Kumar
          Qt,QML Developer

          1 Reply Last reply Reply Quote 4
          • S
            sush last edited by

            Sorry, Here are the new set of images along with the error logs.

            http://imgur.com/a/6nWce

            Thanks,

            mrjj 1 Reply Last reply Reply Quote 1
            • mrjj
              mrjj Lifetime Qt Champion @sush last edited by mrjj

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

              S 1 Reply Last reply Reply Quote 4
              • Vinod Kuntoji
                Vinod Kuntoji last edited by

                delete user file and build folder. clean, qmake, rebuild the project, I hope it will run.

                C++, Qt, Qt Quick Developer,
                PthinkS, Bangalore

                1 Reply Last reply Reply Quote 4
                • S
                  sush @mrjj last edited by sush

                  @mrjj
                  Hi, Thanks for the help it worked. Even though now I am getting a makefile error.

                  [Makefile] Error 2
                  
                  mrjj 1 Reply Last reply Reply Quote 1
                  • mrjj
                    mrjj Lifetime Qt Champion @sush last edited by

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

                    S 1 Reply Last reply Reply Quote 2
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      Hi,

                      How "old" is that project ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      S 1 Reply Last reply Reply Quote 2
                      • S
                        sush @SGaist last edited by

                        @SGaist

                        Hi, The project is only 4 months old.

                        I have been using the same QT version with same environment setups still not working out.

                        Thanks,

                        1 Reply Last reply Reply Quote 0
                        • S
                          sush @mrjj last edited by

                          @mrjj

                          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
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • SGaist
                            SGaist Lifetime Qt Champion last edited by

                            Can you build it from the command line ?

                            What is on line 147 of that Makefile ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            S 1 Reply Last reply Reply Quote 1
                            • S
                              sush @SGaist last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • S
                                sush last edited by

                                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.

                                1 Reply Last reply Reply Quote 2
                                • First post
                                  Last post