Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumslibxml2
https://www.eclipse.org/forums/index.php/mv/msg/307885/818514/#msg_818514
Running this on the command line
xml2-config --cflags
gives
-I/usr/include/libxml2
Running this on the command line
xml2-config --libs
gives
-lxml2
In ordinary Makefile I should write:
CFLAGS=`xml2-config --cflags`
LIBS=`xml2-config --libs`
In the menu:
Project\settings\Tool Settings\GCC C++ Linker\Miscellaneous\Linker flags
I have enter -lxml2
Where shall I insert following line in eclipse
-I/usr/include/libxml2
It seems that Eclipse cannot found the library
Is there something else I need to do?]]>ak jax2012-03-11T19:21:43-00:00Re: libxml2
https://www.eclipse.org/forums/index.php/mv/msg/307885/818760/#msg_818760
> I try to use libxml2 c++ project that I use Eclipse to edit and compile
>
> when running the line below on command line:
> xml2-config --cflags
> I get
> -I/usr/include/libxml2
>
>
>
> when running the line below on command line:
> to get the compilation flags and
> xml2-config --libs
> I get:
> -lxml2
>
>
>
> I an ordinary make file I should do following:
>
> CFLAGS=`xml2-config --cflags`
>
> LIBS=`xml2-config --libs`
>
> Project\Settings\Tool Settings\GCC C++ linker\Miscellaneouslinker flags
> I have added
> -lxml2
>
> Where do I put
> -I/usr/include/libxml2
>
> Is it something else i need to do to get this working?
As the sticky posts at the top of this forum say, please ask your C/C++
questions in the Eclipse CDT forum.]]>Russell Bateman2012-03-12T04:34:25-00:00