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!
Related
I am trying to install this library :
https://github.com/sfdodge/xnet
I have successfully installed xtensor and xtensor blas using conda. Now, when I make this library (as mentioned in read me), it generates the following error:
CMakeFiles/test_xNet.dir/build.make:62: recipe for target 'CMakeFiles/test_xNet.dir/src/FullLayer.cpp.o' failed
make[2]: *** [CMakeFiles/test_xNet.dir/src/FullLayer.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/test_xNet.dir/all' failed
make[1]: *** [CMakeFiles/test_xNet.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Edit:
Error:
In file included from /home/fatima/anaconda2/gcc/include/c++/string:48:0,
from /home/fatima/Downloads/xnet-master/src/FullLayer.hpp:4,
from /home/fatima/Downloads/xnet-master/src/FullLayer.cpp:1:
/home/fatima/anaconda2/gcc/include/c++/bits/stl_function.h:158:12: error: provided for ‘template<class _Tp> struct std::multiplies’
struct multiplies : public binary_function<_Tp, _Tp, _Tp>
^
In file included from /home/fatima/Downloads/xnet-master/src/mat.hpp:5:0,
from /home/fatima/Downloads/xnet-master/src/FullLayer.hpp:6,
from /home/fatima/Downloads/xnet-master/src/FullLayer.cpp:1:
/home/fatima/anaconda2/include/xtensor/xsort.hpp: In function ‘auto xt::sort(const xt::xexpression<E>&, std::ptrdiff_t)’:
/home/fatima/anaconda2/include/xtensor/xsort.hpp:190:43: error: ‘decay_t’ is not a member of ‘std’
return detail::flat_sort_impl<std::decay_t<decltype(de)>, eval_type>(de);
I built omniORB-4.2.1 by VS2013+Cygwin(0.9.1-1) on Windows7 32bit.
I placed omniORB under C drive.
Then I tried to build SALOME-KERNEL by MinGW and got following error message related to omniORB.
[5%] Building CXX object idl/CMakeFiles/SalomeIDLKernel.dir/SALOME_ExceptionSK
.cc.obj
In file included from C:/omniORB-4.2.1/include/omniORB4/CORBA.h:221:0,
from c:/src/salome7/buildKernel/idl/SALOME_Exception.hh:6,
from c:/src/salome7/buildKernel/idl/SALOME_ExceptionSK.cc:3:
C:/omniORB-4.2.1/include/omniORB4/dynAny.h:151:47: error: 'CORBA::LongDoubleSeq'
has not been declared
virtual void insert_longdouble_seq(CORBA::LongDoubleSeq& value) = 0;
^
C:/omniORB-4.2.1/include/omniORB4/dynAny.h:171:20: error: 'LongDoubleSeq' in nam
espace 'CORBA' does not name a type
virtual CORBA::LongDoubleSeq* get_longdouble_seq() = 0;
^
idl/CMakeFiles/SalomeIDLKernel.dir/build.make:333: recipe for target `idl/CMakeF
iles/SalomeIDLKernel.dir/SALOME_ExceptionSK.cc.obj' failed
make[2]: *** [idl/CMakeFiles/SalomeIDLKernel.dir/SALOME_ExceptionSK.cc.obj] Erro
r 1
CMakeFiles/Makefile2:86: recipe for target `idl/CMakeFiles/SalomeIDLKernel.dir/a
ll' failed
make[1]: *** [idl/CMakeFiles/SalomeIDLKernel.dir/all] Error 2
Makefile:127: recipe for target `all' failed
make: *** [all] Error 2
Does anyone know how to this problem?
SALOME? omniORB? Which is the matter?
I successfully build boost_1_45_0 using source code in Ubuntu but when i am using BOOST to build another package:
Scanning dependencies of target GraphMolWrap
[ 98%] Building CXX object
Code/JavaWrappers/gmwrapper/CMakeFiles/GraphMolWrap.dir/GraphMolJavaJAVA_wrap.cxx.o
/opt/RDKit/build/Code/JavaWrappers/gmwrapper/GraphMolJavaJAVA_wrap.cxx: In function ‘jlong
Java_org_RDKit_RDKFuncsJNI_Shared_1Int_1Array_1_1internal_1get_1deleter(JNIEnv*, jclass,
jlong,
jobject, jlong)’:
/opt/RDKit/build/Code/JavaWrappers/gmwrapper/GraphMolJavaJAVA_wrap.cxx:134276:68: error:
‘const class boost::shared_array<int>’ has no member named ‘_internal_get_deleter’
/opt/RDKit/build/Code/JavaWrappers/gmwrapper/GraphMolJavaJAVA_wrap.cxx: In function ‘jlong
Java_org_RDKit_RDKFuncsJNI_Shared_1Double_1Array_1_1internal_1get_1deleter(JNIEnv*, jclass,
jlon g, jobject, jlong)’:
/opt/RDKit/build/Code/JavaWrappers/gmwrapper/GraphMolJavaJAVA_wrap.cxx:134936:71: error:
‘const class boost::shared_array<double>’ has no member named ‘_internal_get_deleter’
make[2]: ***
[Code/JavaWrappers/gmwrapper/CMakeFiles/GraphMolWrap.dir/GraphMolJavaJAVA_wrap.cxx.o] Error
1
make[1]: *** [Code/JavaWrappers/gmwrapper/CMakeFiles/GraphMolWrap.dir/all] Error 2
make: *** [all] Error 2
HIGHLIGHTING Error: const class boost::shared_array<double>’ has no member named ‘_internal_get_deleter’
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?
I want to interface FCGI with my C++ code in a server that runs ubuntu. I didn't find ubuntu under the list of tested platforms in the FCGI website, but I tried building it anyway.
./configure seems to work okay. But, when I run make, I get 2 errors, as pasted below:
fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()':
fcgio.cpp:50: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)':
fcgio.cpp:70: error: 'EOF' was not declared in this scope
fcgio.cpp:75: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()':
fcgio.cpp:86: error: 'EOF' was not declared in this scope
fcgio.cpp:87: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()':
fcgio.cpp:113: error: 'EOF' was not declared in this scope
make[2]: *** [fcgio.lo] Error 1
make[2]: Leaving directory '/home/giridhar/fcgi-2.4.1-SNAP-0910052249/libfcgi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/giridhar/fcgi-2.4.1-SNAP-0910052249'
make: *** [all] Error 2
Help in fixing this issue would be greatly appreciated.
I noticed that EOF is a C macro and it requires stdio.h which wasn't included in the fcgio.cpp file.
Adding a #include <stdio.h> to the fcgio.cpp file solves the problem, and now FCGI builds fine on Ubuntu.