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. setting up qt with zynq
Forum Updated to NodeBB v4.3 + New Features

setting up qt with zynq

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
26 Posts 4 Posters 7.7k Views 3 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.
  • E Offline
    E Offline
    elliottal
    wrote on last edited by
    #14

    Ok, I believe I figured out my problem again but just to answer @SGaist question real quick, I did navigate to the examples directory and found the "clocks.pro" file and ran "qmake clocks.pro" (not sure why those highlighting in blue and displaying as a link) which produced the same error as before but I am about to explain why I think that is.

    Im going to go through my process again just to be clear and not sure if it matters but I've been doing this on a standalone linux machine running centos 7 without a network connection.

    I installed qt-everywhere-opensource-src-5.4.2 as I have already described. I also downloaded and installed qt-opensource-linux-x64-5.4.2.run which gave me qt creator since i didn't see it when I installed qt-everywhere-opensource-src-5.4.2. I opened qt creator and set it up as I have also already described. So I have two "versions" of qt 5.4.2 installed on my linux machine. one in the install directory and another in Qt5.4.2 directory which has the qtcreator program.

    So my first question is does that process sound right to you or am I doing something weird and should have qt creator in my install directory already although I don't see it anywhere in there?

    Secondly, and this is where I see my mistake regarding my last post. In the screenshot I provided below, the dropdown menu between projects and the search in examples was set to Qt 5.4.2 GCC 64bit which did show all of the example programs and I had selected one of them and then tried to configure it on my Petalinux kit which was set up to use a different qmake so I believe this is why I saw that error. I can run the example fine when using my desktop kit and don't see the unknown module error.

    However, as can be seen in the screenshot I changed the dropdown to use the Qt 5.4.2 (install) location but now there are't any example projects displayed. Again i didn't run -nomake examples, the only options I used were the -xplatform and -prefix when I configured qt-everywhere-opensource-src-5.4.2. Should I be seeing the examples when I have Qt 5.4.2 (install) selected in the dropdown or is this normal?

    0_1547823630167_Screenshot from 2019-01-18 12-31-28.png

    Pablo J. RoginaP 1 Reply Last reply
    0
    • E elliottal

      Ok, I believe I figured out my problem again but just to answer @SGaist question real quick, I did navigate to the examples directory and found the "clocks.pro" file and ran "qmake clocks.pro" (not sure why those highlighting in blue and displaying as a link) which produced the same error as before but I am about to explain why I think that is.

      Im going to go through my process again just to be clear and not sure if it matters but I've been doing this on a standalone linux machine running centos 7 without a network connection.

      I installed qt-everywhere-opensource-src-5.4.2 as I have already described. I also downloaded and installed qt-opensource-linux-x64-5.4.2.run which gave me qt creator since i didn't see it when I installed qt-everywhere-opensource-src-5.4.2. I opened qt creator and set it up as I have also already described. So I have two "versions" of qt 5.4.2 installed on my linux machine. one in the install directory and another in Qt5.4.2 directory which has the qtcreator program.

      So my first question is does that process sound right to you or am I doing something weird and should have qt creator in my install directory already although I don't see it anywhere in there?

      Secondly, and this is where I see my mistake regarding my last post. In the screenshot I provided below, the dropdown menu between projects and the search in examples was set to Qt 5.4.2 GCC 64bit which did show all of the example programs and I had selected one of them and then tried to configure it on my Petalinux kit which was set up to use a different qmake so I believe this is why I saw that error. I can run the example fine when using my desktop kit and don't see the unknown module error.

      However, as can be seen in the screenshot I changed the dropdown to use the Qt 5.4.2 (install) location but now there are't any example projects displayed. Again i didn't run -nomake examples, the only options I used were the -xplatform and -prefix when I configured qt-everywhere-opensource-src-5.4.2. Should I be seeing the examples when I have Qt 5.4.2 (install) selected in the dropdown or is this normal?

      0_1547823630167_Screenshot from 2019-01-18 12-31-28.png

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #15

      @elliottal given the scenario that you describe, I think that you may want to install standalone Qt Creator

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

        @elliottal said in setting up qt with zynq:

        qt-everywhere-opensource-src-5.4.2

        As the name suggests, it's the sources of Qt which is unrelated to installing any pre-built. But that's what you need in order to build Qt yourself.

        My question regarding building a project on command line implied that you would use the full path to your cross-compile Qt qmake executable. Otherwise you are likely using your distribution proved Qt.

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

        E 1 Reply Last reply
        1
        • SGaistS SGaist

          @elliottal said in setting up qt with zynq:

          qt-everywhere-opensource-src-5.4.2

          As the name suggests, it's the sources of Qt which is unrelated to installing any pre-built. But that's what you need in order to build Qt yourself.

          My question regarding building a project on command line implied that you would use the full path to your cross-compile Qt qmake executable. Otherwise you are likely using your distribution proved Qt.

          E Offline
          E Offline
          elliottal
          wrote on last edited by
          #17

          @SGaist I have already set the path variable to include the qmake from my install directory.
          If I type "qmake -v" in the command line then the output I get is this:

          QMake version 3.0
          Using Qt version 5.4.2 in /home/dragon/Qt/install/lib

          also when I type "which qmake" in the command line the output is:

          /home/dragon/install/bin/qmake

          So it appears that I am using the correct qmake according to that output.

          I did navigate to the examples in my install directory again and found the clocks.pro file. I ran "/home/dragon/Qt/install/qmake clocks.pro" which has given me this output:

          "Failure to open file: /home/dragon/Qt/install/examples/declarative/toys/clocks/Makefile
          unable to generate makefile for: clocks.pro"

          Also just to note I removed my other Qt5.4.2 directory that was installed when i ran qt-opensource-linux-x64-5.4.2.run so now the only qt I have installed is from the qt-everywhere-opensource-src-5.4.2 files which I installed to the install folder that I have already mentioned multiple times. I took @Pablo-J-Rogina advice and installed just Qt creator using the link he provided. So now all i have on my computer is qt-creator and qt5.4.2 that I installed in my ~/Qt/install directory.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            elliottal
            wrote on last edited by elliottal
            #18

            I did realize that my install directory was owned by root when I ran "ls -l" so I decided to to do a fresh install. I deleted the install directory and installed it again. Now I can see that the files are not owned by root so that should help. I opened up qt creator and made sure all the settings were still good and tried to run an example program, but still there are no example programs that show up when I click the examples button on the welcome screen. I decided to just open the project manually by opening the file in the example project's directory. Build executed with no problems this time which was good, however now when I click the run button I am met with yet another error that says:

            /home/dragon/Qt/install/examples/declarative/toys/clocks/clocks: error while loading shared libraries: libQt5declarative.so.5: libQt5declarative.so.5: cannot open shared object file: No such file or directory

            I am trying to research this now but if you could provide any insight that would be helpful.

            also I just noticed when I open the QML files and click the "design" button, I'm also getting errors that say cannot open this QML document because of an error in the QML file: Line 0: Unsupported QtQuick version...

            thanks again for your time.

            Pablo J. RoginaP 1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #19

              @elliottal said in setting up qt with zynq:

              libQt5declarative.so.5

              Where is that file located ?

              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
              • E Offline
                E Offline
                elliottal
                wrote on last edited by
                #20

                @SGaist It is located in my install directory under install/lib

                1 Reply Last reply
                0
                • E elliottal

                  I did realize that my install directory was owned by root when I ran "ls -l" so I decided to to do a fresh install. I deleted the install directory and installed it again. Now I can see that the files are not owned by root so that should help. I opened up qt creator and made sure all the settings were still good and tried to run an example program, but still there are no example programs that show up when I click the examples button on the welcome screen. I decided to just open the project manually by opening the file in the example project's directory. Build executed with no problems this time which was good, however now when I click the run button I am met with yet another error that says:

                  /home/dragon/Qt/install/examples/declarative/toys/clocks/clocks: error while loading shared libraries: libQt5declarative.so.5: libQt5declarative.so.5: cannot open shared object file: No such file or directory

                  I am trying to research this now but if you could provide any insight that would be helpful.

                  also I just noticed when I open the QML files and click the "design" button, I'm also getting errors that say cannot open this QML document because of an error in the QML file: Line 0: Unsupported QtQuick version...

                  thanks again for your time.

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #21

                  @elliottal said in setting up qt with zynq:

                  libQt5declarative.so.5: cannot open shared object file: No such file or directory

                  it looks like the Qt support libraries aren't available in the library path

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  E 1 Reply Last reply
                  0
                  • Pablo J. RoginaP Pablo J. Rogina

                    @elliottal said in setting up qt with zynq:

                    libQt5declarative.so.5: cannot open shared object file: No such file or directory

                    it looks like the Qt support libraries aren't available in the library path

                    E Offline
                    E Offline
                    elliottal
                    wrote on last edited by
                    #22

                    @Pablo-J.-Rogina I thought the same thing and added the install/lib directory to the path but the error still persists.

                    1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      Woonchul Ham
                      wrote on last edited by
                      #23
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • W Offline
                        W Offline
                        Woonchul Ham
                        wrote on last edited by
                        #24

                        I also had that kind of problem. One year ago, I try to make Qt environment for Arty Z7-20 Board. last week I try again and find that I try to make new xplatform and inside of qmake.conf I change all the tool chains. ( -gnueabi- -> -gnueabihf-) and do configure command. After that I copy libstdc++* which exists in Xilinx SDK coressponding to -gnueabihf- to installed "lib" ( in my case /usr/lib) and do sucess do run examples ( analogclock) built by config command in Arty Z7-20 Board that use same chip as Your board.

                        W 1 Reply Last reply
                        1
                        • W Woonchul Ham

                          I also had that kind of problem. One year ago, I try to make Qt environment for Arty Z7-20 Board. last week I try again and find that I try to make new xplatform and inside of qmake.conf I change all the tool chains. ( -gnueabi- -> -gnueabihf-) and do configure command. After that I copy libstdc++* which exists in Xilinx SDK coressponding to -gnueabihf- to installed "lib" ( in my case /usr/lib) and do sucess do run examples ( analogclock) built by config command in Arty Z7-20 Board that use same chip as Your board.

                          W Offline
                          W Offline
                          Woonchul Ham
                          wrote on last edited by
                          #25
                          This post is deleted!
                          W 1 Reply Last reply
                          0
                          • W Woonchul Ham

                            This post is deleted!

                            W Offline
                            W Offline
                            Woonchul Ham
                            wrote on last edited by
                            #26

                            @Woonchul-Ham said in setting up qt with zynq:

                            @Woonchul-Ham said in setting up qt with zynq:

                            I also had that kind of problem. One year ago, I try to make Qt environment for Arty Z7-20 Board. last week I try again and find that I try to make new xplatform and inside of qmake.conf I change all the tool chains. ( -gnueabi- -> -gnueabihf-) and do configure command. After that I copy libstdc++* which exists in Xilinx SDK coressponding to -gnueabihf- to installed "lib" ( in my case /usr/lib) and do sucess do run examples ( analogclock) built by config command in Arty Z7-20 Board that use same chip as Your board.

                            ////////

                            qmake configuration for building with arm-xilinx-linux-gnueabi-g++

                            MAKEFILE_GENERATOR = UNIX
                            CONFIG += incremental
                            QMAKE_INCREMENTAL_STYLE = sublib

                            include(../common/linux.conf)
                            include(../common/gcc-base-unix.conf)
                            include(../common/g++-unix.conf)

                            modifications to g++.conf

                            QMAKE_CC = arm-linux-gnueabihf-gcc
                            QMAKE_CXX = arm-linux-gnueabihf-g++
                            QMAKE_LINK = arm-linux-gnueabihf-g++
                            QMAKE_LINK_SHLIB = arm-linux-gnueabihf-g++

                            modifications to linux.conf

                            QMAKE_AR = arm-linux-gnueabihf-ar cqs
                            QMAKE_OBJCOPY = arml-inux-gnueabihf-objcopy
                            QMAKE_NM = arm-linux-gnueabihf-nm -P
                            QMAKE_STRIP = arm-linux-gnueabihf-strip
                            load(qt_config)
                            ///////////

                            I make arm-linux-gnueabihf-g++ folder and copy 2 files ( qmake.conf, qplatformdefs.h) and modified the contents of qmake.conf as above.
                            and then run config command.

                            ./configure -xplatform arm-linux-gnueabihf-g++ -opensource -confirm-license -skip qtquickcontrols -skip qtwebkit -skip qtwebchannel -skip qtactiveqt -skip qtandroidextras -skip qtdeclarative -skip qtimageformats -skip qtmacextras -skip qtserialport -skip qtx11extras -skip qtxmlpatterns -skip qtconnectivity -skip qtdoc -skip qtenginio -skip qtgraphicaleffects -skip qtlocation -skip qtmultimedia -skip qtquick1 -skip qtsensors -skip qttools -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebkit-examples -skip qtwebsockets -skip qtwinextras -verbose -no-gif -no-libjpeg -no-mtdev -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-xcb -qt-freetype -no-fontconfig -no-harfbuzz -no-xinput2 -no-xcb-xlib -no-pulseaudio -no-alsa -no-gtkstyle -no-nis -no-cups -no-iconv -no-icu -no-eglfs -no-openssl

                            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