Code Monkey home page Code Monkey logo

Comments (5)

AlexeyAB avatar AlexeyAB commented on May 10, 2024

Hi, what compiler version do you use for each case: when error occured, and when it worked well?

from yolo_mark.

kbitr avatar kbitr commented on May 10, 2024

Hey, apparently the above error message was created on a Mac (gcc 7, llvm 5). I wasn't able to reproduce the same error on the Linux machine of my colleague since I installed the build-essentials and others yesterday. On another machine, (Ubuntu 16.4, gcc-5, libopencv-dev 2.4.9.1) it compiled. I'm sorry for not being able to provide more!

Now with gcc-7, libopencv-dev 3.1.0, Lubuntu 17.10, Issue20 appears. But apparently, it is not fixed. I changed all lines to "waitKey" and it worked.

from yolo_mark.

amyoshino avatar amyoshino commented on May 10, 2024

Hi, happened with me also in Mac:
MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix

Scanning dependencies of target yolo_mark
[ 50%] Building CXX object CMakeFiles/yolo_mark.dir/main.cpp.o
/Users/user/Git/Yolo_img/Yolo_mark/main.cpp:21:53: error: invalid suffix
      on literal; C++11 requires a space between literal and identifier
      [-Wreserved-user-defined-literal]
#define OPENCV_VERSION CVAUX_STR(CV_VERSION_EPOCH)""CVAUX_STR(CV_VERSION_MAJOR)""C...
                                                    ^
                                                     
/Users/user/Git/Yolo_img/Yolo_mark/main.cpp:21:82: error: invalid suffix
      on literal; C++11 requires a space between literal and identifier
      [-Wreserved-user-defined-literal]
#define OPENCV_VERSION CVAUX_STR(CV_VERSION_EPOCH)""CVAUX_STR(CV_VERSION_MAJOR)""CVAUX_STR...
                                                                                 ^
                                                                                  
2 errors generated.
make[2]: *** [CMakeFiles/yolo_mark.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/yolo_mark.dir/all] Error 2
make: *** [all] Error 2


from yolo_mark.

amyoshino avatar amyoshino commented on May 10, 2024

I hope it helps, I added the space that the error said C++11 required and the first part achieved the [100%] (as you can see in the code below). I basically put a space after each "" found as errors in main.cpp.

Now the error is:

Scanning dependencies of target yolo_mark
[ 50%] Building CXX object CMakeFiles/yolo_mark.dir/main.cpp.o
[100%] Linking CXX executable yolo_mark
ld: warning: directory not found for option '-L/usr/lib64'
Undefined symbols for architecture x86_64:
  "cv::moveWindow(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int)", referenced from:
      _main in main.cpp.o
  "cv::namedWindow(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)", referenced from:
      _main in main.cpp.o
  "cv::VideoCapture::VideoCapture(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      _main in main.cpp.o
  "cv::resizeWindow(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int)", referenced from:
      _main in main.cpp.o
  "cv::createTrackbar(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*, int, void (*)(int, void*), void*)", referenced from:
      _main in main.cpp.o
  "cv::setTrackbarPos(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:
      _main in main.cpp.o
  "cv::setMouseCallback(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, void (*)(int, int, int, int, void*), void*)", referenced from:
      _main in main.cpp.o
  "cv::glob(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, bool)", referenced from:
      _main in main.cpp.o
  "cv::imread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)", referenced from:
      _main in main.cpp.o
  "cv::imshow(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cv::_InputArray const&)", referenced from:
      _main in main.cpp.o
  "cv::imwrite(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cv::_InputArray const&, std::__1::vector<int, std::__1::allocator<int> > const&)", referenced from:
      _main in main.cpp.o
  "cv::putText(cv::Mat&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)", referenced from:
      _main in main.cpp.o
  "std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long, unsigned long) const", referenced from:
      testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >(bool, char const*, char const*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::string::find(char const*, unsigned long, unsigned long) const", referenced from:
      testing::AssertionResult testing::(anonymous namespace)::IsSubstringImpl<std::string>(bool, char const*, char const*, std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::string::find(char, unsigned long) const", referenced from:
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::FormatDeathTestOutput(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::ParseInternalRunDeathTestFlag() in libopencv_ts.a(ts_gtest.cpp.o)
  "std::string::compare(char const*) const", referenced from:
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::Init(std::vector<std::string, std::allocator<std::string> > const&, int, char const* const*) in libopencv_ts.a(ts_perf.cpp.o)
      perf::GpuPerf::targetDevice() in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::GetReservedAttributesForElement(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::UnitTestImpl::ConfigureXmlOutput() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::InDeathTestChild() in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::String::FormatHexInt(int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::basic_ios<char, std::char_traits<char> >::widen(char) const", referenced from:
      perf::Regression::verify(cv::FileNode, cv::Mat, double, std::string, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::next() in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::Random::Generate(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::GTestLog::~GTestLog() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::String::FormatIntWidth2(int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::String::FormatByte(unsigned char) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_M_destroy(std::allocator<wchar_t> const&)", referenced from:
      testing::internal::UniversalTersePrinter<wchar_t const*>::Print(wchar_t const*, std::ostream*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_empty_rep_storage", referenced from:
      testing::internal::UniversalTersePrinter<wchar_t const*>::Print(wchar_t const*, std::ostream*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, std::allocator<wchar_t> const&)", referenced from:
      testing::internal::UniversalTersePrinter<wchar_t const*>::Print(wchar_t const*, std::ostream*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ostream::put(char)", referenced from:
      perf::Regression::verify(cv::FileNode, cv::Mat, double, std::string, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::next() in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::Random::Generate(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::GTestLog::~GTestLog() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::GetReservedAttributesForElement(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(std::ostream*, std::string const&, std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::ostream::flush()", referenced from:
      perf::Regression::verify(cv::FileNode, cv::Mat, double, std::string, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::next() in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::Random::Generate(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::GTestLog::~GTestLog() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::GetReservedAttributesForElement(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(std::ostream*, std::string const&, std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::ostream::write(char const*, long)", referenced from:
      testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection(std::ostream*, char const*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ostream& std::ostream::_M_insert<void const*>(void const*)", referenced from:
      testing::internal::PrintTo(char const*, std::ostream*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::PrintTo(wchar_t const*, std::ostream*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ostream& std::ostream::_M_insert<double>(double)", referenced from:
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::FormatTimeInMillisAsSeconds(long long) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::AssertionResult& testing::AssertionResult::operator<<<double>(double const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::AssertionResult testing::internal::FloatingPointLE<float>(char const*, char const*, float, float) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::AssertionResult testing::internal::FloatingPointLE<double>(char const*, char const*, double, double) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::Random::Generate(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::String::FormatByte(unsigned char) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::DeathTestImpl::ReadAndInterpretStatusByte() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::NoExecDeathTest::AssumeRole() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::ostream& std::ostream::_M_insert<long long>(long long)", referenced from:
      std::string testing::internal::StreamableToString<long long>(long long const&) in libopencv_ts.a(ts_gtest.cpp.o)
      std::string testing::PrintToString<long long>(long long const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ostream::operator<<(int)", referenced from:
      perf::Regression::verify(cv::FileNode, cv::Mat, double, std::string, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::PrintTo(perf::MatType const&, std::ostream*) in libopencv_ts.a(ts_perf.cpp.o)
      cv::PrintTo(cv::Size_<int> const&, std::ostream*) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::Int32FromGTestEnv(char const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::string::_M_leak_hard()", referenced from:
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
  "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
      perf::readImage(std::string const&, int) in libopencv_ts.a(gpu_perf.cpp.o)
      perf::Regression::operator()(std::string const&, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::addKeypoints(perf::TestBase*, std::string const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::addMatches(perf::TestBase*, std::string const&, std::vector<cv::DMatch, std::allocator<cv::DMatch> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::Regression() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::~Regression() in libopencv_ts.a(ts_perf.cpp.o)
      ...
  "std::string::_Rep::_S_terminal", referenced from:
      testing::internal::UnitTestOptions::FilterMatchesTest(std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::TestPartResult::ExtractSummary(char const*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(char const*, int, char const*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::PrintColorEncoded(char const*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::string::_Rep::_S_empty_rep_storage", referenced from:
      perf::readImage(std::string const&, int) in libopencv_ts.a(gpu_perf.cpp.o)
      perf::Regression::operator()(std::string const&, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::addKeypoints(perf::TestBase*, std::string const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::addMatches(perf::TestBase*, std::string const&, std::vector<cv::DMatch, std::allocator<cv::DMatch> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::Regression() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::~Regression() in libopencv_ts.a(ts_perf.cpp.o)
      ...
  "std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)", referenced from:
      testing::internal::UnitTestOptions::FilterMatchesTest(std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::TestPartResult::ExtractSummary(char const*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(char const*, int, char const*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::PrintColorEncoded(char const*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::string::append(char const*, unsigned long)", referenced from:
      perf::Regression::addKeypoints(perf::TestBase*, std::string const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::addMatches(perf::TestBase*, std::string const&, std::vector<cv::DMatch, std::allocator<cv::DMatch> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::Init(std::vector<std::string, std::allocator<std::string> > const&, int, char const* const*) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::getDataPath(std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      ...
  "std::string::append(std::string const&)", referenced from:
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::Init(std::vector<std::string, std::allocator<std::string> > const&, int, char const* const*) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::getDataPath(std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::AppendUserMessage(std::string const&, testing::Message const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&, testing::internal::FilePath const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::CodePointToUtf8(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::string::append(unsigned long, char)", referenced from:
      testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&, testing::internal::FilePath const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::string::assign(char const*, unsigned long)", referenced from:
      perf::TestBase::getDataPath(std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::UnitTestOptions::FilterMatchesTest(std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::FilePath::RemoveFileName() const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::FilePath::Normalize() in libopencv_ts.a(ts_gtest.cpp.o)
      void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**) in libopencv_ts.a(ts_gtest.cpp.o)
      void testing::internal::ParseGoogleTestFlagsOnlyImpl<wchar_t>(int*, wchar_t**) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::string::assign(std::string const&)", referenced from:
      perf::Regression::operator()(std::string const&, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::Init(std::vector<std::string, std::allocator<std::string> > const&, int, char const* const*) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::getDataPath(std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::vector<std::string, std::allocator<std::string> >::operator=(std::vector<std::string, std::allocator<std::string> > const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::vector<std::string, std::allocator<std::string> >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::allocator<std::string> > >, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::GetCurrentExecutableName() in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::string::reserve(unsigned long)", referenced from:
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::Init(std::vector<std::string, std::allocator<std::string> > const&, int, char const* const*) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::CodePointToUtf8(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::DefaultDeathTestFactory::Create(char const*, testing::internal::RE const*, char const*, int, testing::internal::DeathTest**) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::ParseInternalRunDeathTestFlag() in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::string::_M_mutate(unsigned long, unsigned long, unsigned long)", referenced from:
      perf::Regression::write() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)", referenced from:
      perf::Regression::operator()(std::string const&, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::~Regression() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::write(cv::Mat) in libopencv_ts.a(ts_perf.cpp.o)
      cv::FileStorage& cv::operator<<<double>(cv::FileStorage&, double const&) in libopencv_ts.a(ts_perf.cpp.o)
      cv::FileStorage& cv::operator<<<int>(cv::FileStorage&, int const&) in libopencv_ts.a(ts_perf.cpp.o)
      ...
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned long, std::allocator<char> const&)", referenced from:
      testing::internal::UnitTestOptions::GetOutputFormat() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::FilePath::RemoveFileName() const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::CapturedStream::ReadEntireFile(__sFILE*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)", referenced from:
      perf::Regression::addKeypoints(perf::TestBase*, std::string const&, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::addMatches(perf::TestBase*, std::string const&, std::vector<cv::DMatch, std::allocator<cv::DMatch> > const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::Init(std::vector<std::string, std::allocator<std::string> > const&, int, char const* const*) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::getSelectedImpl() in libopencv_ts.a(ts_perf.cpp.o)
      ...
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned long, unsigned long)", referenced from:
      perf::Regression::init(std::string const&, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::getDataPath(std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::FormatDeathTestOutput(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::ParseInternalRunDeathTestFlag() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::FilePath::RemoveExtension(char const*) const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::FilePath::RemoveTrailingPathSeparator() const in libopencv_ts.a(ts_gtest.cpp.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()", referenced from:
      __GLOBAL__sub_I_ts_perf.cpp in libopencv_ts.a(ts_perf.cpp.o)
      __GLOBAL__sub_I_ts_gtest.cpp in libopencv_ts.a(ts_gtest.cpp.o)
  "std::runtime_error::runtime_error(std::string const&)", referenced from:
      testing::internal::GoogleTestFailureException::GoogleTestFailureException(testing::TestPartResult const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::Int32FromGTestEnv(char const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::UnitTest::AddTestPartResult(testing::TestPartResult::Type, char const*, int, std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::locale::~locale()", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::String::FormatHexInt(int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::WideStringToUtf8(wchar_t const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::ios_base::Init::Init()", referenced from:
      __GLOBAL__sub_I_gpu_perf.cpp in libopencv_ts.a(gpu_perf.cpp.o)
      __GLOBAL__sub_I_ts_perf.cpp in libopencv_ts.a(ts_perf.cpp.o)
      __GLOBAL__sub_I_ts_gtest.cpp in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ios_base::Init::~Init()", referenced from:
      __GLOBAL__sub_I_gpu_perf.cpp in libopencv_ts.a(gpu_perf.cpp.o)
      __GLOBAL__sub_I_ts_perf.cpp in libopencv_ts.a(ts_perf.cpp.o)
      __GLOBAL__sub_I_ts_gtest.cpp in libopencv_ts.a(ts_gtest.cpp.o)
  "std::ios_base::~ios_base()", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::String::FormatHexInt(int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::WideStringToUtf8(wchar_t const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)", referenced from:
      testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection(std::ostream*, char const*) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::CaptureStream(int, char const*, testing::internal::CapturedStream**) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::operator<<(std::ostream&, testing::TestPartResult const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)", referenced from:
      perf::PrintTo(perf::CvtColorInfo const&, std::ostream*) in libopencv_ts.a(gpu_perf.cpp.o)
      perf::Regression::operator()(std::string const&, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::Mat, double, std::string, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::declareArray(std::vector<std::pair<int, cv::Size_<int> >, std::allocator<std::pair<int, cv::Size_<int> > > >&, cv::_OutputArray const&, int) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::next() in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::stopTimer() in libopencv_ts.a(ts_perf.cpp.o)
      ...
  "std::_Rb_tree_decrement(std::_Rb_tree_node_base*)", referenced from:
      std::_Rb_tree<std::string, std::string, std::_Identity<std::string>, std::less<std::string>, std::allocator<std::string> >::_M_insert_unique(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::_Rb_tree_increment(std::_Rb_tree_node_base const*)", referenced from:
      testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(char const*, int, char const*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::__throw_logic_error(char const*)", referenced from:
      testing::internal::UnitTestOptions::FilterMatchesTest(std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::TestPartResult::ExtractSummary(char const*) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::__throw_length_error(char const*)", referenced from:
      std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >::_M_fill_insert(__gnu_cxx::__normal_iterator<cv::KeyPoint*, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> > >, unsigned long, cv::KeyPoint const&) in libopencv_ts.a(gpu_perf.cpp.o)
      std::vector<long long, std::allocator<long long> >::_M_insert_aux(__gnu_cxx::__normal_iterator<long long*, std::vector<long long, std::allocator<long long> > >, long long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::vector<std::pair<int, cv::Size_<int> >, std::allocator<std::pair<int, cv::Size_<int> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<int, cv::Size_<int> >*, std::vector<std::pair<int, cv::Size_<int> >, std::allocator<std::pair<int, cv::Size_<int> > > > >, std::pair<int, cv::Size_<int> > const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::vector<std::string, std::allocator<std::string> >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::allocator<std::string> > >, std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::vector<char*, std::allocator<char*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, char* const&) in libopencv_ts.a(ts_gtest.cpp.o)
      std::vector<std::string, std::allocator<std::string> >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::allocator<std::string> > >, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      std::vector<testing::TestCase*, std::allocator<testing::TestCase*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<testing::TestCase**, std::vector<testing::TestCase*, std::allocator<testing::TestCase*> > >, testing::TestCase* const&) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::__throw_out_of_range(char const*)", referenced from:
      perf::Regression::getCurrentTestNodeName() in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::getDataPath(std::string const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::UnitTestImpl::successful_test_case_count() const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::UnitTestImpl::failed_test_case_count() const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::UnitTestImpl::successful_test_count() const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::TestCase::successful_test_count() const in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::UnitTestImpl::failed_test_count() const in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)", referenced from:
      std::_Rb_tree<std::string, std::string, std::_Identity<std::string>, std::less<std::string>, std::allocator<std::string> >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
  "std::cerr", referenced from:
      testing::internal::Random::Generate(unsigned int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::GTestLog::~GTestLog() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::GetReservedAttributesForElement(std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute(std::ostream*, std::string const&, std::string const&, std::string const&) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::DeathTestImpl::ReadAndInterpretStatusByte() in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::DeathTestImpl::Passed(bool) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::NoExecDeathTest::AssumeRole() in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "std::cout", referenced from:
      perf::Regression::verify(cv::FileNode, cv::_InputArray const&, double, perf::ERROR_TYPE) in libopencv_ts.a(ts_perf.cpp.o)
      perf::TestBase::next() in libopencv_ts.a(ts_perf.cpp.o)
  "VTT for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::String::FormatHexInt(int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::WideStringToUtf8(wchar_t const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  "vtable for std::basic_streambuf<char, std::char_traits<char> >", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::String::FormatHexInt(int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::WideStringToUtf8(wchar_t const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >", referenced from:
      std::string testing::PrintToString<unsigned int>(unsigned int const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<double>(double const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<cv::Size_<int> >(cv::Size_<int> const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<unsigned long>(unsigned long const&) in libopencv_ts.a(ts_perf.cpp.o)
      std::string testing::PrintToString<int>(int const&) in libopencv_ts.a(ts_perf.cpp.o)
      testing::internal::String::FormatHexInt(int) in libopencv_ts.a(ts_gtest.cpp.o)
      testing::internal::WideStringToUtf8(wchar_t const*, int) in libopencv_ts.a(ts_gtest.cpp.o)
      ...
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [yolo_mark] Error 1
make[1]: *** [CMakeFiles/yolo_mark.dir/all] Error 2
make: *** [all] Error 2

from yolo_mark.

BasketJace avatar BasketJace commented on May 10, 2024

@amyoshino

Hi there, I am having the same issue on Mac:

Scanning dependencies of target yolo_mark
[ 50%] Building CXX object CMakeFiles/yolo_mark.dir/main.cpp.o
/Users/Jason/Yolo_mark/main.cpp:18:53: error: invalid suffix on literal; C++11
      requires a space between literal and identifier
      [-Wreserved-user-defined-literal]
#define OPENCV_VERSION CVAUX_STR(CV_VERSION_MAJOR)""CVAUX_STR(CV_VERSION...
                                                    ^
                                                     
/Users/Jason/Yolo_mark/main.cpp:18:82: error: invalid suffix on literal; C++11
      requires a space between literal and identifier
      [-Wreserved-user-defined-literal]
  ...CVAUX_STR(CV_VERSION_MAJOR)""CVAUX_STR(CV_VERSION_MINOR)""CVAUX_STR(CV_V...
                                                               ^
                                                                
2 errors generated.
make[2]: *** [CMakeFiles/yolo_mark.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/yolo_mark.dir/all] Error 2
make: *** [all] Error 2

EDIT: I've installed it on Ubunutu 16.04 without any problems.

from yolo_mark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.