Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] - External dll for parsing XML file - reference in Qt Application is resulting in Code Existed with Error scenario
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] - External dll for parsing XML file - reference in Qt Application is resulting in Code Existed with Error scenario

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 1.8k Views 1 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.
  • L Offline
    L Offline
    LakshmiSaripella
    wrote on last edited by
    #1

    I'm using Qt Creator 5.0.2 (MSVC version) on Windows XP and I've a Qt 2.0 application which uses an external .dll file. I'm able to reference the external library properly in my Qt project. However, this dll does some XML parsing (default path of the .xml is location of .dll). I've put all the required .h files of libxml2 as well libxml2.lib, zlib.lib, iconv.lib in lib sub-folder.

    In fact while building the external .dll file reference to libxmls is done properly and we have performed a test using tester application.

    When this external .dll (developed in MS Visual Studio as static library project) is referenced, the Qt project is getting compiled by locating the libxml2 and other related files. However, the app does not run...it exits with _____1515 code.

    Any assistance is highly appreciated.

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

      Hi,

      Can the dll be found at runtime ?

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

        Hello!

        1. How to know whether .dll is found at runtime or not?
        2. I've added this VC++ in house developed dll to .pro using LIBS, DEPENDPATH, INCLUDEPATH
        3. I've version1 of my in house developed external library which does same functionality -xml parsing. My application runs fine communicating to this external library
        4. In house developed static, dynamic .dll, .lib version2 with XML parsing when referenced in my Qt Quick project it is not getting compiled if I don't add xmllib2 reference (path and other related .h files). In spite of adding all those, the application compiles BUT does not get executed.

        I'm trying this issue for last 1-2 days...NO LUCK.

        Please help.

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

          IIRC you partial error code resembles to the one you get when a dll is not found.

          In the Run tab of QtCreator update the PATH variable and add the path to were your dll can be found

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

            Thanks for the given inputs. The issue is resolved after couple of days struggle. external library files folder was having .lib files only and it required .dlls too.

            Also, the reference of external libraries had to be performed in couple of places as per my project application architecture.

            The required things are identified and when handled, the issue is resolved successfully. I get to see my application running with no further hitches.

            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