[xsd-users] Compiling samples on Mac OS X with Clang

Ovanes Markarian om_codesynthesis at keywallet.com
Thu May 23 19:24:32 EDT 2013


On Fri, May 24, 2013 at 1:17 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> I thought you are interested in the C++/Parser mapping? Only
> C++/Parser can use Expat as the underlying XML parser. C++/Tree
> always uses Xerces-C++.
>
> Yes sorry! Just oversaw the right directory by cd-ing back to 'hello'

>
> > ../../../build/cxx/compilers.make:122: unknown C++ compiler signature
> > 'Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target:
> > x86_64-apple-darwin12.3.0 Thread model: posix', continuing anyway
>
> Hm, looks like Apple changed the signature of the default Clang. This
> should still work, however, if you build examples in cxx/parser/.
>

Now I ran make in the right directory:
hello $ make XML_PARSER=expat CXX="clang" CPPFLAGS="-I /usr/local/include"
LDFLAGS="-L /usr/local/lib"
../../../build/cxx/compilers.make:122: unknown C++ compiler signature
'Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target:
x86_64-apple-darwin12.3.0 Thread model: posix', continuing anyway
clang -I /usr/local/include -I../../../../libxsd  -c driver.cxx -o driver.o
In file included from driver.cxx:8:
In file included from ./hello-pskel.hxx:62:
../../../../libxsd/xsd/cxx/xml/char-utf8.hxx:13:10: fatal error:
'xercesc/util/XercesDefs.hpp' file not found
#include <xercesc/util/XercesDefs.hpp> // XMLCh
         ^
1 error generated.
make: *** [driver.o] Error 1
mbprr:hello $ pwd
/Users/ovanes/Downloads/xsd-3.3.0-i686-macosx/examples/cxx/parser/hello


Thanks,
Ovanes


More information about the xsd-users mailing list