Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. could not find qtplatfom plugin eglfs
Forum Updated to NodeBB v4.3 + New Features

could not find qtplatfom plugin eglfs

Scheduled Pinned Locked Moved Unsolved General and Desktop
81 Posts 5 Posters 23.7k Views 2 Watching
  • 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.
  • SGaistS SGaist

    Always use the full path to the qmake version you want to use.

    Note that your cross-compiles Qt will have qmake built for the host and not the target.

    A Offline
    A Offline
    Asha
    wrote on last edited by
    #66

    @SGaist Hi,

    I created the drectory,and created the .cpp and .pro file after that tring for qmke but getting "qmake: could not exec '/usr/lib/x86_64-Linux-gnu/qt4/bin/make': No such file or directory.."

    mkdir sample
    cd sample
    vi sample.cpp
    vi sample.pro
    qmake /home/beagle/Qt5/bin/qmake

    Any suggestions please?.......

    jsulmJ 1 Reply Last reply
    0
    • A Asha

      @SGaist Hi,

      I created the drectory,and created the .cpp and .pro file after that tring for qmke but getting "qmake: could not exec '/usr/lib/x86_64-Linux-gnu/qt4/bin/make': No such file or directory.."

      mkdir sample
      cd sample
      vi sample.cpp
      vi sample.pro
      qmake /home/beagle/Qt5/bin/qmake

      Any suggestions please?.......

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #67

      @Asha said in could not find qtplatfom plugin eglfs:

      Any suggestions please?.......

      "qmake /home/beagle/Qt5/bin/qmake" - what is this line supposed to be?!
      It should be

      /home/beagle/Qt5/bin/qmake
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Asha said in could not find qtplatfom plugin eglfs:

        Any suggestions please?.......

        "qmake /home/beagle/Qt5/bin/qmake" - what is this line supposed to be?!
        It should be

        /home/beagle/Qt5/bin/qmake
        
        A Offline
        A Offline
        Asha
        wrote on last edited by
        #68

        @jsulm yes,i gave this one /home/beagle/Qt5/bin/qmake

        After this i got the makefile,
        the gave the make

        after this make getting the error

        arm-linux-gnueabihf-g++: error : .o No such file or directory
        Makefile:141: recipe for target 'sample' failed
        make: ***[sample] Error 1

        when i list the files ,i got the sample.o file

        so I copied that obj file in my board using scp,

        And executing that sample.o file in board,
        ./sample.o platform=vnc

        getting the error:

        -bash: ./sample.o: cannot execute binary file: EXec format error

        jsulmJ 1 Reply Last reply
        0
        • A Asha

          @jsulm yes,i gave this one /home/beagle/Qt5/bin/qmake

          After this i got the makefile,
          the gave the make

          after this make getting the error

          arm-linux-gnueabihf-g++: error : .o No such file or directory
          Makefile:141: recipe for target 'sample' failed
          make: ***[sample] Error 1

          when i list the files ,i got the sample.o file

          so I copied that obj file in my board using scp,

          And executing that sample.o file in board,
          ./sample.o platform=vnc

          getting the error:

          -bash: ./sample.o: cannot execute binary file: EXec format error

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #69

          @Asha You can't execute *.o files!
          Those needs to be linked together to an executable.

          "arm-linux-gnueabihf-g++: error : .o - please delete everything in your build directory, run qmake again and then build (call make).
          Also this error message looks strange - there should be actual file name in front of .o

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Asha You can't execute *.o files!
            Those needs to be linked together to an executable.

            "arm-linux-gnueabihf-g++: error : .o - please delete everything in your build directory, run qmake again and then build (call make).
            Also this error message looks strange - there should be actual file name in front of .o

            A Offline
            A Offline
            Asha
            wrote on last edited by
            #70

            @jsulm

            Those needs to be linked together to an executable.but i am not getting the executable file...

            getting this
            arm-linux-gnueabihf-g++: error : .o No such file or directory
            Makefile:141: recipe for target 'sample' failed
            make: ***[sample] Error 1

            .o - please delete everything in your build directory,

            I am not understood the above line,delete everything in build directory means,I need to delete the Qt5 directory files and directories?

            jsulmJ 1 Reply Last reply
            0
            • A Asha

              @jsulm

              Those needs to be linked together to an executable.but i am not getting the executable file...

              getting this
              arm-linux-gnueabihf-g++: error : .o No such file or directory
              Makefile:141: recipe for target 'sample' failed
              make: ***[sample] Error 1

              .o - please delete everything in your build directory,

              I am not understood the above line,delete everything in build directory means,I need to delete the Qt5 directory files and directories?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #71

              @Asha said in could not find qtplatfom plugin eglfs:

              I need to delete the Qt5 directory files and directories?

              No.
              What I mean is: delete all build artefacts from previous builds (like *.o files, Makefiles).

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Asha said in could not find qtplatfom plugin eglfs:

                I need to delete the Qt5 directory files and directories?

                No.
                What I mean is: delete all build artefacts from previous builds (like *.o files, Makefiles).

                A Offline
                A Offline
                Asha
                wrote on last edited by
                #72

                @jsulm I deleted the all makefiles and .o files now tring to execute sample.o file but getting the -bash: ./sample.o:cannot execute binary file: Exec format error..

                "You can't execute *.o files!",Please suggest me where i need to link that .o file(I am not getting any executable file)..

                jsulmJ 1 Reply Last reply
                0
                • A Asha

                  @jsulm I deleted the all makefiles and .o files now tring to execute sample.o file but getting the -bash: ./sample.o:cannot execute binary file: Exec format error..

                  "You can't execute *.o files!",Please suggest me where i need to link that .o file(I am not getting any executable file)..

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #73

                  @Asha said in could not find qtplatfom plugin eglfs:

                  "You can't execute *.o files!",Please suggest me where i need to link that .o file(I am not getting any executable file)..

                  You just need to build again!
                  "I am not getting any executable file" - yes, because your build fails.
                  Before I wrote: please delete everything in your build directory, run qmake again and then build (call make).
                  So again: please run qmake and build.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Asha said in could not find qtplatfom plugin eglfs:

                    "You can't execute *.o files!",Please suggest me where i need to link that .o file(I am not getting any executable file)..

                    You just need to build again!
                    "I am not getting any executable file" - yes, because your build fails.
                    Before I wrote: please delete everything in your build directory, run qmake again and then build (call make).
                    So again: please run qmake and build.

                    A Offline
                    A Offline
                    Asha
                    wrote on last edited by
                    #74

                    @jsulm

                    Hi,

                    I done once again qmake and make,

                    After make ,I got

                    undefined reference to 'main'
                    collect2: error :ld returned 1 exit status
                    Makefile:137: recipe for target 'sample 'failed'
                    make: *** [sample] Error 1

                    After listing the files,the result is

                    Makefile
                    .qmake.stash
                    sample.cpp
                    sample.pro

                    I am not getting ,what is the problem....

                    jsulmJ 1 Reply Last reply
                    0
                    • A Asha

                      @jsulm

                      Hi,

                      I done once again qmake and make,

                      After make ,I got

                      undefined reference to 'main'
                      collect2: error :ld returned 1 exit status
                      Makefile:137: recipe for target 'sample 'failed'
                      make: *** [sample] Error 1

                      After listing the files,the result is

                      Makefile
                      .qmake.stash
                      sample.cpp
                      sample.pro

                      I am not getting ,what is the problem....

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #75

                      @Asha Does your sample.cpp contain main() function?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      A 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @Asha Does your sample.cpp contain main() function?

                        A Offline
                        A Offline
                        Asha
                        wrote on last edited by
                        #76

                        @jsulm
                        yes,

                        #include <QCoreApplication>
                        #include <QString>
                        #include <QFile>
                        #include <QDir>
                        #include <QTextStream>
                        #include <QDebug>
                        int main(int argc, char *argv[])
                        {
                        QCoreApplication app(argc, argv);
                        // prepare the message
                        QString message("Hello World!");
                        // prepare a file in the users home directory named out.txt
                        QFile file(QDir::home().absoluteFilePath("out.txt"));
                        // try to open the file in write mode
                        if(!file.open(QIODevice::WriteOnly)) {
                        qWarning() << "Can not open file with write access";
                        return -1;
                        }
                        // as we handle text we need to use proper text codecs
                        QTextStream stream(&file);
                        // write message to file via the text stream
                        stream << message;
                        return 0;
                        }
                        ~                       
                        
                        jsulmJ 1 Reply Last reply
                        0
                        • A Asha

                          @jsulm
                          yes,

                          #include <QCoreApplication>
                          #include <QString>
                          #include <QFile>
                          #include <QDir>
                          #include <QTextStream>
                          #include <QDebug>
                          int main(int argc, char *argv[])
                          {
                          QCoreApplication app(argc, argv);
                          // prepare the message
                          QString message("Hello World!");
                          // prepare a file in the users home directory named out.txt
                          QFile file(QDir::home().absoluteFilePath("out.txt"));
                          // try to open the file in write mode
                          if(!file.open(QIODevice::WriteOnly)) {
                          qWarning() << "Can not open file with write access";
                          return -1;
                          }
                          // as we handle text we need to use proper text codecs
                          QTextStream stream(&file);
                          // write message to file via the text stream
                          stream << message;
                          return 0;
                          }
                          ~                       
                          
                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #77

                          @Asha Please show your pro file

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          A 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @Asha Please show your pro file

                            A Offline
                            A Offline
                            Asha
                            wrote on last edited by
                            #78

                            @jsulm here is my .pro file

                            Qt += core gui

                            sources += \ sample.cpp

                            target.path=/home/debian/Qt5
                            INSTALLS +=target

                            jsulmJ 1 Reply Last reply
                            0
                            • A Asha

                              @jsulm here is my .pro file

                              Qt += core gui

                              sources += \ sample.cpp

                              target.path=/home/debian/Qt5
                              INSTALLS +=target

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on last edited by SGaist
                              #79

                              @Asha said in could not find qtplatfom plugin eglfs:

                              \ sample.cpp

                              why do you have backslash in front of sample.cpp?
                              "Qt += core gui" must be "QT += core gui"

                              [edit: Fixed variable name SGaist]

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              A 1 Reply Last reply
                              0
                              • jsulmJ jsulm

                                @Asha said in could not find qtplatfom plugin eglfs:

                                \ sample.cpp

                                why do you have backslash in front of sample.cpp?
                                "Qt += core gui" must be "QT += core gui"

                                [edit: Fixed variable name SGaist]

                                A Offline
                                A Offline
                                Asha
                                wrote on last edited by
                                #80

                                @jsulm as you said i followed but getting the same result,

                                please say me tje .pro file for that .cpp file

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #81

                                  You don't even need to modify the QT variable content based on your code. However, as @jsulm wrote, your SOURCES line is wrong.

                                  In any case it should rather be

                                  QT += core gui
                                  SOURCES += sample.cpp
                                  

                                  Casing is important.

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

                                  1 Reply Last reply
                                  1

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved