Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved Error while including libxml2 library

    Installation and Deployment
    1
    2
    279
    Loading More Posts
    • 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.
    • C
      Carlos Manrique last edited by

      Hi everyone, I had some troubles with this.
      I added this to the .pro file:
      LIBS += -lcurl
      INCLUDEPATH += /usr/include/libxml2/libxml
      First of all, if I type LIBS += -llibxml2 i get an error. Thats why I included the path.
      It works, but then I get the next error:
      /usr/include/libxml2/libxml/xmlversion.h:13: error: 'libxml/xmlexports.h' file not found.
      What is happening?

      1 Reply Last reply Reply Quote 0
      • C
        Carlos Manrique last edited by

        Solved!
        I had to include the next line and now it works fine

        DEPENDPATH += /usr/include/libxml2
        
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post