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. how to fix linker error in eclipse on linux
QtWS25 Last Chance

how to fix linker error in eclipse on linux

Scheduled Pinned Locked Moved Solved General and Desktop
58 Posts 3 Posters 10.7k 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.
  • M Offline
    M Offline
    micha_eleric
    wrote on 22 Feb 2022, 00:57 last edited by micha_eleric
    #1

    using eclipse on linux
    error, i am mostly sure is an eclipse issue, and not a programming issue.

    g++ -L/usr/include/qt4 -L/usr/include/qt4/QtSerialPort -L/usr/include/qt4/QtGui -o "GUI2" ./src/CGUI.o ./src/Main.o
    /usr/bin/ld: ./src/CGUI.o: in function CGUI::CGUI()': /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:10: undefined reference to QMainWindow::QMainWindow(QWidget*, QFlagsQt::WindowType)'
    /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:10: undefined reference to vtable for CGUI' /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:10: undefined reference to vtable for CGUI'
    /usr/bin/ld: ./src/CGUI.o: in function CGUI::~CGUI()': /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:15: undefined reference to vtable for CGUI'
    /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:15: undefined reference to vtable for CGUI' /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:15: undefined reference to QMainWindow::~QMainWindow()'
    /usr/bin/ld: ./src/Main.o: in function main': /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:14: undefined reference to QApplication::QApplication(int&, char**, int)'
    /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:17: undefined reference to QApplication::exec()' /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:14: undefined reference to QApplication::~QApplication()'
    /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:14: undefined reference to `QApplication::~QApplication()'
    collect2: error: ld returned 1 exit status
    make: *** [makefile:47: GUI2] Error 1

    based on https://forum.qt.io/topic/101400/qt-with-eclipse-c/5 , i added QtCore and QtWidgets, even though there were no errors with #include<>. same errors from compile.

    https://stackoverflow.com/questions/6478317/eclipse-undefined-reference says it is a linker error

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->command: g++

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) [nothing]

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries search path (-L) /usr/include/qt4 /usr/include/qt4/QtWidgets /usr/include/qt4/QtCore /usr/include/qt4/QtSerialPort /usr/include/qt4/QtGui

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Linker flags [nothing]

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other options (-Xlinker [option]) [nothing]

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other objects [nothing]

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Shared Library Settings [nothing][nothing][nothing][nothing]

    what is suppose to be added, and where?

    if:
    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) /usr/include/qt4/QtGui
    error:
    /usr/bin/ld: cannot find -l/usr/include/qt4/QtGui

    if:
    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other options (-Xlinker [option]) /usr/include/qt4/QtGui
    error:
    /usr/bin/ld: cannot find /usr/include/qt4/QtGui: file format not recognized

    if:
    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other objects /usr/include/qt4/QtGui
    error:
    /usr/bin/ld: cannot find /usr/include/qt4/QtGui: file format not recognized

    if it is a virtual function that has to be defined, then what would it be, other than constructor/destructor?


    answer:
    deleting:
    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries search path (-L) /usr/include/qt4 /usr/include/qt4/QtWidgets /usr/include/qt4/QtCore /usr/include/qt4/QtSerialPort /usr/include/qt4/QtGui, did nothing, no new errors, nothing with previous errors

    under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other objects /usr/lib/x86_64-linux-gnu/libQtGui.so
    fixed errors, exposed new errors

    J M 2 Replies Last reply 22 Feb 2022, 06:19
    0
    • M micha_eleric
      22 Feb 2022, 00:57

      using eclipse on linux
      error, i am mostly sure is an eclipse issue, and not a programming issue.

      g++ -L/usr/include/qt4 -L/usr/include/qt4/QtSerialPort -L/usr/include/qt4/QtGui -o "GUI2" ./src/CGUI.o ./src/Main.o
      /usr/bin/ld: ./src/CGUI.o: in function CGUI::CGUI()': /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:10: undefined reference to QMainWindow::QMainWindow(QWidget*, QFlagsQt::WindowType)'
      /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:10: undefined reference to vtable for CGUI' /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:10: undefined reference to vtable for CGUI'
      /usr/bin/ld: ./src/CGUI.o: in function CGUI::~CGUI()': /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:15: undefined reference to vtable for CGUI'
      /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:15: undefined reference to vtable for CGUI' /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/CGUI.cpp:15: undefined reference to QMainWindow::~QMainWindow()'
      /usr/bin/ld: ./src/Main.o: in function main': /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:14: undefined reference to QApplication::QApplication(int&, char**, int)'
      /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:17: undefined reference to QApplication::exec()' /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:14: undefined reference to QApplication::~QApplication()'
      /usr/bin/ld: /home/michaeleric/eclipse-workspace/GUI2/Debug/../src/Main.cpp:14: undefined reference to `QApplication::~QApplication()'
      collect2: error: ld returned 1 exit status
      make: *** [makefile:47: GUI2] Error 1

      based on https://forum.qt.io/topic/101400/qt-with-eclipse-c/5 , i added QtCore and QtWidgets, even though there were no errors with #include<>. same errors from compile.

      https://stackoverflow.com/questions/6478317/eclipse-undefined-reference says it is a linker error

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->command: g++

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) [nothing]

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries search path (-L) /usr/include/qt4 /usr/include/qt4/QtWidgets /usr/include/qt4/QtCore /usr/include/qt4/QtSerialPort /usr/include/qt4/QtGui

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Linker flags [nothing]

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other options (-Xlinker [option]) [nothing]

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other objects [nothing]

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Shared Library Settings [nothing][nothing][nothing][nothing]

      what is suppose to be added, and where?

      if:
      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) /usr/include/qt4/QtGui
      error:
      /usr/bin/ld: cannot find -l/usr/include/qt4/QtGui

      if:
      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other options (-Xlinker [option]) /usr/include/qt4/QtGui
      error:
      /usr/bin/ld: cannot find /usr/include/qt4/QtGui: file format not recognized

      if:
      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other objects /usr/include/qt4/QtGui
      error:
      /usr/bin/ld: cannot find /usr/include/qt4/QtGui: file format not recognized

      if it is a virtual function that has to be defined, then what would it be, other than constructor/destructor?


      answer:
      deleting:
      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries search path (-L) /usr/include/qt4 /usr/include/qt4/QtWidgets /usr/include/qt4/QtCore /usr/include/qt4/QtSerialPort /usr/include/qt4/QtGui, did nothing, no new errors, nothing with previous errors

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Miscellaneous->Other objects /usr/lib/x86_64-linux-gnu/libQtGui.so
      fixed errors, exposed new errors

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 22 Feb 2022, 06:19 last edited by
      #2

      @micha_eleric said in how to fix linker error in eclipse on linux:

      under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) /usr/include/qt4/QtGui

      /usr/include/qt4/QtGui contains header files, not libraries!
      You need to specify the folder where Qt libraries are located.
      Thoese should be somewhere in /usr/lib

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

      M 1 Reply Last reply 22 Feb 2022, 07:00
      0
      • J jsulm
        22 Feb 2022, 06:19

        @micha_eleric said in how to fix linker error in eclipse on linux:

        under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) /usr/include/qt4/QtGui

        /usr/include/qt4/QtGui contains header files, not libraries!
        You need to specify the folder where Qt libraries are located.
        Thoese should be somewhere in /usr/lib

        M Offline
        M Offline
        micha_eleric
        wrote on 22 Feb 2022, 07:00 last edited by
        #3

        @jsulm well. /usr/lib/qt5 only contains dir bin, which contains fixqt4headers.pl, moc, qdbus, qdbuscpp2xml, qdbusxml2cpp, qlalr, qmake, qvkgen, rcc, syncqt.pl, uic

        if:
        under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) /usr/lib/qt5/bin
        error:
        /usr/bin/ld: cannot find -l/usr/lib/qt5/bin

        /usr/lib/ only has qt5 dir, that may look like it has anything to do with qt

        J 1 Reply Last reply 22 Feb 2022, 07:02
        0
        • M micha_eleric
          22 Feb 2022, 07:00

          @jsulm well. /usr/lib/qt5 only contains dir bin, which contains fixqt4headers.pl, moc, qdbus, qdbuscpp2xml, qdbusxml2cpp, qlalr, qmake, qvkgen, rcc, syncqt.pl, uic

          if:
          under Properties->C/C++ Build->Settings->Tool Settings->GCC C++ Linker->Libraries->Libraries (-l) /usr/lib/qt5/bin
          error:
          /usr/bin/ld: cannot find -l/usr/lib/qt5/bin

          /usr/lib/ only has qt5 dir, that may look like it has anything to do with qt

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 22 Feb 2022, 07:02 last edited by
          #4

          @micha_eleric said in how to fix linker error in eclipse on linux:

          /usr/lib/qt5/bin

          You are setting include folder for Qt4, but here you're trying to add Qt5 lib folder!
          What Qt version do you actually want to use?
          What Qt version did you install and how?

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

          M 1 Reply Last reply 22 Feb 2022, 07:20
          0
          • J jsulm
            22 Feb 2022, 07:02

            @micha_eleric said in how to fix linker error in eclipse on linux:

            /usr/lib/qt5/bin

            You are setting include folder for Qt4, but here you're trying to add Qt5 lib folder!
            What Qt version do you actually want to use?
            What Qt version did you install and how?

            M Offline
            M Offline
            micha_eleric
            wrote on 22 Feb 2022, 07:20 last edited by
            #5

            @jsulm i installed qt4, but qt5 was the only qt dir made in /usr/lib

            i am looking around in other dir for anything qt

            J 1 Reply Last reply 22 Feb 2022, 07:21
            0
            • M micha_eleric
              22 Feb 2022, 07:20

              @jsulm i installed qt4, but qt5 was the only qt dir made in /usr/lib

              i am looking around in other dir for anything qt

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 22 Feb 2022, 07:21 last edited by
              #6

              @micha_eleric said in how to fix linker error in eclipse on linux:

              i installed qt4

              How?
              Search in /usr/lib, /usr/lib64 for files containing "qt4" in their names.

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

              M 1 Reply Last reply 22 Feb 2022, 07:52
              0
              • J jsulm
                22 Feb 2022, 07:21

                @micha_eleric said in how to fix linker error in eclipse on linux:

                i installed qt4

                How?
                Search in /usr/lib, /usr/lib64 for files containing "qt4" in their names.

                M Offline
                M Offline
                micha_eleric
                wrote on 22 Feb 2022, 07:52 last edited by
                #7

                @jsulm how i install qt4?
                i did internet search for "sudo install qt4". i just redid search, but only came up with install qt5, however the numbers dont look the same.

                under /usr/lib:
                python3.9
                qt5
                recovery-mode

                under usr/lib64:
                ld-linux-x86-64.so.2

                under /usr/include:
                python3.8
                qt4
                rdma

                J 1 Reply Last reply 22 Feb 2022, 07:55
                0
                • M micha_eleric
                  22 Feb 2022, 07:52

                  @jsulm how i install qt4?
                  i did internet search for "sudo install qt4". i just redid search, but only came up with install qt5, however the numbers dont look the same.

                  under /usr/lib:
                  python3.9
                  qt5
                  recovery-mode

                  under usr/lib64:
                  ld-linux-x86-64.so.2

                  under /usr/include:
                  python3.8
                  qt4
                  rdma

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 22 Feb 2022, 07:55 last edited by
                  #8

                  @micha_eleric said in how to fix linker error in eclipse on linux:

                  under /usr/lib:
                  python3.9
                  qt5
                  recovery-mode
                  under usr/lib64:
                  ld-linux-x86-64.so.2

                  There should be way more than that.
                  I suggested to search:

                  find /usr/lib -name *qt4*
                  find /usr/lib64 -name *qt4*
                  

                  What Linux distribution do you use? Please also tell the version.

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

                  M 2 Replies Last reply 22 Feb 2022, 08:06
                  0
                  • J jsulm
                    22 Feb 2022, 07:55

                    @micha_eleric said in how to fix linker error in eclipse on linux:

                    under /usr/lib:
                    python3.9
                    qt5
                    recovery-mode
                    under usr/lib64:
                    ld-linux-x86-64.so.2

                    There should be way more than that.
                    I suggested to search:

                    find /usr/lib -name *qt4*
                    find /usr/lib64 -name *qt4*
                    

                    What Linux distribution do you use? Please also tell the version.

                    M Offline
                    M Offline
                    micha_eleric
                    wrote on 22 Feb 2022, 08:06 last edited by
                    #9

                    @jsulm there is a lot more, i only listed what was before and after qt

                    looking back through command line, i wonder if i half installed

                    1 Reply Last reply
                    0
                    • J jsulm
                      22 Feb 2022, 07:55

                      @micha_eleric said in how to fix linker error in eclipse on linux:

                      under /usr/lib:
                      python3.9
                      qt5
                      recovery-mode
                      under usr/lib64:
                      ld-linux-x86-64.so.2

                      There should be way more than that.
                      I suggested to search:

                      find /usr/lib -name *qt4*
                      find /usr/lib64 -name *qt4*
                      

                      What Linux distribution do you use? Please also tell the version.

                      M Offline
                      M Offline
                      micha_eleric
                      wrote on 22 Feb 2022, 08:17 last edited by
                      #10

                      @jsulm from https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/

                      i have:
                      sudo add-apt-repository ppa:rock-core/qt4
                      in command line.

                      ??anything else should be installed?

                      J 1 Reply Last reply 22 Feb 2022, 08:30
                      0
                      • M micha_eleric
                        22 Feb 2022, 08:17

                        @jsulm from https://ubuntuhandbook.org/index.php/2020/07/install-qt4-ubuntu-20-04/

                        i have:
                        sudo add-apt-repository ppa:rock-core/qt4
                        in command line.

                        ??anything else should be installed?

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 22 Feb 2022, 08:30 last edited by
                        #11

                        @micha_eleric said in how to fix linker error in eclipse on linux:

                        sudo add-apt-repository ppa:rock-core/qt4

                        This does not install anything!
                        This command only adds a new source for packages.
                        You need to install needed packages using "apt install PACKET_NAME".

                        One question: do you really need Qt4?

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

                        M 1 Reply Last reply 22 Feb 2022, 08:36
                        0
                        • J jsulm
                          22 Feb 2022, 08:30

                          @micha_eleric said in how to fix linker error in eclipse on linux:

                          sudo add-apt-repository ppa:rock-core/qt4

                          This does not install anything!
                          This command only adds a new source for packages.
                          You need to install needed packages using "apt install PACKET_NAME".

                          One question: do you really need Qt4?

                          M Offline
                          M Offline
                          micha_eleric
                          wrote on 22 Feb 2022, 08:36 last edited by micha_eleric
                          #12

                          @jsulm qt4 it is what i started with.

                          i also found:
                          sudo apt install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui

                          which seems to be from:
                          https://askubuntu.com/questions/1274134/cannot-install-qt-4-on-ubuntu-20-04-quite-universal-circuit-simulator-qucs

                          this is last i found with qt*, if it is not installing qt4, then i guess my errors have been found

                          sudo apt-get install qt5-default
                          results:
                          qt5-default is already the newest version (5.12.8+dfsg-0ubuntu2.1).

                          however, there are no qt5 directory under /usr/include

                          JonBJ 1 Reply Last reply 22 Feb 2022, 08:51
                          0
                          • M micha_eleric
                            22 Feb 2022, 08:36

                            @jsulm qt4 it is what i started with.

                            i also found:
                            sudo apt install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui

                            which seems to be from:
                            https://askubuntu.com/questions/1274134/cannot-install-qt-4-on-ubuntu-20-04-quite-universal-circuit-simulator-qucs

                            this is last i found with qt*, if it is not installing qt4, then i guess my errors have been found

                            sudo apt-get install qt5-default
                            results:
                            qt5-default is already the newest version (5.12.8+dfsg-0ubuntu2.1).

                            however, there are no qt5 directory under /usr/include

                            JonBJ Offline
                            JonBJ Offline
                            JonB
                            wrote on 22 Feb 2022, 08:51 last edited by
                            #13

                            @micha_eleric said in how to fix linker error in eclipse on linux:

                            @jsulm qt4 it is what i started with.

                            This is not a great/clear answer, as @jsulm is pointing out that Qt4 is very old. Do you have a choice to move to Qt5, or even (hesitantly!) Qt6?

                            M 1 Reply Last reply 22 Feb 2022, 08:54
                            0
                            • JonBJ JonB
                              22 Feb 2022, 08:51

                              @micha_eleric said in how to fix linker error in eclipse on linux:

                              @jsulm qt4 it is what i started with.

                              This is not a great/clear answer, as @jsulm is pointing out that Qt4 is very old. Do you have a choice to move to Qt5, or even (hesitantly!) Qt6?

                              M Offline
                              M Offline
                              micha_eleric
                              wrote on 22 Feb 2022, 08:54 last edited by
                              #14

                              @JonB it seems i already installed qt5. just it is not showing up under /usr/include

                              J 1 Reply Last reply 22 Feb 2022, 08:59
                              0
                              • M micha_eleric
                                22 Feb 2022, 08:54

                                @JonB it seems i already installed qt5. just it is not showing up under /usr/include

                                J Offline
                                J Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on 22 Feb 2022, 08:59 last edited by
                                #15

                                @micha_eleric said in how to fix linker error in eclipse on linux:

                                i already installed qt5

                                What exactly? Which qt5 packages?
                                " just it is not showing up under /usr/include" - as I already told you b efore the libraries will NOT show up in that directory. Search for the qt5 libs like I suggested before:

                                find /usr/lib -name *qt5*
                                find /usr/lib64 -name *qt5*
                                

                                Don't forget to also change include folders in your set-up as currently you use qt4 include folder.

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

                                M 1 Reply Last reply 22 Feb 2022, 09:05
                                0
                                • J jsulm
                                  22 Feb 2022, 08:59

                                  @micha_eleric said in how to fix linker error in eclipse on linux:

                                  i already installed qt5

                                  What exactly? Which qt5 packages?
                                  " just it is not showing up under /usr/include" - as I already told you b efore the libraries will NOT show up in that directory. Search for the qt5 libs like I suggested before:

                                  find /usr/lib -name *qt5*
                                  find /usr/lib64 -name *qt5*
                                  

                                  Don't forget to also change include folders in your set-up as currently you use qt4 include folder.

                                  M Offline
                                  M Offline
                                  micha_eleric
                                  wrote on 22 Feb 2022, 09:05 last edited by
                                  #16

                                  @jsulm said in how to fix linker error in eclipse on linux:

                                  find /usr/lib -name qt5

                                  michaeleric@michaeleric-C7B250-CB-ML:/usr/lib$ find -name qt5
                                  ./qt5
                                  ./x86_64-linux-gnu/qt5
                                  michaeleric@michaeleric-C7B250-CB-ML:/usr/lib$ cd /
                                  michaeleric@michaeleric-C7B250-CB-ML:/$ cd /usr/lib64
                                  michaeleric@michaeleric-C7B250-CB-ML:/usr/lib64$ find -name qt5
                                  michaeleric@michaeleric-C7B250-CB-ML:/usr/lib64$

                                  J 1 Reply Last reply 22 Feb 2022, 09:06
                                  0
                                  • M micha_eleric
                                    22 Feb 2022, 09:05

                                    @jsulm said in how to fix linker error in eclipse on linux:

                                    find /usr/lib -name qt5

                                    michaeleric@michaeleric-C7B250-CB-ML:/usr/lib$ find -name qt5
                                    ./qt5
                                    ./x86_64-linux-gnu/qt5
                                    michaeleric@michaeleric-C7B250-CB-ML:/usr/lib$ cd /
                                    michaeleric@michaeleric-C7B250-CB-ML:/$ cd /usr/lib64
                                    michaeleric@michaeleric-C7B250-CB-ML:/usr/lib64$ find -name qt5
                                    michaeleric@michaeleric-C7B250-CB-ML:/usr/lib64$

                                    J Offline
                                    J Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on 22 Feb 2022, 09:06 last edited by
                                    #17

                                    @micha_eleric Please read again what I suggested (hint: * is important)...

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

                                    M 1 Reply Last reply 22 Feb 2022, 09:11
                                    0
                                    • J jsulm
                                      22 Feb 2022, 09:06

                                      @micha_eleric Please read again what I suggested (hint: * is important)...

                                      M Offline
                                      M Offline
                                      micha_eleric
                                      wrote on 22 Feb 2022, 09:11 last edited by
                                      #18

                                      @jsulm the * was used, copied, pasted, but did not show on post.

                                      J JonBJ 2 Replies Last reply 22 Feb 2022, 09:13
                                      0
                                      • M micha_eleric
                                        22 Feb 2022, 09:11

                                        @jsulm the * was used, copied, pasted, but did not show on post.

                                        J Offline
                                        J Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 22 Feb 2022, 09:13 last edited by
                                        #19

                                        @micha_eleric Can you please answer questions?
                                        I asked before: What exactly? Which qt5 packages?

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

                                        M 1 Reply Last reply 22 Feb 2022, 09:15
                                        0
                                        • J jsulm
                                          22 Feb 2022, 09:13

                                          @micha_eleric Can you please answer questions?
                                          I asked before: What exactly? Which qt5 packages?

                                          M Offline
                                          M Offline
                                          micha_eleric
                                          wrote on 22 Feb 2022, 09:15 last edited by
                                          #20

                                          @jsulm sudo apt-get install qt5-default
                                          from:
                                          https://wiki.qt.io/Install_Qt_5_on_Ubuntu

                                          J 1 Reply Last reply 22 Feb 2022, 09:21
                                          0

                                          2/58

                                          22 Feb 2022, 06:19

                                          topic:navigator.unread, 56
                                          • Login

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