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. Dynamic Libraries Qt
QtWS25 Last Chance

Dynamic Libraries Qt

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 3.6k 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.
  • B Offline
    B Offline
    brlebtag
    wrote on last edited by
    #1

    Hi all,

    in Windows and using dynamic link libraries. You just need to place the rights .dlls in the same folder as qt compiled .exe.

    is it possible to achive the same goal in linux?

    i tried place qt linux compiled executable with libQtCore.so or/and libQtCore.so.4.8.4 and libQtGui.so or/and libQtGui.so.4.8.4 and its not working.

    am i missing any other *.so ?

    is it going to work like it works in windows? or is there other way?

    thx!

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

      Hi,

      No, linux is a completely different beast. What would you like to achieve ? Application distribution ? What flavor of linux are your running ?

      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
      • B Offline
        B Offline
        brlebtag
        wrote on last edited by
        #3

        its a university work. I just want to run in my tearchers virtual machine (which is a Fedora 11).

        what should i do?

        thx

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

          If you are also building on a Fedora 11 system then simply give him the executable.
          He probably already has Qt installed on his machine.

          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
          • B Offline
            B Offline
            brlebtag
            wrote on last edited by
            #5

            in the virtual machine he gave us i had to install Qt e Qt development + qt creator.

            I tried in the original version(without any modification) and the SO requested the libQtGui.so.4

            1 Reply Last reply
            0
            • B Offline
              B Offline
              brlebtag
              wrote on last edited by
              #6

              i added all .so files neeeded(libQtGui.so.4, libQtCore.so.4) and i created a sh file with the following:

              export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
              ./myexec

              and worked!

              thx...

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

                It's one way to do it. I would however recommend that you ask him if you need to provide him with only the executable or a "package" that allows to start your application on a system without Qt installed.

                I think the former would apply, but the question is worth asking.

                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