Dear all, When I try to compile the tutorial code of tutorial http://doc.nektar.info/tutorials/latest/fundamentals/differentiation/fundame... , I follow the instruction of task 1.1: I first use cmake command to generate makefile and then type 'make' but the terminal give me error messages like this:(I can successfully run tutorial code in http://doc.nektar.info/tutorials/latest/fundamentals/integration/fundamental..., but I can't compile the code of this one). What should I do? *Scanning dependencies of target StdDifferentiation2D* [ 16%] Building CXX object CMakeFiles/StdDifferentiation2D.dir/StdDifferentiation2D.cpp.o */Users/zhenxiong/Desktop/independent_study/turotials/fundamentals-differentiation/tutorial/StdDifferentiation2D.cpp:57:21: **error: * * no viable overloaded '='* derivMatrixDir1 = LibUtilities::PointsManager()[quadPointsKeyDir1]->GetD(); * ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3786:17: note: * candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'const std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT; * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3797:17: note: * candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT; * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3794:9: note: * candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT; * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3805:9: note: * candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(shared_ptr<_Yp>&& __r); * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3815:9: note: * candidate template ignored: could not match 'auto_ptr' against 'shared_ptr' operator=(auto_ptr<_Yp>&& __r); * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3839:9: note: * candidate template ignored: could not match 'unique_ptr' against 'shared_ptr' operator=(unique_ptr<_Yp, _Dp>&& __r); * ^* */Users/zhenxiong/Desktop/independent_study/turotials/fundamentals-differentiation/tutorial/StdDifferentiation2D.cpp:60:21: **error: * * no viable overloaded '='* derivMatrixDir2 = LibUtilities::PointsManager()[quadPointsKeyDir2]->GetD(); * ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3786:17: note: * candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'const std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT; * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3797:17: note: * candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT; * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3794:9: note: * candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT; * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3805:9: note: * candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(shared_ptr<_Yp>&& __r); * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3815:9: note: * candidate template ignored: could not match 'auto_ptr' against 'shared_ptr' operator=(auto_ptr<_Yp>&& __r); * ^* */Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3839:9: note: * candidate template ignored: could not match 'unique_ptr' against 'shared_ptr' operator=(unique_ptr<_Yp, _Dp>&& __r); * ^* 2 errors generated. make[2]: *** [CMakeFiles/StdDifferentiation2D.dir/StdDifferentiation2D.cpp.o] Error 1 make[1]: *** [CMakeFiles/StdDifferentiation2D.dir/all] Error 2 make: *** [all] Error 2 Best, Zhen
Dear Zhen, Apologies for the slow response on this. I've been able to replicate the problem you've described here. It looks like this is an issue with building on Mac OS X Mojave (and possibly High Sierra). When attempting to build on a much older version of Mac OS X, the build completes successfully. We're investigating and will update the tutorial code to resolve this. Thanks for highlighting this issue. Kind regards, Jeremy On 26 Feb 2019, at 21:22, zxiong@sas.upenn.edu wrote:
Dear all,
When I try to compile the tutorial code of tutorial http://doc.nektar.info/tutorials/latest/fundamentals/differentiation/fundame... , I follow the instruction of task 1.1: I first use cmake command to generate makefile and then type 'make' but the terminal give me error messages like this:(I can successfully run tutorial code in http://doc.nektar.info/tutorials/latest/fundamentals/integration/fundamental..., but I can't compile the code of this one). What should I do?
Scanning dependencies of target StdDifferentiation2D [ 16%] Building CXX object CMakeFiles/StdDifferentiation2D.dir/StdDifferentiation2D.cpp.o /Users/zhenxiong/Desktop/independent_study/turotials/fundamentals-differentiation/tutorial/StdDifferentiation2D.cpp:57:21: error: no viable overloaded '=' derivMatrixDir1 = LibUtilities::PointsManager()[quadPointsKeyDir1]->GetD(); ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3786:17: note: candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'const std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3797:17: note: candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3794:9: note: candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3805:9: note: candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(shared_ptr<_Yp>&& __r); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3815:9: note: candidate template ignored: could not match 'auto_ptr' against 'shared_ptr' operator=(auto_ptr<_Yp>&& __r); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3839:9: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr' operator=(unique_ptr<_Yp, _Dp>&& __r); ^ /Users/zhenxiong/Desktop/independent_study/turotials/fundamentals-differentiation/tutorial/StdDifferentiation2D.cpp:60:21: error: no viable overloaded '=' derivMatrixDir2 = LibUtilities::PointsManager()[quadPointsKeyDir2]->GetD(); ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3786:17: note: candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'const std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(const shared_ptr& __r) _NOEXCEPT; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3797:17: note: candidate function not viable: no known conversion from 'const Nektar::LibUtilities::Points<double>::MatrixSharedPtrType' (aka 'const shared_ptr<NekMatrix<double> >') to 'std::__1::shared_ptr<Nektar::NekMatrix<double, Nektar::StandardMatrixTag> >' for 1st argument shared_ptr& operator=(shared_ptr&& __r) _NOEXCEPT; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3794:9: note: candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(const shared_ptr<_Yp>& __r) _NOEXCEPT; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3805:9: note: candidate template ignored: could not match 'std::__1::shared_ptr' against 'boost::shared_ptr' operator=(shared_ptr<_Yp>&& __r); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3815:9: note: candidate template ignored: could not match 'auto_ptr' against 'shared_ptr' operator=(auto_ptr<_Yp>&& __r); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3839:9: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr' operator=(unique_ptr<_Yp, _Dp>&& __r); ^ 2 errors generated. make[2]: *** [CMakeFiles/StdDifferentiation2D.dir/StdDifferentiation2D.cpp.o] Error 1 make[1]: *** [CMakeFiles/StdDifferentiation2D.dir/all] Error 2 make: *** [all] Error 2
Best,
Zhen _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Jeremy Cohen
- 
                
                zxiong@sas.upenn.edu