Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors occur after “cmake ..” and “make” #8

Open
zengletian1491 opened this issue Jan 12, 2020 · 0 comments
Open

Errors occur after “cmake ..” and “make” #8

zengletian1491 opened this issue Jan 12, 2020 · 0 comments

Comments

@zengletian1491
Copy link

Errors occur after “cmake .. ” and “make” as follows:

[ 10%] Building CXX object CMakeFiles/blend.dir/src/poisson_solver.cpp.o
[ 20%] Building CXX object CMakeFiles/blend.dir/src/clone.cpp.o
[ 30%] Building CXX object CMakeFiles/blend.dir/src/blend.cpp.o
[ 40%] Linking CXX static library libblend.a
[ 40%] Built target blend
Scanning dependencies of target seamless_cloning
[ 50%] Building CXX object CMakeFiles/seamless_cloning.dir/examples/seamless_cloning.cpp.o
[ 60%] Linking CXX executable seamless_cloning
[ 60%] Built target seamless_cloning
Scanning dependencies of target seamless_blending
[ 70%] Building CXX object CMakeFiles/seamless_blending.dir/examples/seamless_blending.cpp.o
[ 80%] Linking CXX executable seamless_blending
[ 80%] Built target seamless_blending
Scanning dependencies of target tests
[ 90%] Building CXX object CMakeFiles/tests.dir/tests/poisson.cpp.o
In file included from /media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/poisson.cpp:21:0:
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:875:17: error: ‘nullptr_t’ in namespace ‘std’ does not name a type
inline std::nullptr_t opCast(std::nullptr_t) { return nullptr; }
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:996:58: error: ‘template<Catch::Internal::Operator Op, class T> bool Catch::Internal::compare’ conflicts with a previous declaration
template<Operator Op, typename T> bool compare( std::nullptr_t, T* rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:990:44: note: previous declaration ‘namespace Catch::Internal { }::compare’
template<Operator Op, typename T> bool compare( T* lhs, int rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:996:53: error: ‘nullptr_t’ is not a member of ‘std’
template<Operator Op, typename T> bool compare( std::nullptr_t, T* rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:996:70: error: expected primary-expression before ‘’ token
template<Operator Op, typename T> bool compare( std::nullptr_t, T
rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:996:72: error: ‘rhs’ was not declared in this scope
template<Operator Op, typename T> bool compare( std::nullptr_t, T* rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:996:76: error: expression list treated as compound expression in initializer [-fpermissive]
template<Operator Op, typename T> bool compare( std::nullptr_t, T* rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:996:78: error: expected ‘;’ before ‘{’ token
template<Operator Op, typename T> bool compare( std::nullptr_t, T* rhs ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:999:66: error: ‘std::nullptr_t’ has not been declared
template<Operator Op, typename T> bool compare( T* lhs, std::nullptr_t ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:999:44: error: redefinition of ‘template<Catch::Internal::Operator Op, class T> bool Catch::Internal::compare(T*, int)’
template<Operator Op, typename T> bool compare( T* lhs, std::nullptr_t ) {
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:990:44: note: ‘template<Catch::Internal::Operator Op, class T> bool Catch::Internal::compare(T*, int)’ previously declared here
template<Operator Op, typename T> bool compare( T* lhs, int rhs ) {
^
In file included from /media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/poisson.cpp:21:0:
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:1099:38: error: ‘std::__cxx11::string Catch::toString’ redeclared as different kind of symbol
std::string toString( std::nullptr_t );
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:1096:13: note: previous declaration ‘std::__cxx11::string Catch::toString(unsigned char)’
std::string toString( unsigned char value );
^
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:1099:23: error: ‘nullptr_t’ is not a member of ‘std’
std::string toString( std::nullptr_t );
^
In file included from /media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/poisson.cpp:21:0:
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:7351:38: error: ‘std::__cxx11::string Catch::toString’ redeclared as different kind of symbol
std::string toString( std::nullptr_t ) {
^
In file included from /media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/poisson.cpp:21:0:
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:1222:13: note: previous declaration ‘template<class T, class Allocator> std::__cxx11::string Catch::toString(const std::vector<_Tp, _Alloc>&)’
std::string toString( std::vector<T,Allocator> const& v ) {
^
In file included from /media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/poisson.cpp:21:0:
/media/zeng/work/textureMapping/Poisson_Image_Editing/poisson-image-editing-master/tests/catch.hpp:7351:23: error: ‘nullptr_t’ is not a member of ‘std’
std::string toString( std::nullptr_t ) {
^
CMakeFiles/tests.dir/build.make:62: recipe for target 'CMakeFiles/tests.dir/tests/poisson.cpp.o' failed
make[2]: *** [CMakeFiles/tests.dir/tests/poisson.cpp.o] Error 1
CMakeFiles/Makefile2:162: recipe for target 'CMakeFiles/tests.dir/all' failed
make[1]: *** [CMakeFiles/tests.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Could you please give me a hand?Thank your!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant