#17 Compile fails if libxml++ unavailable


With the CVS as of today, when I try to configure and
build libofx, the build failes. I don't have the
development package of libxml++ installed, and thus
during ./configure I get

checking for libxml++-1.0 >= 1.0.1... Package
libxml++-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing
to the PKG_CONFIG_PATH environment variable
No package 'libxml++-1.0' found
configure: WARNING: libxml++ is not available. Direct
connect samples will not be fully functional.

But ./configure then finishes successfully. When
compiling the whole package ("make"), the build will
fail as follows:

Making all in ofxconnect
make[2]: Entering directory
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -g -O2
-MT nodeparser.o -MD -MP -MF ".deps/nodeparser.Tpo" -c
-o nodeparser.o nodeparser.cpp; \ then mv -f ".deps/nodeparser.Tpo"
".deps/nodeparser.Po"; else rm -f
".deps/nodeparser.Tpo"; exit 1; fi
In file included from nodeparser.cpp:20:
nodeparser.h:25:31: libxml++/libxml++.h: No such file
or directory

In other words, ./configure claims that libxml++ is
*only* needed for the "direct connect sample", but in
effect if the example cannot be built, the whole build
will fail.

Suggested workaround: When libxml++ is unavailable,
exclude the ofxconnect subdirectory from the build.

By the way, I strongly suggest a new 0.8.1 release as
soon as possible. The last release, 0.8.0, is now ages
old and still has that gcc-4.x compiler error. Thank
you for your consideration.


  • ace jones

    ace jones - 2006-08-02

    Logged In: YES

    This should be fixed now.

  • ace jones

    ace jones - 2006-08-06
    • status: open --> closed-fixed

Log in to post a comment.