{"action":"opened","issue":{"url":"https://api.github.com/repos/meiroo/ORBSLAM2-OSX/issues/1","repository_url":"https://api.github.com/repos/meiroo/ORBSLAM2-OSX","labels_url":"https://api.github.com/repos/meiroo/ORBSLAM2-OSX/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/meiroo/ORBSLAM2-OSX/issues/1/comments","events_url":"https://api.github.com/repos/meiroo/ORBSLAM2-OSX/issues/1/events","html_url":"https://github.com/meiroo/ORBSLAM2-OSX/issues/1","id":172207381,"number":1,"title":"Undefined symbols for architecture x86_64","user":{"login":"stanchiang","id":3621407,"avatar_url":"https://avatars.githubusercontent.com/u/3621407?v=3","gravatar_id":"","url":"https://api.github.com/users/stanchiang","html_url":"https://github.com/stanchiang","followers_url":"https://api.github.com/users/stanchiang/followers","following_url":"https://api.github.com/users/stanchiang/following{/other_user}","gists_url":"https://api.github.com/users/stanchiang/gists{/gist_id}","starred_url":"https://api.github.com/users/stanchiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanchiang/subscriptions","organizations_url":"https://api.github.com/users/stanchiang/orgs","repos_url":"https://api.github.com/users/stanchiang/repos","events_url":"https://api.github.com/users/stanchiang/events{/privacy}","received_events_url":"https://api.github.com/users/stanchiang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T19:51:44Z","updated_at":"2016-08-19T19:51:44Z","closed_at":null,"body":"I brew installed opencv, eigen, and glew and updated header file paths to fit my own system, but i run into this error ld: symbol(s) not found for architecture x86_64\r\n\r\nhere's my output if it helps\r\n```\r\nCompileC src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/Objects-normal/x86_64/Main.o Examples/Monocular/Main.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler\r\n    cd /Users/stan\r\n    export LANG=en_US.US-ASCII\r\n    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\\\"Debug\\\" -DCOMPILEDWITHC11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/stan/src/ORB_SLAM2/Examples/Monocular/Debug/include -I/Users/stan/src/ORB_SLAM2 -I/Users/stan/src/ORB_SLAM2/include -I/usr/local/include/eigen3 -I/Users/stan/src/ORB_SLAM2/Pangolin/include -I/Users/stan/src/ORB_SLAM2/Pangolin/build/src/include -I/usr/local/include -I/usr/local/Cellar/opencv3/3.1.0_3/include/opencv -I/usr/local/Cellar/opencv3/3.1.0_3/include -I/Users/stan/include -I/Users/stan -I/Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/DerivedSources/x86_64 -I/Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/stan/src/ORB_SLAM2/Examples/Monocular/Debug -std=c++11 -MMD -MT dependencies -MF /Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/Objects-normal/x86_64/Main.d --serialize-diagnostics /Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/Objects-normal/x86_64/Main.dia -c /Users/stan/Examples/Monocular/Main.cc -o /Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/Objects-normal/x86_64/Main.o\r\n\r\nIn file included from /Users/stan/Examples/Monocular/Main.cc:30:\r\nIn file included from /usr/local/include/opencv2/opencv.hpp:73:\r\n/usr/local/include/opencv2/ml/ml.hpp:961:18: warning: 'CvForestTree::train' hides overloaded virtual functions [-Woverloaded-virtual]\r\n    virtual bool train( CvDTreeTrainData* trainData, const CvMat* _subsample_idx, CvRTrees* forest );\r\n                 ^\r\n/usr/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3)\r\n    virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );\r\n                 ^\r\n/usr/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3)\r\n    CV_WRAP virtual bool train( const cv::Mat& trainData, int flag,\r\n                         ^\r\n/usr/local/include/opencv2/ml/ml.hpp:1149:18: warning: 'CvBoostTree::train' hides overloaded virtual functions [-Woverloaded-virtual]\r\n    virtual bool train( CvDTreeTrainData* trainData,\r\n                 ^\r\n/usr/local/include/opencv2/ml/ml.hpp:867:18: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (2 vs 3)\r\n    virtual bool train( CvMLData* trainData, CvDTreeParams params=CvDTreeParams() );\r\n                 ^\r\n/usr/local/include/opencv2/ml/ml.hpp:877:26: note: hidden overloaded virtual function 'CvDTree::train' declared here: different number of parameters (8 vs 3)\r\n    CV_WRAP virtual bool train( const cv::Mat& trainData, int flag,\r\n                         ^\r\n/Users/stan/Examples/Monocular/Main.cc:110:16: warning: unused variable 'ttrack' [-Wunused-variable]\r\n        double ttrack= std::chrono::duration_cast<std::chrono::duration<double> >(t2 - t1).count();\r\n               ^\r\n3 warnings generated.\r\n\r\nLd src/ORB_SLAM2/Examples/Monocular/Debug/mono_kitti normal x86_64\r\n    cd /Users/stan\r\n    export MACOSX_DEPLOYMENT_TARGET=10.11\r\n    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/stan/src/ORB_SLAM2/Examples/Monocular/Debug -F/Users/stan/src/ORB_SLAM2/Examples/Monocular/Debug -filelist /Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/Objects-normal/x86_64/mono_kitti.LinkFileList -Xlinker -rpath -Xlinker /Users/stan/src/ORB_SLAM2/Pangolin/build/src -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -Wl,-search_paths_first -Wl,-headerpad_max_install_names /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_videostab.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_superres.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_stitching.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_shape.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_video.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_photo.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_objdetect.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_calib3d.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_features2d.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_ml.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_highgui.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_videoio.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_imgcodecs.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_imgproc.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_flann.3.1.0.dylib /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_core.3.1.0.dylib -framework AGL -framework OpenGL /usr/local/lib/libGLEW.dylib -framework Cocoa /usr/lib/libpython2.7.dylib /usr/local/lib/libavcodec.dylib /usr/local/lib/libavformat.dylib /usr/local/lib/libavutil.dylib /usr/local/lib/libswscale.dylib /usr/local/lib/libpng.dylib /usr/lib/libz.dylib /usr/local/lib/libjpeg.dylib /usr/local/lib/libtiff.dylib /usr/local/lib/libIlmImf.dylib -Xlinker -dependency_info -Xlinker /Users/stan/src/ORB_SLAM2/build/ORB_SLAM2.build/Debug/mono_kitti.build/Objects-normal/x86_64/mono_kitti_dependency_info.dat -o /Users/stan/src/ORB_SLAM2/Examples/Monocular/Debug/mono_kitti\r\n\r\nUndefined symbols for architecture x86_64:\r\n  \"cv::FileStorage::FileStorage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)\", referenced from:\r\n      ORB_SLAM2::System::System(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, ORB_SLAM2::System::eSensor, bool) in System.o\r\n      ORB_SLAM2::Tracking::Tracking(ORB_SLAM2::System*, DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>*, ORB_SLAM2::Map*, ORB_SLAM2::KeyFrameDatabase*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in Tracking.o\r\n      ORB_SLAM2::Tracking::ChangeCalibration(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in Tracking.o\r\n  \"cv::_InputArray::_InputArray(cv::Mat const&)\", referenced from:\r\n      ORB_SLAM2::Frame::Frame(cv::Mat const&, double const&, ORB_SLAM2::ORBextractor*, DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>*, cv::Mat&, cv::Mat&, float const&, float const&) in Frame.o\r\n      ORB_SLAM2::Frame::UndistortKeyPoints() in Frame.o\r\n      ORB_SLAM2::Frame::ComputeImageBounds(cv::Mat const&) in Frame.o\r\n      ORB_SLAM2::Frame::isInFrustum(ORB_SLAM2::MapPoint*, float) in Frame.o\r\n      ORB_SLAM2::Initializer::ReconstructH(std::__1::vector<bool, std::__1::allocator<bool> >&, cv::Mat&, cv::Mat&, cv::Mat&, cv::Mat&, std::__1::vector<cv::Point3_<float>, std::__1::allocator<cv::Point3_<float> > >&, std::__1::vector<bool, std::__1::allocator<bool> >&, float, int) in Initializer.o\r\n      ORB_SLAM2::Initializer::ComputeH21(std::__1::vector<cv::Point_<float>, std::__1::allocator<cv::Point_<float> > > const&, std::__1::vector<cv::Point_<float>, std::__1::allocator<cv::Point_<float> > > const&) in Initializer.o\r\n      ORB_SLAM2::Initializer::ComputeF21(std::__1::vector<cv::Point_<float>, std::__1::allocator<cv::Point_<float> > > const&, std::__1::vector<cv::Point_<float>, std::__1::allocator<cv::Point_<float> > > const&) in Initializer.o\r\n      ...\r\n  \"cv::_OutputArray::_OutputArray(cv::Mat const&)\", referenced from:\r\n      ORB_SLAM2::Initializer::CheckRT(cv::Mat const&, cv::Mat const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> > const&, std::__1::vector<cv::KeyPoint, std::__1::allocator<cv::KeyPoint> > const&, std::__1::vector<std::__1::pair<int, int>, std::__1::allocator<std::__1::pair<int, int> > > const&, std::__1::vector<bool, std::__1::allocator<bool> >&, cv::Mat const&, std::__1::vector<cv::Point3_<float>, std::__1::allocator<cv::Point3_<float> > >&, float, std::__1::vector<bool, std::__1::allocator<bool> >&, float&) in Initializer.o\r\n      ORB_SLAM2::KeyFrame::SetPose(cv::Mat const&) in KeyFrame.o\r\n      ORB_SLAM2::LocalMapping::CreateNewMapPoints() in LocalMapping.o\r\n      ORB_SLAM2::PnPsolver::iterate(int, bool&, std::__1::vector<bool, std::__1::allocator<bool> >&, int&) in PnPsolver.o\r\n      ORB_SLAM2::PnPsolver::Refine() in PnPsolver.o\r\n      ORB_SLAM2::Sim3Solver::iterate(int, bool&, std::__1::vector<bool, std::__1::allocator<bool> >&, int&) in Sim3Solver.o\r\n      ORB_SLAM2::Sim3Solver::ComputeSim3(cv::Mat&, cv::Mat&) in Sim3Solver.o\r\n      ...\r\n  \"cv::_OutputArray::_OutputArray(cv::Mat&)\", referenced from:\r\n      cv::Mat::clone() const in Converter.o\r\n      ORB_SLAM2::Frame::Frame(cv::Mat const&, double const&, ORB_SLAM2::ORBextractor*, DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>*, cv::Mat&, cv::Mat&, float const&, float const&) in Frame.o\r\n      ORB_SLAM2::Frame::UndistortKeyPoints() in Frame.o\r\n      ORB_SLAM2::Frame::ComputeImageBounds(cv::Mat const&) in Frame.o\r\n      cv::Mat::clone() const in Frame.o\r\n      ORB_SLAM2::Initializer::ReconstructH(std::__1::vector<bool, std::__1::allocator<bool> >&, cv::Mat&, cv::Mat&, cv::Mat&, cv::Mat&, std::__1::vector<cv::Point3_<float>, std::__1::allocator<cv::Point3_<float> > >&, std::__1::vector<bool, std::__1::allocator<bool> >&, float, int) in Initializer.o\r\n      ORB_SLAM2::Initializer::ReconstructF(std::__1::vector<bool, std::__1::allocator<bool> >&, cv::Mat&, cv::Mat&, cv::Mat&, cv::Mat&, std::__1::vector<cv::Point3_<float>, std::__1::allocator<cv::Point3_<float> > >&, std::__1::vector<bool, std::__1::allocator<bool> >&, float, int) in Initializer.o\r\n      ...\r\n  \"cv::eigen(cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, int)\", referenced from:\r\n      ORB_SLAM2::Sim3Solver::ComputeSim3(cv::Mat&, cv::Mat&) in Sim3Solver.o\r\n  \"cv::write(cv::FileStorage&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, double)\", referenced from:\r\n      cv::FileStorage& cv::operator<<<double>(cv::FileStorage&, double const&) in System.o\r\n  \"cv::write(cv::FileStorage&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)\", referenced from:\r\n      cv::FileStorage& cv::operator<<<int>(cv::FileStorage&, int const&) in System.o\r\n      cv::FileStorage& cv::operator<<<DBoW2::ScoringType>(cv::FileStorage&, DBoW2::ScoringType const&) in System.o\r\n      cv::FileStorage& cv::operator<<<DBoW2::WeightingType>(cv::FileStorage&, DBoW2::WeightingType const&) in System.o\r\n  \"cv::circle(cv::Mat&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)\", referenced from:\r\n      _main in Main.o\r\n  \"cv::imshow(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cv::_InputArray const&)\", referenced from:\r\n      _main in Main.o\r\n  \"cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)\", referenced from:\r\n      cv::Mat::diag(cv::Mat const&) in Initializer.o\r\n      cv::FileStorage& cv::operator<<<int>(cv::FileStorage&, int const&) in System.o\r\n      cv::FileStorage& cv::operator<<<DBoW2::ScoringType>(cv::FileStorage&, DBoW2::ScoringType const&) in System.o\r\n      cv::FileStorage& cv::operator<<<DBoW2::WeightingType>(cv::FileStorage&, DBoW2::WeightingType const&) in System.o\r\n      cv::FileStorage& cv::operator<<<double>(cv::FileStorage&, double const&) in System.o\r\n      cv::Mat::operator cv::Vec<float, 3><float, 3>() const in Main.o\r\n  \"cv::operator<<(cv::FileStorage&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)\", referenced from:\r\n      cv::operator<<(cv::FileStorage&, char const*) in System.o\r\n      DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::save(cv::FileStorage&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in System.o\r\n  \"cv::FileStorage::operator[](std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const\", referenced from:\r\n      DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::load(cv::FileStorage const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in System.o\r\n  \"vtable for cv::_InputArray\", referenced from:\r\n      cv::_InputArray::_InputArray<float>(cv::Mat_<float> const&) in KeyFrame.o\r\n      cv::_InputArray::_InputArray<float>(cv::Mat_<float> const&) in LocalMapping.o\r\n      cv::_InputArray::_InputArray<float>(cv::Mat_<float> const&) in Sim3Solver.o\r\n      cv::_InputArray::_InputArray<cv::Point3_<float> >(std::__1::vector<cv::Point3_<float>, std::__1::allocator<cv::Point3_<float> > > const&) in Main.o\r\n      cv::_InputArray::_InputArray<cv::Point_<float> >(std::__1::vector<cv::Point_<float>, std::__1::allocator<cv::Point_<float> > > const&) in Main.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\n  \"vtable for cv::_OutputArray\", referenced from:\r\n      cv::_OutputArray::_OutputArray<float>(cv::Mat_<float>&) in KeyFrame.o\r\n      cv::_OutputArray::_OutputArray<float>(cv::Mat_<float>&) in LocalMapping.o\r\n      cv::_OutputArray::_OutputArray<float>(cv::Mat_<float>&) in Sim3Solver.o\r\n      cv::_OutputArray::_OutputArray<cv::Point_<float> >(std::__1::vector<cv::Point_<float>, std::__1::allocator<cv::Point_<float> > >&) in Main.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n\r\n\r\n```"}}
{"actor":{"display_login":"stanchiang"}}