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. Compile error when building project (process: "/usr/bin/make" -j8)

Compile error when building project (process: "/usr/bin/make" -j8)

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 4 Posters 1.1k Views
  • 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.
  • A Offline
    A Offline
    Adham
    wrote on last edited by Adham
    #1

    Hey, I am still getting familiar with Qt and I have been working with it on windows on a GUI application and it was working fine. I wanted to test it's scalability on my Ubuntu machine (20.04.1), so I installed the same version of Qt there. However when I am building, I am getting this error and I am not sure why.

    ... SS-QT-Desktop_Qt_5_12_10_GCC_64bit-Debug/Makefile qmake_all
    make: Nothing to be done for 'qmake_all'.
    14:37:54: The process "/usr/bin/make" exited normally.
    14:10:20: Starting: "/usr/bin/make" -j8
    make: *** No rule to make target '/home/adham/Test_Tools/SS/GUI/SS-QT/./libftd2xx.a', needed by 'SS'. Stop.
    14:10:20: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project SS-QT (kit: Desktop Qt 5.12.10 GCC 64bit)
    When executing step "Make"
    14:10:20: Elapsed time: 00:00.

    It seems the error is happening when creating the executable file for the project, help would be appreciated.
    Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      It says it dont know how to build libftd2xx
      so if you downloaded it for windows, then you need to recompile it to be used in Linux.

      A 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        It says it dont know how to build libftd2xx
        so if you downloaded it for windows, then you need to recompile it to be used in Linux.

        A Offline
        A Offline
        Adham
        wrote on last edited by
        #3

        @mrjj This project compiles and runs on other linux machines. I think it might be a compiler error or something related to Qt's build settings/steps?

        1 Reply Last reply
        1
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Try to compile it without -j8

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          A 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            Try to compile it without -j8

            A Offline
            A Offline
            Adham
            wrote on last edited by Adham
            #5

            @Christian-Ehrlicher It seems I can't remove the -j8 as it is a setting in the build steps. I can adjust the number of cores chosen I believe (ex, -j4 etc.). I am still having troubles building this project. Also, one thing to note is that this same projects builds and runs on other Linux machines.
            Screenshot from 2021-01-26 09-28-27.png

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Adham
              wrote on last edited by Adham
              #6

              Okay so I was digging deeper in the .pro file and I found these few lines of code at the bottom. It seems this is where the error is originating from. I believe these are different build rules depending on the environment, I am still not sure what is the problem
              388a46bf-a6da-4ece-927e-0150e570764a-image.png

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

                Hi,

                Do you have that static library available in the project sources ?

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

                A 1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Do you have that static library available in the project sources ?

                  A Offline
                  A Offline
                  Adham
                  wrote on last edited by
                  #8

                  @SGaist I do have the header file ftd2xx.h. However, I do not have the compiled static file libftd2xx.a. On my Windows machine, I think (and I might be wrong) the library is being compiled at run time because I just checked there and only the header file is available in the project sources.

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

                    In that case you should first get the library for your OS.

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

                    A 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      In that case you should first get the library for your OS.

                      A Offline
                      A Offline
                      Adham
                      wrote on last edited by
                      #10

                      @SGaist I installed the libftd2xx.a static library and copied it into usr/lib as well as usr/local/lib and I am getting the same error. Am I missing something?

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

                        The PRE_TARGETDEPS points within your sources.

                        One thing you can do is comment out this line.

                        It's usually used to ensure that if a static library is changed, then it will trigger a rebuild of the target. In your can you do not seem to build libftd2xx so you should be safe from that point of vue.

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

                        A 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          The PRE_TARGETDEPS points within your sources.

                          One thing you can do is comment out this line.

                          It's usually used to ensure that if a static library is changed, then it will trigger a rebuild of the target. In your can you do not seem to build libftd2xx so you should be safe from that point of vue.

                          A Offline
                          A Offline
                          Adham
                          wrote on last edited by
                          #12

                          @SGaist I commented out the line you mentioned, and now I get a bunch more errors relating to that same library. Seems to be originating from line above the one I removed:
                          /usr/bin/ld: skipping incompatible /usr/local/lib/libftd2xx.so when searching for -lftd2xx
                          /usr/bin/ld: skipping incompatible /usr/local/lib/libftd2xx.a when searching for -lftd2xx
                          /usr/bin/ld: cannot find -lftd2xx
                          /usr/bin/ld: cannot find -lGL
                          collect2: error: ld returned 1 exit status
                          make: *** [Makefile:626: SS] Error 1
                          12:14:39: The process "/usr/bin/make" exited with code 2.
                          Error while building/deploying project SS-QT (kit: Desktop Qt 5.12.10 GCC 64bit)
                          When executing step "Make"
                          12:14:39: Elapsed time: 01:03.

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

                            You are missing the OpenGL development package for your distribution.

                            You likely have a 32bit build of ftd2xx.

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

                            A 1 Reply Last reply
                            2
                            • SGaistS SGaist

                              You are missing the OpenGL development package for your distribution.

                              You likely have a 32bit build of ftd2xx.

                              A Offline
                              A Offline
                              Adham
                              wrote on last edited by
                              #14

                              @SGaist Awesome, you were right. Now with the 64bit ftd2xx and OpenGL package installed, it builds and runs. I guess I'll leave that last line commented out until I figure out the problem with it.

                              Thanks for your help, highly appreciated.

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

                                @Adham said in Compile error when building project (process: "/usr/bin/make" -j8):

                                I guess I'll leave that last line commented out until I figure out the problem with it.

                                As I wrote before, this line expects to find the static libftd2xx library file within the project sources.

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

                                A 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  @Adham said in Compile error when building project (process: "/usr/bin/make" -j8):

                                  I guess I'll leave that last line commented out until I figure out the problem with it.

                                  As I wrote before, this line expects to find the static libftd2xx library file within the project sources.

                                  A Offline
                                  A Offline
                                  Adham
                                  wrote on last edited by
                                  #16

                                  @SGaist I heard you, I tried throwing it in there but I got the same error. Anyways I should be good for now. I'll come back if I can't figure it out later on lol. Thanks again.

                                  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