5

Can someone give me some instructions on how to install TinyXML (or TinyXML++) to debian so I can use it from within my C++ app.

I've never installed a library before so I have no idea what to do.

Thanks

Jack
  • 3,769
  • 6
  • 24
  • 32

2 Answers2

7

on the command line:

sudo apt-get install libtinyxml-dev

should be all you need

alternatively you could use a gui packet manager (if your distro has one) and search for tinyxml

thorsten müller
  • 5,621
  • 1
  • 22
  • 30
  • 1
    Can't find that package here, or anything related to tinyxml. – Jack Jan 24 '11 at 13:40
  • It is not in Debian stable (lenny) but in Debian testing (squeeze). In Ubuntu I don't know. http://packages.debian.org/search?suite=squeeze&searchon=names&keywords=tinyxml – Prof. Falken Jan 25 '11 at 10:01
0

You don't need to install it as a library, you can include the TinyXML code into your own project. That might prove easier to you.

In the TinyXML zip file you will find a Makefile and a file xmltest.cpp. Unzip the directory, go into it with a shell and type "make".

Then just pretend xmltest.cpp is your program and go from there, modify it to suite your needs. Good luck!

This question is not so much about tinyxml as it is with toolchains and command line development on Unix like systems in general.

Prof. Falken
  • 24,226
  • 19
  • 100
  • 173
  • That seems like a pain, a library would be better tbh, or some way of using that inside my Makefile. – Jack Jan 24 '11 at 13:51
  • 1
    It builds a library, to install it just copy the .a file to /usr/local/lib and run ldconfig afterwards. As root. And add the include files /usr/local/include. But you need to point GCC to where the include files are then with a -I/usr/local/include But read up on GNU make and GCC options, then these things will seem obvious. – Prof. Falken Jan 25 '11 at 10:03