doubango 1.0 and 2.0 compiling error on centos64 - build

I am trying to compile doubango framework version 1.0 and got compile error. After upgrading to release 2.0 I got the same compile error.
src/codecs/vpx/tdav_codec_vp8.c:265: error: for each function it appears in.)
src/codecs/vpx/tdav_codec_vp8.c: In function âtdav_codec_vp8_open_encoderâ:
src/codecs/vpx/tdav_codec_vp8.c:675: warning: passing argument 1 of âvpx_codec_enc_config_defaultâ makes pointer from integer without a cast
/usr/include/vpx/vpx_encoder.h:609: note: expected âconst struct vpx_codec_iface *â but argument is of type âintâ
src/codecs/vpx/tdav_codec_vp8.c:720: warning: passing argument 2 of âvpx_codec_enc_init_verâ makes pointer from integer without a cast
/usr/include/vpx/vpx_encoder.h:575: note: expected âconst struct vpx_codec_iface *â but argument is of type âintâ
src/codecs/vpx/tdav_codec_vp8.c: In function âtdav_codec_vp8_open_decoderâ:
src/codecs/vpx/tdav_codec_vp8.c:774: warning: passing argument 2 of âvpx_codec_dec_init_verâ makes pointer from integer without a cast
/usr/include/vpx/vpx_decoder.h:121: note: expected âconst struct vpx_codec_iface *â but argument is of type âintâ
make[2]: *** [libtinyDAV_la-tdav_codec_vp8.lo] Error 1
make[2]: Leaving directory `/usr/src/telepresence/doubango-read-only/branches/2.0/doubango/tinyDAV'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/telepresence/doubango-read-only/branches/2.0/doubango'
make: *** [all] Error 2
Please advise, is there patch or modification on doubango/tinyDAV/src/codecs/vpx/tdav_codec_vp8.c or any other way to solve the problem?

Related

mingw32-make fails in cmd due to temporary errors of non-literal type and non-trivial destructor in open CV sources

I need to inject Open CV to Qt according to this tutorial, but at the stage mingw32-make on cmd I got en error.
C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h: In constructor 'constexpr google::protobuf::internal::WrappedMutex::WrappedMutex()':
C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:124:29: error: temporary of non-literal type 'google::protobuf::internal::CallOnceInitializedMutex<std::mutex>' in a constant expression
constexpr WrappedMutex() {}
^
C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:98:7: note: 'google::protobuf::internal::CallOnceInitializedMutex<std::mutex>' is not literal because:
class CallOnceInitializedMutex {
^
C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:98:7: note: 'google::protobuf::internal::CallOnceInitializedMutex<std::mutex>' has a non-trivial destructor
3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:90: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.obj' failed
mingw32-make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.obj] Error 1
CMakeFiles\Makefile2:1727: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed
mingw32-make[1]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
Makefile:164: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Should I change the destructor in the file mutex.h or should I do something else? I am newbie and already in despair.

'error: no matching function for call to ‘bpp::Parameter::setConstraint' in BioPP/bpp-phyl

I have been trying to install BioPP/bpp-phyl obtained with
git clone https://github.com/BioPP/bpp-phyl.git
I used cmake for compiling:
cmake -DCMAKE_INSTALL_PREFIX=[where to install, for instance /usr/local or $HOME/.local]
And then I tried to use make. It shows me the following error:
/home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp: In static member function ‘static bpp::TreeLikelihood* bpp::PhylogeneticsApplicationTools::optimizeParameters(bpp::TreeLikelihood*, const bpp::ParameterList&, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&, const string&, bool, bool, int)’:
/home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp:922:62: **error: no matching function for call to ‘bpp::Parameter::setConstraint(bpp::Constraint*, bool)’
par.setConstraint(ic & (*par.getConstraint()), true);**
/usr/local/include/Bpp/Numeric/Parameter.h:269:18: note: candidate expects 1 argument, 2 provided
/home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp:927:45: **error: no matching function for call to ‘bpp::Parameter::setConstraint(bpp::IntervalConstraint*, bool)’
par.setConstraint(ic.clone(), true)**;
/usr/local/include/Bpp/Numeric/Parameter.h:269:18: note: candidate expects 1 argument, 2 provided
/home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp: In static member function ‘static void bpp::PhylogeneticsApplicationTools::checkEstimatedParameters(const bpp::ParameterList&)’:
/home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp:1388:56: **error: cannot convert ‘const std::shared_ptr<bpp::Constraint>’ to ‘const bpp::Constraint*’ in initialization**
const Constraint* constraint = pl[i].getConstraint();
make[2]: *** [src/CMakeFiles/bpp-phyl-shared.dir/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp.o] Error 1
CMakeFiles/Makefile2:1111: recipe for target 'src/CMakeFiles/bpp-phyl-shared.dir/all' failed
make[1]: *** [src/CMakeFiles/bpp-phyl-shared.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
I don't know the cause of the error.
I have installed bpp-core:
git clone https://github.com/BioPP/bpp-core.git
also I have installed bpp-seq:
git clone https://github.com/BioPP/bpp-seq.git
but unable to install bpp-seq.
I am using CMake version 3.10.2.

CAP_V4L is not a member of cv in cap_.open

I'm trying launch cv_camera with ros but I couldn't compile this package in ros, I launched this command:
catkin_make --only-pkg-with-deps rossumo cv_camera -DARDRONESDK3_PATH=~/out/arsdk-native/staging/usr
...
/home/docker/catkin_ws/src/cv_camera/src/capture.cpp: In member function ‘void cv_camera::Capture::open(const string&)’:
/home/docker/catkin_ws/src/cv_camera/src/capture.cpp:95:26: error: ‘CAP_V4L’ is not a member of ‘cv’
cap_.open(device_path, cv::CAP_V4L);
^
make[2]: *** [cv_camera/CMakeFiles/cv_camera.dir/src/capture.cpp.o] Error 1
make[1]: *** [cv_camera/CMakeFiles/cv_camera.dir/all] Error 2
What do you think I'm doing wrong?
Thanks!

Errors making cairo-gl

I'm building Cairo 1.12.14 with MSYS on Windows.
Successfully configured with --enable-gl=yes, however, when I run make, I get the following error:
make all-recursive
make[1]: Entering directory `/c/Users/Nathan/BuildCairo/cairo'
Making all in src
make[2]: Entering directory `/c/Users/Nathan/BuildCairo/cairo/src'
make all-am
make[3]: Entering directory `/c/Users/Nathan/BuildCairo/cairo/src'
CC cairo-png.lo
CC cairo-gl-composite.lo
In file included from cairo-gl-composite.c:48:0:
cairo-gl-private.h:250:40: error: unknown type name 'GLsizeiptr'
cairo-gl-private.h:258:8: error: unknown type name 'GLchar'
cairo-gl-private.h:262:22: error: unknown type name 'GLchar'
cairo-gl-private.h:273:23: error: unknown type name 'GLchar'
cairo-gl-private.h:276:5: error: unknown type name 'GLchar'
cairo-gl-private.h:290:5: error: unknown type name 'GLchar'
cairo-gl-composite.c: In function '_cairo_gl_texture_set_extend':
cairo-gl-composite.c:193:18: error: 'GL_MIRRORED_REPEAT' undeclared (first use i
n this function)
cairo-gl-composite.c:193:18: note: each undeclared identifier is reported only o
nce for each function it appears in
cairo-gl-composite.c: In function '_cairo_gl_set_operator':
cairo-gl-composite.c:387:9: error: implicit declaration of function 'glBlendFunc
Separate' [-Werror=implicit-function-declaration]
cairo-gl-composite.c:387:9: warning: nested extern declaration of 'glBlendFuncSe
parate' [-Wnested-externs]
cairo-gl-composite.c: In function '_cairo_gl_composite_begin':
cairo-gl-composite.c:751:41: warning: ignoring return value of '_cairo_gl_set_op
erands_and_operator', declared with attribute warn_unused_result [-Wunused-resul
t]
cc1.exe: some warnings being treated as errors
make[3]: *** [cairo-gl-composite.lo] Error 1
make[3]: Leaving directory `/c/Users/Nathan/BuildCairo/cairo/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/Users/Nathan/BuildCairo/cairo/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/Users/Nathan/BuildCairo/cairo'
make: *** [all] Error 2
Any ideas? Configure had this to say:
--- The OpenGL surface backend feature is still under active development and
--- is included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to OpenGL surface backend
--- specific API.
Is this problem fixable for this version?

Qt::What needs to be included in the configuration to use dbus?

I'm using stripped down as much as possible configuration of Qt but now I need to use the dbus and can't figure out what I need to include to be able to use it? There doesnt seem to be anything obvious to me using the qconfig tool. The errors I get at the moment when making are:
qdbus_symbols.cpp:53: error: expected initializer before ‘*’ token
qdbus_symbols.cpp: In function ‘void qdbus_unloadLibDBus()’:
qdbus_symbols.cpp:57: error: ‘qdbus_libdbus’ was not declared in this scope
qdbus_symbols.cpp: In function ‘bool qdbus_loadLibDBus()’:
qdbus_symbols.cpp:67: error: ‘QLibrary’ was not declared in this scope
qdbus_symbols.cpp:67: error: ‘lib’ was not declared in this scope
qdbus_symbols.cpp:67: error: ‘qdbus_libdbus’ was not declared in this scope
qdbus_symbols.cpp:71: error: expected type-specifier before ‘QLibrary’
qdbus_symbols.cpp:71: error: expected ‘;’ before ‘QLibrary’
qdbus_symbols.cpp:85: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
qdbus_symbols.cpp: In function ‘void* qdbus_resolve_conditionally(const char*)’:
qdbus_symbols.cpp:93: error: ‘qdbus_libdbus’ was not declared in this scope
qdbus_symbols.cpp: In function ‘void* qdbus_resolve_me(const char*)’:
qdbus_symbols.cpp:103: error: ‘qdbus_libdbus’ was not declared in this scope
make[1]: *** [.obj/release-static-emb-x86/qdbus_symbols.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/mark/qt-qvfb-4.5.3-static/src/dbus'
make: *** [sub-dbus-make_default-ordered] Error 2
Does anyone know a module that I must not be including which is necessary or how to find out? thanks
QT += dbus
should be enough to include the dbus option in the .pro project file, ins't it?
I need more info to give apropriate answer.