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. Using a Qt4 library causes crash on starting of a Qt5 application

Using a Qt4 library causes crash on starting of a Qt5 application

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.8k Views 2 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.
  • H Offline
    H Offline
    Hjunior
    wrote on last edited by
    #1

    Hello. I want to use a shared library file. I know its written in Qt4 and has a showcase application which is also written in Qt4. It works fine with Qt4 setup. Then i installed Qt5 and tried to use the library. It crashes while starting (never starts). I double checked the LIBS variable and im sure they are correct. In other case QtCreator cant compile also.

    And then i wanted showcase sources from vendor and thankfully they sent. But the same error occurred. It never started. Application output says <app> crashed. In debug mode disassembler works and shows a line starting with lock incl....

    Unfortunately, There is no way to convert the library to Qt5 as i understand from the vendor.

    What can i do? Any ideas...

    kshegunovK 1 Reply Last reply
    0
    • H Hjunior

      Hello. I want to use a shared library file. I know its written in Qt4 and has a showcase application which is also written in Qt4. It works fine with Qt4 setup. Then i installed Qt5 and tried to use the library. It crashes while starting (never starts). I double checked the LIBS variable and im sure they are correct. In other case QtCreator cant compile also.

      And then i wanted showcase sources from vendor and thankfully they sent. But the same error occurred. It never started. Application output says <app> crashed. In debug mode disassembler works and shows a line starting with lock incl....

      Unfortunately, There is no way to convert the library to Qt5 as i understand from the vendor.

      What can i do? Any ideas...

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      @Hjunior
      Hello,
      If you figure out how to put a square peg into a round hole, do let me know. The problem is that Qt4 and Qt5 are incompatible, you won't ever be able to run it like this, ever. Sorry, but it's just how it is.

      Kind regards.

      Read and abide by the Qt Code of Conduct

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

        well if it will not be ported to Qt5, then u must use Qt4
        https://download.qt.io/archive/qt/4.8/

        H 1 Reply Last reply
        0
        • mrjjM mrjj

          well if it will not be ported to Qt5, then u must use Qt4
          https://download.qt.io/archive/qt/4.8/

          H Offline
          H Offline
          Hjunior
          wrote on last edited by
          #4

          @mrjj Hmm I see but how would we know it man. None of documentation pointed that or may be i didnt see it. Thanks anyway.

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

            Hi
            Can you tell what would be/is the issue to use 4.8?
            Installation is the same.
            Im not sure what part is unclear.

            H 1 Reply Last reply
            0
            • mrjjM mrjj

              Hi
              Can you tell what would be/is the issue to use 4.8?
              Installation is the same.
              Im not sure what part is unclear.

              H Offline
              H Offline
              Hjunior
              wrote on last edited by
              #6

              @mrjj Forget it man! Thanks.

              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