without any error. Then when running make
, encounters this error:
Scanning dependencies of target gutil_static
[ 1%] Building CXX object gutil/CMakeFiles/gutil_static.dir/exception.cc.o
[ 2%] Building CXX object gutil/CMakeFiles/gutil_static.dir/misc.cc.o
[ 3%] Building CXX object gutil/CMakeFiles/gutil_static.dir/parameter.cc.o
[ 4%] Building CXX object gutil/CMakeFiles/gutil_static.dir/properties.cc.o
[ 5%] Building CXX object gutil/CMakeFiles/gutil_static.dir/thread_pthread.cc.o
[ 6%] Building CXX object gutil/CMakeFiles/gutil_static.dir/semaphore_pthread.cc.o
[ 7%] Linking CXX static library libgutil_static.a
[ 7%] Built target gutil_static
Scanning dependencies of target gutil
[ 8%] Building CXX object gutil/CMakeFiles/gutil.dir/exception.cc.o
[ 9%] Building CXX object gutil/CMakeFiles/gutil.dir/misc.cc.o
[ 10%] Building CXX object gutil/CMakeFiles/gutil.dir/parameter.cc.o
[ 11%] Building CXX object gutil/CMakeFiles/gutil.dir/properties.cc.o
[ 12%] Building CXX object gutil/CMakeFiles/gutil.dir/thread_pthread.cc.o
[ 13%] Building CXX object gutil/CMakeFiles/gutil.dir/semaphore_pthread.cc.o
[ 14%] Linking CXX shared library libgutil.dylib
[ 14%] Built target gutil
Scanning dependencies of target gmath
[ 15%] Building CXX object gmath/CMakeFiles/gmath.dir/linalg.cc.o
[ 16%] Building CXX object gmath/CMakeFiles/gmath.dir/polynomial.cc.o
[ 17%] Building CXX object gmath/CMakeFiles/gmath.dir/distortion.cc.o
[ 18%] Building CXX object gmath/CMakeFiles/gmath.dir/camera.cc.o
[ 19%] Building CXX object gmath/CMakeFiles/gmath.dir/camgeom.cc.o
[ 20%] Building CXX object gmath/CMakeFiles/gmath.dir/pose.cc.o
[ 21%] Building CXX object gmath/CMakeFiles/gmath.dir/minpack.cc.o
[ 22%] Building C object gmath/CMakeFiles/gmath.dir/minpack/lmdif.c.o
[ 23%] Building C object gmath/CMakeFiles/gmath.dir/minpack/lmder.c.o
[ 25%] Building C object gmath/CMakeFiles/gmath.dir/minpack/lmpar.c.o
[ 26%] Building C object gmath/CMakeFiles/gmath.dir/minpack/fdjac2.c.o
[ 27%] Building C object gmath/CMakeFiles/gmath.dir/minpack/qrfac.c.o
[ 28%] Building C object gmath/CMakeFiles/gmath.dir/minpack/qrsolv.c.o
[ 29%] Building C object gmath/CMakeFiles/gmath.dir/minpack/dpmpar.c.o
[ 30%] Building C object gmath/CMakeFiles/gmath.dir/minpack/enorm.c.o
[ 31%] Building CXX object gmath/CMakeFiles/gmath.dir/estimatedplane.cc.o
[ 32%] Linking CXX shared library libgmath.dylib
[ 32%] Built target gmath
Scanning dependencies of target gmath_static
[ 33%] Building CXX object gmath/CMakeFiles/gmath_static.dir/linalg.cc.o
[ 34%] Building CXX object gmath/CMakeFiles/gmath_static.dir/polynomial.cc.o
[ 35%] Building CXX object gmath/CMakeFiles/gmath_static.dir/distortion.cc.o
[ 36%] Building CXX object gmath/CMakeFiles/gmath_static.dir/camera.cc.o
[ 37%] Building CXX object gmath/CMakeFiles/gmath_static.dir/camgeom.cc.o
[ 38%] Building CXX object gmath/CMakeFiles/gmath_static.dir/pose.cc.o
[ 39%] Building CXX object gmath/CMakeFiles/gmath_static.dir/minpack.cc.o
[ 40%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/lmdif.c.o
[ 41%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/lmder.c.o
[ 42%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/lmpar.c.o
[ 43%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/fdjac2.c.o
[ 44%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/qrfac.c.o
[ 45%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/qrsolv.c.o
[ 46%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/dpmpar.c.o
[ 47%] Building C object gmath/CMakeFiles/gmath_static.dir/minpack/enorm.c.o
[ 48%] Building CXX object gmath/CMakeFiles/gmath_static.dir/estimatedplane.cc.o
[ 50%] Linking CXX static library libgmath_static.a
[ 50%] Built target gmath_static
Scanning dependencies of target gimage
[ 51%] Building CXX object gimage/CMakeFiles/gimage.dir/io.cc.o
[ 52%] Building CXX object gimage/CMakeFiles/gimage.dir/pnm_io.cc.o
[ 53%] Building CXX object gimage/CMakeFiles/gimage.dir/raw_io.cc.o
[ 54%] Building CXX object gimage/CMakeFiles/gimage.dir/analysis.cc.o
[ 55%] Building CXX object gimage/CMakeFiles/gimage.dir/view.cc.o
[ 56%] Building CXX object gimage/CMakeFiles/gimage.dir/polygon.cc.o
[ 57%] Linking CXX shared library libgimage.dylib
[ 57%] Built target gimage
Scanning dependencies of target gimage_static
[ 58%] Building CXX object gimage/CMakeFiles/gimage_static.dir/io.cc.o
[ 59%] Building CXX object gimage/CMakeFiles/gimage_static.dir/pnm_io.cc.o
[ 60%] Building CXX object gimage/CMakeFiles/gimage_static.dir/raw_io.cc.o
[ 61%] Building CXX object gimage/CMakeFiles/gimage_static.dir/analysis.cc.o
[ 62%] Building CXX object gimage/CMakeFiles/gimage_static.dir/view.cc.o
[ 63%] Building CXX object gimage/CMakeFiles/gimage_static.dir/polygon.cc.o
[ 64%] Linking CXX static library libgimage_static.a
[ 64%] Built target gimage_static
Scanning dependencies of target bgui_static
[ 65%] Building CXX object bgui/CMakeFiles/bgui_static.dir/imagewindow.cc.o
[ 66%] Building CXX object bgui/CMakeFiles/bgui_static.dir/fileimagewindow.cc.o
[ 67%] Building CXX object bgui/CMakeFiles/bgui_static.dir/listimagewindow.cc.o
[ 68%] Linking CXX static library libbgui_static.a
[ 68%] Built target bgui_static
Scanning dependencies of target bgui
[ 69%] Building CXX object bgui/CMakeFiles/bgui.dir/imagewindow.cc.o
[ 70%] Building CXX object bgui/CMakeFiles/bgui.dir/fileimagewindow.cc.o
[ 71%] Building CXX object bgui/CMakeFiles/bgui.dir/listimagewindow.cc.o
[ 72%] Linking CXX shared library libbgui.dylib
Undefined symbols for architecture x86_64:
"bgui::BaseWindow::getContent(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> >&)", referenced from:
bgui::FileImageWindow::saveContent(char const*) in fileimagewindow.cc.o
"bgui::BaseWindow::setVisible(bool)", referenced from:
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<float, gimage::PixelTraits<float> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::FileImageWindow::FileImageWindow(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> > > > const&, int, bool, int, int, int, int, bool, double, double, double, double, double, bgui::ImageWindow::keep, bgui::mapping, int, char const*) in fileimagewindow.cc.o
bgui::ListImageWindow::add(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in listimagewindow.cc.o
bgui::ListImageWindow::add(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in listimagewindow.cc.o
bgui::ListImageWindow::add(gimage::Image<float, gimage::PixelTraits<float> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in listimagewindow.cc.o
...
"bgui::BaseWindow::showBuffer()", referenced from:
bgui::ImageWindow::setAdapter(bgui::ImageAdapterBase*, bool, bgui::ImageWindow::keep, int, int, bool) in imagewindow.cc.o
bgui::ImageWindow::redrawImage(bool) in imagewindow.cc.o
"bgui::BaseWindow::clearBuffer()", referenced from:
bgui::ImageWindow::setAdapter(bgui::ImageAdapterBase*, bool, bgui::ImageWindow::keep, int, int, bool) in imagewindow.cc.o
bgui::ImageWindow::redrawImage(bool) in imagewindow.cc.o
"bgui::BaseWindow::hasInfoText()", referenced from:
bgui::ImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in imagewindow.cc.o
"bgui::BaseWindow::paintBuffer(bgui::ImageAdapterBase const&, int, int)", referenced from:
bgui::ImageWindow::redrawImage(bool) in imagewindow.cc.o
"bgui::BaseWindow::setInfoLine(char const*, bool, bool)", referenced from:
bgui::ImageWindow::updateInfo() in imagewindow.cc.o
bgui::ImageWindow::onMousePressed(bgui::BaseWindow::Button, int, int, int) in imagewindow.cc.o
bgui::ImageWindow::onMouseMove(int, int, int) in imagewindow.cc.o
bgui::FileImageWindow::saveContent(char const*) in fileimagewindow.cc.o
bgui::FileImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in fileimagewindow.cc.o
bgui::ListImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in listimagewindow.cc.o
"bgui::BaseWindow::setInfoText(char const*)", referenced from:
bgui::ImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in imagewindow.cc.o
bgui::FileImageWindow::updateTitle() in fileimagewindow.cc.o
bgui::ListImageWindow::updateTitle() in listimagewindow.cc.o
"bgui::BaseWindow::setPosition(int, int)", referenced from:
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<float, gimage::PixelTraits<float> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::FileImageWindow::FileImageWindow(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> > > > const&, int, bool, int, int, int, int, bool, double, double, double, double, double, bgui::ImageWindow::keep, bgui::mapping, int, char const*) in fileimagewindow.cc.o
"bgui::BaseWindow::addFileWatch(char const*)", referenced from:
bgui::FileImageWindow::load(unsigned int&, bool, int, int, bool) in fileimagewindow.cc.o
"bgui::BaseWindow::getTextHeight()", referenced from:
bgui::ImageWindow::onMousePressed(bgui::BaseWindow::Button, int, int, int) in imagewindow.cc.o
bgui::ImageWindow::onMouseMove(int, int, int) in imagewindow.cc.o
"bgui::BaseWindow::getDisplaySize(int&, int&)", referenced from:
bgui::ImageWindow::setAdapter(bgui::ImageAdapterBase*, bool, bgui::ImageWindow::keep, int, int, bool) in imagewindow.cc.o
bgui::FileImageWindow::FileImageWindow(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> > > > const&, int, bool, int, int, int, int, bool, double, double, double, double, double, bgui::ImageWindow::keep, bgui::mapping, int, char const*) in fileimagewindow.cc.o
bgui::ListImageWindow::add(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in listimagewindow.cc.o
bgui::ListImageWindow::add(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in listimagewindow.cc.o
bgui::ListImageWindow::add(gimage::Image<float, gimage::PixelTraits<float> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in listimagewindow.cc.o
"bgui::BaseWindow::removeFileWatch(int)", referenced from:
bgui::FileImageWindow::load(unsigned int&, bool, int, int, bool) in fileimagewindow.cc.o
"bgui::BaseWindow::getSize(int&, int&)", referenced from:
bgui::ImageWindow::updateInfo() in imagewindow.cc.o
bgui::ImageWindow::setAdapter(bgui::ImageAdapterBase*, bool, bgui::ImageWindow::keep, int, int, bool) in imagewindow.cc.o
bgui::ImageWindow::redrawImage(bool) in imagewindow.cc.o
bgui::ImageWindow::visibleImagePart(long&, long&, long&, long&) in imagewindow.cc.o
bgui::ImageWindow::onMousePressed(bgui::BaseWindow::Button, int, int, int) in imagewindow.cc.o
bgui::ImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in imagewindow.cc.o
"bgui::BaseWindow::setSize(int, int)", referenced from:
bgui::ImageWindow::setAdapter(bgui::ImageAdapterBase*, bool, bgui::ImageWindow::keep, int, int, bool) in imagewindow.cc.o
bgui::ImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in imagewindow.cc.o
"bgui::BaseWindow::setTitle(char const*)", referenced from:
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<float, gimage::PixelTraits<float> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::FileImageWindow::updateTitle() in fileimagewindow.cc.o
bgui::ListImageWindow::updateTitle() in listimagewindow.cc.o
"bgui::BaseWindow::sendClose()", referenced from:
bgui::ImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in imagewindow.cc.o
bgui::FileImageWindow::onKey(char, bgui::BaseWindow::SpecialKey, int, int) in fileimagewindow.cc.o
"bgui::BaseWindow::BaseWindow(char const*, int, int)", referenced from:
bgui::ImageWindow::ImageWindow() in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<float, gimage::PixelTraits<float> > const&, int, int, int, int, double, double) in imagewindow.cc.o
"bgui::BaseWindow::~BaseWindow()", referenced from:
bgui::ImageWindow::ImageWindow() in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned char, gimage::PixelTraits<unsigned char> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<unsigned short, gimage::PixelTraits<unsigned short> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::ImageWindow(gimage::Image<float, gimage::PixelTraits<float> > const&, int, int, int, int, double, double) in imagewindow.cc.o
bgui::ImageWindow::~ImageWindow() in imagewindow.cc.o
bgui::ImageWindow::~ImageWindow() in imagewindow.cc.o
bgui::ImageWindow::~ImageWindow() in imagewindow.cc.o
...
"typeinfo for bgui::BaseWindow", referenced from:
typeinfo for bgui::ImageWindow in imagewindow.cc.o
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]: *** [bgui/libbgui.dylib] Error 1
make[1]: *** [bgui/CMakeFiles/bgui.dir/all] Error 2
make: *** [all] Error 2