[gst-devel] libtool, automake and C++ library

Miquel Àngel Farré miquel.farre at gmail.com
Sat Sep 12 11:15:18 CEST 2009

Good Morning,

Just asked on the irc channel and MikeS-tp tried to help (thanks!) .. this
is the problem:

I am trying to build a C++ plugin, flags and libs are given correctly
nevertheless It doesen't build because it is C++ code, I have arrived to
this conclusion making a little test:

- Try to build gst-template/gst-plugin: ./autogen.sh && make : it works
- Change gstplugin.c to gstplugin.cpp edit Makefile.am with the new file
- autogen.sh && make result:

/bin/bash ../libtool --tag=CXX --tag=disable-static  --mode=compile g++
-DHAVE_CONFIG_H -I. -I..     -g -O2 -MT libgstplugin_la-gstplugin.lo -MD -MP
-MF .deps/libgstplugin_la-gstplugin.Tpo -c -o libgstplugin_la-gstplugin.lo
`test -f 'gstplugin.cpp' || echo './'`gstplugin.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
libgstplugin_la-gstplugin.lo -MD -MP -MF .deps/libgstplugin_la-gstplugin.Tpo
-c gstplugin.cpp  -fPIC -DPIC -o .libs/libgstplugin_la-gstplugin.o
gstplugin.cpp:63:21: error: gst/gst.h: No such file or directory
In file included from gstplugin.cpp:65:
gstplugin.h:65: error: expected constructor, destructor, or type conversion
before 'typedef'
gstplugin.h:70: error: 'GstElement' does not name a type
gstplugin.h:72: error: ISO C++ forbids declaration of 'GstPad' with no type
gstplugin.h:72: error: expected ';' before '*' token
gstplugin.h:74: error: 'gboolean' does not name a type
 .  .  .

I have tryed to add params to libtool like --tag=CXX..

Anybody knows what and where params should I add?

Thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090912/64652c58/attachment.htm>

More information about the gstreamer-devel mailing list