0

I can't seem to get the syntax right for building gdb on Windows 10 (mingw), with expat. I downloaded expat sources and had no problems building. The expat.h file is in /usr/local/include and the expat library (libexpat.a and libexpat.dll.a) ended up in /usr/local/lib

My config is: ../gdb-7.7.1/configure --target=arm-linux-gnueabihf --prefix /c/sysGCC/output --with-python --with-expat --with-libexpat-prefix=/usr/local/lib --disable-nls

But no matter what I try I always get a make error "libexpat is missing or unusable". Does anyone spot the error???

Batdude
  • 556
  • 7
  • 19
  • This isn't enough info, but `--with-libexpat-prefix` should point to the "prefix" value, so in your case `/usr/local`. If that doesn't help you need to examine `config.log` to see what is going wrong. – Tom Tromey Feb 16 '16 at 02:39
  • Thanks. In the end the solution was to download the sources clean and do the build with what you suggested and it worked for creating the build OK. However I still get the "gdb was not built with XML support" error when connecting to the target board (a raspberry pi). So its hard to say if the expat libraries REALLY did build in. After many days of trying everything I can think of or find I think I have to give this up. – Batdude Feb 17 '16 at 03:33
  • You can see easily with `ldd .../gdb | grep expat`. – Tom Tromey Feb 17 '16 at 04:26

0 Answers0