[vlc-devel] Compile errors

Peter Tap ptrtap at yahoo.com
Thu Feb 13 09:29:14 CET 2014


I finally figured out the problem. Hope this information will help others.

After the standard VLC includes, I had another include from the Boost library:

#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>  // This is line 17

#include <boost/thread.hpp>

Somehow VLC definitions have a conflict with boost definitions. 

I moved the logic dealing with boost mutex into a different source file. Now, VLC is happy.

Regards,
Peter



On Tuesday, February 11, 2014 2:52 PM, Peter Tap <ptrtap at yahoo.com> wrote:
 
Folks,

Environment: Ubuntu 13.10

My custom video_filter code used to work fine under VLC 2.0.4. I am now trying to move the code to 2.1.2 and am running into problems. I am wondering if someone can tell me what is it that I am not doing right.

Thank you in advance for your help.

Regards,
Peter


make[1]: Entering directory `/home/peter/vlc/modules/video_filter'
../../doltlibtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -DMODULE_NAME=$(p="libpetermerc_plugin_la-peterWM.lo"; p="${p##*/}"; p="${p#lib}"; echo "${p%_plugin*}") -DMODULE_NAME_IS_$(p="libpetermerc_plugin_la-peterWM.lo"; p="${p##*/}"; p="${p#lib}"; echo "${p%_plugin*}") -DMODULE_STRING=\"$(p="libpetermerc_plugin_la-peterWM.lo"; p="${p##*/}"; p="${p#lib}"; echo "${p%_plugin*}")\" -D__PLUGIN__ -I../../include -I../../include  -I/home/peter/Dev/Include   -g -O2 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -fvisibility=hidden -ffast-math -funroll-loops -fomit-frame-pointer -c -o libpetermerc_plugin_la-peterWM.lo `test -f 'peterWM.cpp' || echo './'`peterWM.cpp
In file included from ../../include/vlc_picture.h:35:0,
                 from ../../include/vlc_filter.h:29,
                 from peterWM.cpp:17:
../../include/vlc_atomic.h:54:5: error: expected unqualified-id before âfalseâ
     false
     ^
../../include/vlc_atomic.h:113:26: error: expected â)â before â,â token
     (__sync_synchronize(), *(object))

Here is the top part of peterWM.cpp:

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>  // This is line 17
...

And here is my definition in Modules.am:

libpetermerc_plugin_la_SOURCES = peterWM.cpp
libpetermerc_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) -I$(HOME)/Dev/Include 


_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140213/40da40e3/attachment.html>


More information about the vlc-devel mailing list