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 Updated to NodeBB v4.3 + New Features

Error while including libxml2 library

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 483 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 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 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

      • Login

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