Public bug reported:

Installing libxml++2.6-dev places the main header file at:

/usr/include/libxml++-2.6/libxml++/libxml++.h

Including this in a c++ source file as:

#include <libxml++-2.6/libxml++/libxml++.h>

then building, results in:

ubu...@ubuntu:~/Programming/xml_playground/src$ make
g++ -DHAVE_CONFIG_H -I. -I..  
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\"    -g -O2 -MT main.o -MD -MP -MF 
.deps/main.Tpo -c -o main.o main.cc
In file included from main.cc:23:
/usr/include/libxml++-2.6/libxml++/libxml++.h:10:48: error: 
libxml++/exceptions/internal_error.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:11:45: error: 
libxml++/exceptions/parse_error.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:12:40: error: 
libxml++/parsers/domparser.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:13:40: error: 
libxml++/parsers/saxparser.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:14:41: error: 
libxml++/parsers/textreader.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:15:33: error: 
libxml++/nodes/node.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:16:40: error: 
libxml++/nodes/commentnode.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:17:36: error: 
libxml++/nodes/element.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:18:44: error: 
libxml++/nodes/entityreference.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:19:37: error: 
libxml++/nodes/textnode.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:20:32: error: 
libxml++/attribute.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:21:31: error: 
libxml++/document.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:22:43: error: 
libxml++/validators/validator.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:23:46: error: 
libxml++/validators/dtdvalidator.h: No such file or directory
/usr/include/libxml++-2.6/libxml++/libxml++.h:24:49: error: 
libxml++/validators/schemavalidator.h: No such file or directory


>From what I can tell the libxml++-2.6 directory shouldn't exist, and the path 
>to the main header file should instead just be: 

/usr/include/libxml++/libxml++.h

Description:    Ubuntu jaunty (development branch)
Release:        9.04

Package: libxml++2.6-dev
State: installed
Automatically installed: no
Version: 2.24.0-1ubuntu1
Priority: optional
Section: libdevel
Maintainer: Ubuntu Core Developers <ubuntu-devel-disc...@lists.ubuntu.com>
Uncompressed Size: 586k
Depends: libxml++2.6-2 (= 2.24.0-1ubuntu1), libxml2-dev (>= 2.6.1), 
libglibmm-2.4-dev (>= 2.4.0), pkg-config
Suggests: libxml++2.6-doc
Description: A C++ interface to the GNOME XML library (libxml2)
 libxml++ is a C++ wrapper for the libxml2 XML parser library (otherwise known 
as the GNOME2 XML library).  It has SAX and DOM-like APIs, but does not
 attempt to conform exactly to the DOM specification because they are not aimed 
at C++.  Its API is much simpler than the underlying libxml C API. 
 
 This package contains development files.
Homepage: http://libxmlplusplus.sourceforge.net/

** Affects: libxml++2.6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
libxml++2.6-dev headers installed to invalid path
https://bugs.launchpad.net/bugs/320937
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to