1. 程式人生 > >【ubuntu-qt-dlib】 配置問題 (一) undefined reference to `XPending'

【ubuntu-qt-dlib】 配置問題 (一) undefined reference to `XPending'

問題描述:undefined reference to `XPending'

source.o: In function `dlib::gui_core_kernel_2_globals::event_handler_thread::event_handler()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:639: undefined reference to `XPending'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:649: undefined reference to `XNextEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:653: undefined reference to `XFilterEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:679: undefined reference to `XInternAtom'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:692: undefined reference to `XChangeProperty'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:704: undefined reference to `XChangeProperty'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:717: undefined reference to `XSendEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:718: undefined reference to `XFlush'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:731: undefined reference to `XAllocSizeHints'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:737: undefined reference to `XSetNormalHints'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:738: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:745: undefined reference to `XResizeWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:752: undefined reference to `XMoveWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:756: undefined reference to `XFlush'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:794: undefined reference to `XwcLookupString'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:797: undefined reference to `XwcLookupString'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:804: undefined reference to `XLookupString'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1018: undefined reference to `XDestroyWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1050: undefined reference to `XCheckIfEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1223: undefined reference to `XInitImage'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1225: undefined reference to `XCreateGC'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1227: undefined reference to `XPutImage'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1229: undefined reference to `XFreeGC'

source.o: In function `dlib::gui_core_kernel_2_globals::event_handler_thread::init_keyboard_mod_masks()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1266: undefined reference to `XGetModifierMapping'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1272: undefined reference to `XkbKeycodeToKeysym'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1294: undefined reference to `XFreeModifiermap'

source.o: In function `dlib::put_on_clipboard(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1365: undefined reference to `XSetSelectionOwner'

source.o: In function `dlib::get_from_clipboard(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1423: undefined reference to `XInternAtom'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1424: undefined reference to `XGetSelectionOwner'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1437: undefined reference to `XConvertSelection'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1441: undefined reference to `XPeekIfEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1452: undefined reference to `XGetWindowProperty'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1455: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1464: undefined reference to `XGetWindowProperty'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1468: undefined reference to `XwcTextPropertyToTextList'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1473: undefined reference to `XwcFreeStringList'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1482: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1485: undefined reference to `XwcFreeStringList'

source.o: In function `dlib::base_window::base_window(bool, bool)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1593: undefined reference to `XCreateWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1620: undefined reference to `XCreateFontSet'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1623: undefined reference to `XVaCreateNestedList'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1624: undefined reference to `XCreateIC'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1631: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1632: undefined reference to `XFreeStringList'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1642: undefined reference to `XGetICValues'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1650: undefined reference to `XSelectInput'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1657: undefined reference to `XSetWMProtocols'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1668: undefined reference to `XAllocSizeHints'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1674: undefined reference to `XSetNormalHints'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1675: undefined reference to `XFree'

source.o: In function `dlib::base_window::~base_window()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1690: undefined reference to `XDestroyIC'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1692: undefined reference to `XFreeFontSet'

source.o: In function `dlib::base_window::close_window()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1712: undefined reference to `XDestroyWindow'

source.o: In function `dlib::base_window::set_title(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1760: undefined reference to `XwcTextListToTextProperty'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1761: undefined reference to `XSetWMName'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1762: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1763: undefined reference to `XFlush'

source.o: In function `dlib::base_window::show()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1777: undefined reference to `XMapRaised'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1778: undefined reference to `XFlush'

source.o: In function `dlib::base_window::hide()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1804: undefined reference to `XUnmapWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1805: undefined reference to `XFlush'

source.o: In function `dlib::base_window::set_size(int, int)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1834: undefined reference to `XAllocSizeHints'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1840: undefined reference to `XSetNormalHints'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1841: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1844: undefined reference to `XResizeWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1846: undefined reference to `XFlush'

source.o: In function `dlib::base_window::set_pos(long, long)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1868: undefined reference to `XMoveWindow'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1869: undefined reference to `XFlush'

source.o: In function `dlib::base_window::get_pos(long&, long&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1893: undefined reference to `XTranslateCoordinates'

source.o: In function `dlib::base_window::get_display_size(unsigned long&, unsigned long&) const':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1934: undefined reference to `XScreenNumberOfScreen'

source.o: In function `dlib::base_window::invalidate_rectangle(dlib::rectangle const&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1958: undefined reference to `XClearArea'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1959: undefined reference to `XFlush'

source.o: In function `dlib::base_window::set_im_pos(long, long)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1984: undefined reference to `XVaCreateNestedList'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1985: undefined reference to `XSetICValues'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:1986: undefined reference to `XFree'

source.o: In function `nativefont::font_renderer::font_renderer::vals_internal::rgb2color(nativefont::font_renderer::font_renderer::rgb_type, _XDisplay*, unsigned long&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:313: undefined reference to `XAllocColor'

source.o: In function `nativefont::font_renderer::font_renderer::vals_internal::color2rgb(unsigned long, _XDisplay*, unsigned long&)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:435: undefined reference to `XQueryColor'

source.o: In function `nativefont::font_renderer::font_renderer::vals_internal::~vals_internal()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:449: undefined reference to `XFreeGC'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:450: undefined reference to `XFreeFontSet'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:451: undefined reference to `XFreePixmap'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:452: undefined reference to `XCloseDisplay'

source.o: In function `dlib::gui_core_kernel_2_globals::event_handler_thread::~event_handler_thread()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:147: undefined reference to `XFlush'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:148: undefined reference to `XPutBackEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:149: undefined reference to `XFlush'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:153: undefined reference to `XSendEvent'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:154: undefined reference to `XFlush'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:160: undefined reference to `XCloseIM'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:163: undefined reference to `XCloseDisplay'

source.o: In function `dlib::gui_core_kernel_2_globals::event_handler_thread::thread()':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:191: undefined reference to `XInitThreads'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:203: undefined reference to `XOpenDisplay'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:208: undefined reference to `XOpenDisplay'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:225: undefined reference to `XInternAtom'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:252: undefined reference to `XGetIMValues'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:265: undefined reference to `XFree'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_core/gui_core_kernel_2.cpp:272: undefined reference to `XCreateWindow'

source.o: In function `void nativefont::font_renderer::font_renderer::vals_internal::create<unsigned int>(unsigned int*, int, bool, bool, bool, nativefont::font_renderer::font_renderer::rgb_type, nativefont::font_renderer::font_renderer::rgb_type)::inner::XTextExtents(_XOC*, wchar_t*, int, XRectangle*, XRectangle*)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:322: undefined reference to `XwcTextExtents'

source.o: In function `void nativefont::font_renderer::font_renderer::vals_internal::create<unsigned int>(unsigned int*, int, bool, bool, bool, nativefont::font_renderer::font_renderer::rgb_type, nativefont::font_renderer::font_renderer::rgb_type)::inner::XDrawString(_XDisplay*, unsigned long, _XOC*, _XGC*, int, int, wchar_t*, int)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:328: undefined reference to `XwcDrawString'

source.o: In function `void nativefont::font_renderer::font_renderer::vals_internal::create<unsigned int>(unsigned int*, int, bool, bool, bool, nativefont::font_renderer::font_renderer::rgb_type, nativefont::font_renderer::font_renderer::rgb_type)':

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:334: undefined reference to `XOpenDisplay'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:337: undefined reference to `XOpenDisplay'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:369: undefined reference to `XFreeFontSet'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:371: undefined reference to `XCreateFontSet'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:376: undefined reference to `XExtentsOfFontSet'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:379: undefined reference to `XFreeStringList'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:388: undefined reference to `XFreeGC'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:389: undefined reference to `XFreePixmap'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:393: undefined reference to `XDefaultDepth'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:393: undefined reference to `XCreatePixmap'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:394: undefined reference to `XCreateGC'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:398: undefined reference to `XSetForeground'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:399: undefined reference to `XSetBackground'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:400: undefined reference to `XFillRectangle'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:401: undefined reference to `XSetForeground'

/home/ubuntu/face-recognition/face_detector/cpp/build-m_landmark_ex2-unknown-Debug/../../../dlib/dlib/all/../gui_widgets/nativefont.h:405: undefined reference to `XGetImage'

collect2: error: ld returned 1 exit status

make: *** [m_landmark_ex2] Error 1

解決辦法:這裡在於x11沒有配置好造成。配置參考連結【1】

參考連結

【2】使用Dlib程式設計出現X11相關錯誤

相關推薦

ubuntu-qt-dlib 配置問題 undefined reference to `XPending'

問題描述:undefined reference to `XPending'source.o: In function `dlib::gui_core_kernel_2_globals::event_handler_thread::event_handler()':/home

遊戲引擎架構入門

I/O phy 分析 自定義 ctx 驅動 定義數據 中間 分配 遊戲引擎的組成:運行時組件+工具套件。 運行時組件: 硬件、驅動、操作系統、 第三方軟件開發包(SDK)和中間件:數據結構及算法(STL、STLport、Boost、Loki)、圖形(OpenGL、Dire

C++學習筆記模板

模板的概念 模板是實現程式碼複用的一種手段,是C++重要的特徵之一此前在定義函式與類時,必須明確指明其中用到的變數的資料型別。如果需要對不同型別的資料進行相同的處理,就需要重新定義函式或者類。 我們知道函式是一種程式碼複用的方式,通過定義不同的函式實現不同的操作,但是函

PyQt5-Qt Designer日曆QCalendarWidget

日曆(QCalendarWidget)+爬蟲API呼叫+自定義傳送訊號(傳入2個引數) 總體介紹 QCalendarWidget類提供了一個基日曆小部件,允許使用者選擇一個日期。 該小部件使用當前的月份和年份進行初始化,但是QCalendarWidget提供了幾個公共槽函式來更改顯示的年份和月份。

劍指Offer行榜牛客網練習

1、二維陣列的查詢 題目描述: 在一個二維陣列中(每個一維陣列的長度相同),每一行都按照從左到右遞增的順序排序,每一列都按照從上到下遞增的順序排序。請完成一個函式,輸入這樣的一個二維陣列和一個整數,判斷陣列中是否含有該整數。 思路: 為了避免遍歷陣列,找出第一行中lineIndex,比目

機房收費系統——報表

簡單的說:報表就是用表格、圖表等格式來動態顯示資料,可以用公式表示為:“報表 = 多樣的格式 + 動態的資料”。 在沒有計算機以前,人們利用紙和筆來記錄資料,比如:民間常常說的豆腐帳,就是賣豆腐的每

轉載項目管理和構建——Maven下載、安裝和配置

文檔 port 目標 軟件項目管理 strong mar temp mave work 原文鏈接: http://blog.csdn.net/jiuqiyuliang/article/details/41076215 在現實

Big DataHADOOP叢集的配置

摘要: hadoop叢集配置系列文件,是筆者在實驗室真機環境實驗後整理而得。以便隨後工作所需,做以知識整理,另則與部落格園朋友分享實驗成果,因為筆者在學習初期,也遇到不少問題。但是網上一些文件大多互相抄襲,裡面錯誤百出。筆者結合自學書籍視訊等資料,完成這一套配置資料。實驗結果和過程經過反覆測試無誤後方

OracleExadata虛擬機器配置

Exadata是Oracle軟硬結合的一體機,通過自己的機子不可能完全模擬出來,這裡搭建的虛擬機器只是一個簡單的、可以供我們學習Exadata的環境。 最簡單可以模擬的Exadata虛擬機器需要兩個節點,CELL節點和DB節點。 首先說一下CELL節點安裝介質: OEL5.

java簡介

編碼 http ... 設計 適合 不能 高度 代碼格式 操作系統 應用:web後端開發、android-app開發、大數據應用開發 學習:java會過時,但程序設計的思想不會過時 特點:1、面向對象,跨平臺,語法比c++簡單     2、以字節碼的形式運行在虛擬機上   

Linux之Ubuntu環境配置

sogou home ade -- linux下 安裝 linux64 x64 inux Linux下的搜狗輸入法安裝: 1.搜狗官網下載Linux64bit版本文件,默認在/home/username/Downloads目錄下。 2.cd /home/username/D

微服務從入門到精通微服務的藍綠發布及灰度發布

采樣 前端 入門 後端 blog 文件 風險 性能 切換 藍綠部署 基本上,藍綠部署是一種以可預測的方式發布應用的技術,目的是減少發布過程中服務停止的時間。 簡單來說,你需要準備兩個相同的環境(基礎架構),在藍色環境運行當前生產環境中的應用,也就是舊版本應用,如圖中 A

算法排序選擇排序

如何 接下來 運行時 images 復雜度 分析 穩定性 stat ima 在排序算法中,最簡單的莫過於選擇排序了。 排序思路: 在選擇排序算法中分別有一個外循環和一個內循環,假設需要排序的序列共有n個元素,所以外循環的次數為n次,在n次交換(外循環)中,每次設置序列中的第

學習reactjs——使用npm創建react項目並整合elementUI

web -s from 頁面 rain tle export build head 在實習的過程中了解了react,所以打算使用react搭建一個屬於自己的頁面,如有問題請教正,謝謝。 Github:https://github.com/yclxt/react-elemen

物理電磁

散度divergence,顧名思義,是指一個向量場發散的程度。一個向量場 的散度是一個標量場(向量場的每一點有一個自己的散度),寫作 (這個寫法也很直白,因為點乘就是標量)。如果一個點的散度為正,那麼在這一點上 有向外發散的趨勢;如果為負,那麼在這一點上 有向內收斂的趨勢。 旋

dsPIC33EBootloaderBootloader的介紹與Flash結構

對於嵌入式開發而言,Bootloader幾乎與作業系統同等重要,它可以讓我們擺脫MCU官方工具,定製自己的燒錄工具,不僅提高產品辨識度,同時也大大減少了對外引腳數量(例如相容通訊的Uart或CAN等,而不需要另外接JTAG)。 要開發Bootloader,相對於普通程式,是有一定難度的,這其

訊息佇列MSMQ——微軟訊息佇列簡介及安裝

一、前言       從這篇部落格開始小編就從一個簡單的例項來展示一下訊息佇列中MSMQ的基本使用方法,展示一下他對訊息的增刪改查,訊息佇列有很多種樣式,做.NET開發的程式猿,最容易安裝的就是MSM

Ubuntu配置從安裝雙系統到美化

目錄: 安裝Ubuntu16.04: 必備軟體安裝 2.1 Shadowsocks-Qt5: 2.2 搜狗輸入法安裝: 2.3 PDF閱讀器: 2.4 Chrome瀏覽器: 2.5 VScode編輯器: Ubuntu美化 安裝主題:flatabulous-th

HTTPFiddler

1.為什麼是Fiddler? 抓包工具有很多,小到最常用的web除錯工具firebug,達到通用的強大的抓包工具wireshark.為什麼使用fiddler?原因如下: a.Firebug雖然可以抓包,但是對於分析http請求的詳細資訊,不夠強大。模擬http請求的功能也不

Unicdoe真正的完整碼錶對照表

-------------------------------------------歡迎檢視字元編碼【專欄】-----------------------------漢字編碼之GBK編碼【點選】