Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error: execvp: ../Widget/mainwindow.ui: Permission denied
Forum Updated to NodeBB v4.3 + New Features

Error: execvp: ../Widget/mainwindow.ui: Permission denied

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 3 Posters 4.0k Views 1 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 Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    There's something fishy, you have -d not found error, where does it come from ?
    The other error seems to be that the system tries to execute main window.ui rather than run uic on it.

    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
    0
    • A Offline
      A Offline
      Alexander-9
      wrote on last edited by Alexander-9
      #3

      @SGaist , The error can't be programming, because only use a button, but in my main.cpp in the #include <QAplication> show me the QApplication no such file or directory and tha tab General Message display following text Failed to set up kit for Qbs: Could not determine whether Qt is a static build..

      My cross-compile application is based in this link: https://community.nxp.com/docs/DOC-94849

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

        What project manager are you using for your project ?

        If qmake, then you are likely missing QT += widgets in your .pro file hence your error about QApplication.

        Your link is only available to registered users.

        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
        0
        • A Offline
          A Offline
          Alexander-9
          wrote on last edited by SGaist
          #5

          Already add Qt += widgets and reboot Qtcreator in my .pro, but display the same error, the access is XXX and XXX.

          [edit: removed credentials SGaist]

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

            The name of the variable is QT.

            Did you re-run qmake before re-building ?

            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
            0
            • A Offline
              A Offline
              Alexander-9
              wrote on last edited by
              #7

              @SGaist , Is correct the variable, sorry, i have tried before create a qmake, but i had a problem with that and have the files, you think you should delete the files??

              jsulmJ 1 Reply Last reply
              0
              • A Alexander-9

                @SGaist , Is correct the variable, sorry, i have tried before create a qmake, but i had a problem with that and have the files, you think you should delete the files??

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

                @Alexander-9 What files do you mean? After changing pro file you need to run qmake again and then rebuild.
                Can you show the content of your pro file?

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

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Alexander-9
                  wrote on last edited by
                  #9

                  @jsulm I have been working with cross-compile application this way:

                  ./configure -opengl es2 -prefix /usr/local/qt5 -extprefix opt/qt5 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/poky/2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /opt/poky/2.0/sysroots/armv7a-vfp-neon-poky-linux-gnueabi -nomake examples -nomake tests -v

                  But it shows me this error, do you know solve this, thanks: Screenshot

                  Regards.

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

                    Looks like your sysroot doesn't contain the needed OpenGL development stuff.

                    On a side note: don't build/develop as root you can brick your system without knowing.

                    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
                    0
                    • A Offline
                      A Offline
                      Alexander-9
                      wrote on last edited by
                      #11

                      @SGaist , @jsulm This are steps to get the toolchain:

                      • Inside of poky: source oe-init-build-env build.
                      • Configure local.conf for the type of machine, in this case is imx6solosabreauto.
                      • After of download the toolchain, run ./poky-glibc-x86_64-meta-toolchain-qt-cortexa9hf-vfp-neon-toolchain-qt-2.0.3.sh.
                      • Later the url when is the toolchain is the following: /opt/poky/2.0.3/sysroots/x86_64-pokysdk-linux/usr/bin/qmake2.

                      I need do other steps more, hope you help me, thanks.

                      Regards.

                      1 Reply Last reply
                      0

                      • Login

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