Getting ‘_internal_get_deleter’ missing error in Boost library - c++

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’

Related

'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.

How to use make command

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);

error: ‘shared_mutex’ is not a member of ‘std’ using ReaderLock = std::shared_lock<std::shared_mutex>;

i'm trying to use microsoft SEAL library for homomorphic encryption and following the steps from the below link https://github.com/cyberweapons/SEAL/blob/master/INSTALL.txt
when i use command cmake .
terminal shows below result
-- SEAL detected (version 2.3.1)
-- SEAL build type: Release
-- SEAL debug mode: OFF
-- SEAL using Microsoft GSL: OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ravindra/Desktop/../../MiSEAL/SEAL/SEALExamples
after that when i give make command it should generate a file main.cpp.o instead it is giving the following errors.
[ 50%] Building CXX object CMakeFiles/sealexamples.dir/main.cpp.o
In file included from /usr/local/include/seal/util/mempool.h:12:0,
from /usr/local/include/seal/memorypoolhandle.h:6,
from /usr/local/include/seal/biguint.h:6,
from /usr/local/include/seal/bigpoly.h:9,
from /usr/local/include/seal/seal.h:3,
from /home/ravindra/Desktop/SakhaProjects/S20_AI/MiSEAL/SEAL/SEALExamples/main.cpp:12:
/usr/local/include/seal/util/locks.h:12:45: error: ‘shared_mutex’ is not a member of ‘std’
using ReaderLock = std::shared_lock<std::shared_mutex>;
^~~
/usr/local/include/seal/util/locks.h:12:45: error: ‘shared_mutex’ is not a member of ‘std’
/usr/local/include/seal/util/locks.h:12:62: error: template argument 1 is invalid
using ReaderLock = std::shared_lock<std::shared_mutex>;
^
/usr/local/include/seal/util/locks.h:14:45: error: ‘shared_mutex’ is not a member of ‘std’
using WriterLock = std::unique_lock<std::shared_mutex>;
^~~
/usr/local/include/seal/util/locks.h:14:45: error: ‘shared_mutex’ is not a member of ‘std’
/usr/local/include/seal/util/locks.h:14:62: error: template argument 1 is invalid
using WriterLock = std::unique_lock<std::shared_mutex>;
^
/usr/local/include/seal/util/locks.h:21:20: error: ‘ReaderLock’ does not name a type
inline ReaderLock acquire_read()
^~~~~~~~~~
/usr/local/include/seal/util/locks.h:26:20: error: ‘WriterLock’ does not name a type
inline WriterLock acquire_write()
^~~~~~~~~~
/usr/local/include/seal/util/locks.h:31:20: error: ‘ReaderLock’ does not name a type
inline ReaderLock try_acquire_read()
^~~~~~~~~~
/usr/local/include/seal/util/locks.h:36:20: error: ‘WriterLock’ does not name a type
inline WriterLock try_acquire_write()
^~~~~~~~~~
/usr/local/include/seal/util/locks.h:46:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
std::shared_mutex rw_lock_mutex_;
^~~~~~~~~~~~
In file included from /usr/local/include/seal/memorypoolhandle.h:6:0,
from /usr/local/include/seal/biguint.h:6,
from /usr/local/include/seal/bigpoly.h:9,
from /usr/local/include/seal/seal.h:3,
from /home/ravindra/Desktop/SakhaProjects/S20_AI/MiSEAL/SEAL/SEALExamples/main.cpp:12:
/usr/local/include/seal/util/mempool.h: In member function ‘virtual int64_t seal::util::MemoryPoolMT::pool_count() const’:
/usr/local/include/seal/util/mempool.h:561:17: error: ‘ReaderLock’ was not declared in this scope
ReaderLock lock(pools_locker_.acquire_read());
^~~~~~~~~~
CMakeFiles/sealexamples.dir/build.make:62: recipe for target 'CMakeFiles/sealexamples.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/sealexamples.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/sealexamples.dir/all' failed
make[1]: *** [CMakeFiles/sealexamples.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
i am new to SEAL library also i am a beginner to c++ programming, please someone help me to fix this issues.
Hi i found the solution,
i have included following commands in CMakeLists.txt file continued with the steps
`
# Below is TFHE START
export TFHE_PREFIX=/usr/local
export CPLUS_INCLUDE_PATH=${TFHE_PREFIX}/include:${CPLUS_INCLUDE_PATH}
export C_INCLUDE_PATH=${TFHE_PREFIX}/include:${C_INCLUDE_PATH}
export LIBRARY_PATH=${TFHE_PREFIX}/lib:${LIBRARY_PATH}
export LD_LIBRARY_PATH=${TFHE_PREFIX}/lib:${LD_LIBRARY_PATH}
# Below is TFHE END
`

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?