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. Compilation error: [sub-lib-make_first-ordered] Error 1
QtWS25 Last Chance

Compilation error: [sub-lib-make_first-ordered] Error 1

Scheduled Pinned Locked Moved Unsolved General and Desktop
compile-error
7 Posts 3 Posters 3.9k 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.
  • D Offline
    D Offline
    dobri
    wrote on last edited by
    #1

    Hi guys,

    I've been trying to compile this project https://github.com/KDAB/integrating-qq2-with-opengl, but it gives the following compilation error:

    [sub-lib-make_first-ordered] Error 1
    

    Environment: Windows 10, Qt Creator 3.5.1 (opensource), Desktop Qt 5.5.1 MinGW 32 bit.

    Any idea how to solve this issue?

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

      What errors do you get before that line?

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dobri
        wrote on last edited by
        #3

        When compiling with MinGW the only error that shows is the mentioned one ":-1: error: [sub-lib-make_first-ordered] Error 1". No more details and no other errors.

        I tried to compile the same project with MSVC2013 64 bit compiler. The error is different this time: ":-1: error: dependent '..\underlay..\lib\librenderlib.a' does not exist."

        Compiling a Qt project is really a hard task...

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

          I tried on Linux:
          qmake
          make
          Worked just fine.

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

          1 Reply Last reply
          0
          • jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            On Windows it fails with:
            No rule to make target integrating-qq2-with-opengl-master/underlay/../lib/librenderlib.a

            Could be due to missing OpenGL libs/headers.

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

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dobri
              wrote on last edited by
              #6

              I found out why the error "[sub-lib-make_first-ordered] Error 1" appears. I installed Qt in "C:\Program files" directory and the space in the name of the folder causes troubles:

              'C:/Program' is not recognized as an internal or external command, operable program or batch file.
              

              So I reinstalled Qt in different directory with no spaces in it. Now I get exactly the same error as jsulm:

              No rule to make target '../Debug/underlay/../lib/librenderlib.a', needed by 'debug\underlay.exe'. 
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi,

                You were hit by the good old "whitespace in path" problem. On Windows you should either use paths without spaces or use the old 8.3 path notation.

                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

                • Login

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