Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error while including libxml2 library
Forum Update on Monday, May 27th 2025

Error while including libxml2 library

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 456 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.
  • C Offline
    C Offline
    Carlos Manrique
    wrote on 12 Nov 2016, 02:36 last edited by
    #1

    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
    0
    • C Offline
      C Offline
      Carlos Manrique
      wrote on 12 Nov 2016, 03:12 last edited by
      #2

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

      DEPENDPATH += /usr/include/libxml2
      
      
      1 Reply Last reply
      0

      1/2

      12 Nov 2016, 02:36

      • Login

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