2011-02-27 2 views
0

내 프로젝트를 Eclipse CDT의 Boost 및 OpenCV 라이브러리와 정적으로 연결하려고합니다. 필자는 어떤 라이브러리를 추가하여 링커에 추가해야하는지 Google에서 검색했습니다. 그러나 오류 메시지는 여전히 존재합니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?Eclipse CDR로 Boost 및 OpenCV 라이브러리의 정적 링크. 오류

make all 
Building target: CalibServer 
Invoking: GCC C++ Linker 
g++ -L/usr/local/lib64 -static -o"CalibServer" ./src/CalibServer.o -lhighgui -lz -lrt -ltiff -ljpeg -lpng12 -lpthread -lcv -lboost_iostreams -lboost_date_time -lboost_regex -lcxcore -lcvaux -lboost_thread -lboost_filesystem 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(loadsave.o): In function `cv::imdecode_(cv::Mat const&, int, int, cv::Mat*)': 
(.text._ZN2cvL9imdecode_ERKNS_3MatEiiPS0_+0x1db): warning: the use of `tmpnam' is dangerous, better use `mkstemp' 
./src/CalibServer.o: In function `__static_initialization_and_destruction_0': 
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::get_system_category()' 
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()' 
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()' 
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::get_generic_category()' 
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::get_system_category()' 
./src/CalibServer.o: In function `error_code': 
/usr/include/boost/system/error_code.hpp:315: undefined reference to `boost::system::get_system_category()' 
./src/CalibServer.o: In function `boost::asio::error::get_system_category()': 
/usr/include/boost/asio/error.hpp:218: undefined reference to `boost::system::get_system_category()' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `global constructors keyed to _ZN2cv13Jpeg2KDecoderC2Ev': 
(.text._GLOBAL__I__ZN2cv13Jpeg2KDecoderC2Ev+0x5): undefined reference to `jas_init' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::JasperInitializer::~JasperInitializer()': 
(.text._ZN2cv17JasperInitializerD1Ev[cv::JasperInitializer::~JasperInitializer()]+0x1): undefined reference to `jas_cleanup' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent16u(void*, cv::Mat const&)': 
(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x3d): undefined reference to `jas_matrix_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent16u(void*, cv::Mat const&)': 
(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x10a): undefined reference to `jas_image_writecmpt' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent16u(void*, cv::Mat const&)': 
(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x136): undefined reference to `jas_matrix_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent8u(void*, cv::Mat const&)': 
(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE+0x3d): undefined reference to `jas_matrix_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent8u(void*, cv::Mat const&)': 
(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE+0x10a): undefined reference to `jas_image_writecmpt' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent8u(void*, cv::Mat const&)': 
(.text._ZN2cv13Jpeg2KEncoder16writeComponent8uEPvRKNS_3MatE+0x136): undefined reference to `jas_matrix_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::close()': 
(.text._ZN2cv13Jpeg2KDecoder5closeEv+0xe): undefined reference to `jas_stream_close' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::close()': 
(.text._ZN2cv13Jpeg2KDecoder5closeEv+0x24): undefined reference to `jas_image_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x87): undefined reference to `jas_image_getcmptbytype' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x9b): undefined reference to `jas_image_getcmptbytype' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0xab): undefined reference to `jas_image_getcmptbytype' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x12f): undefined reference to `jas_matrix_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x1ad): undefined reference to `jas_matrix_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x1d4): undefined reference to `jas_image_readcmpt' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x267): undefined reference to `jas_stream_close' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x27d): undefined reference to `jas_image_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x2b8): undefined reference to `jas_cmprof_createfromclrspc' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x2d4): undefined reference to `jas_image_chclrspc' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x2e7): undefined reference to `jas_image_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x2f3): undefined reference to `jas_cmprof_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x305): undefined reference to `jas_image_getcmptbytype' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readData(cv::Mat&)': 
(.text._ZN2cv13Jpeg2KDecoder8readDataERNS_3MatE+0x35a): undefined reference to `jas_cmprof_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readHeader()': 
(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0xe): undefined reference to `jas_stream_close' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readHeader()': 
(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0x24): undefined reference to `jas_image_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readHeader()': 
(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0x3a): undefined reference to `jas_stream_fopen' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readHeader()': 
(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0x56): undefined reference to `jas_image_decode' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readHeader()': 
(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0xfb): undefined reference to `jas_stream_close' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KDecoder::readHeader()': 
(.text._ZN2cv13Jpeg2KDecoder10readHeaderEv+0x113): undefined reference to `jas_image_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0xc2): undefined reference to `jas_image_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x13e): undefined reference to `jas_matrix_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x20a): undefined reference to `jas_image_writecmpt' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x23b): undefined reference to `jas_matrix_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x24e): undefined reference to `jas_stream_fopen' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x260): undefined reference to `jas_image_strtofmt' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x274): undefined reference to `jas_image_encode' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x282): undefined reference to `jas_stream_close' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x28c): undefined reference to `jas_image_destroy' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x2e8): undefined reference to `jas_matrix_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::write(cv::Mat const&, std::vector<int, std::allocator<int> > const&)': 
(.text._ZN2cv13Jpeg2KEncoder5writeERKNS_3MatERKSt6vectorIiSaIiEE+0x3aa): undefined reference to `jas_image_writecmpt' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogVSetField': 
(.text+0x8f7): undefined reference to `deflateParams' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogCleanup': 
(.text+0xa1c): undefined reference to `inflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogCleanup': 
(.text+0xa2d): undefined reference to `deflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogPostEncode': 
(.text+0xa81): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogEncode': 
(.text+0x11ec): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogPreEncode': 
(.text+0x25af): undefined reference to `deflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogSetupEncode': 
(.text+0x268b): undefined reference to `deflateInit_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogDecode': 
(.text+0x2823): undefined reference to `inflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogDecode': 
(.text+0x2e9d): undefined reference to `inflateSync' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogPreDecode': 
(.text+0x3a0c): undefined reference to `inflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_pixarlog.o): In function `PixarLogSetupDecode': 
(.text+0x3af5): undefined reference to `inflateInit_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPCleanup': 
(.text+0x285): undefined reference to `inflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPCleanup': 
(.text+0x29d): undefined reference to `deflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPEncode': 
(.text+0x318): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPPostEncode': 
(.text+0x401): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPPreEncode': 
(.text+0x4e3): undefined reference to `deflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPSetupEncode': 
(.text+0x557): undefined reference to `deflateInit_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPSetupEncode': 
(.text+0x584): undefined reference to `inflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPDecode': 
(.text+0x61e): undefined reference to `inflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPDecode': 
(.text+0x67e): undefined reference to `inflateSync' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPPreDecode': 
(.text+0x778): undefined reference to `inflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPSetupDecode': 
(.text+0x7f1): undefined reference to `inflateInit_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPSetupDecode': 
(.text+0x824): undefined reference to `deflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libtiff.a(tif_zip.o): In function `ZIPVSetField': 
(.text+0x8f7): undefined reference to `deflateParams' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-png.o): In function `png_calculate_crc': 
(.text+0x1229): undefined reference to `crc32' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-png.o): In function `png_reset_crc': 
(.text+0x125b): undefined reference to `crc32' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-png.o): In function `png_reset_zstream': 
(.text+0x7dd): undefined reference to `inflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_destroy': 
(.text+0x23e): undefined reference to `inflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_row': 
(.text+0xa09): undefined reference to `inflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngread.o): In function `png_read_init_3': 
(.text+0x199e): undefined reference to `inflateInit_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngread.o): In function `png_create_read_struct_2': 
(.text+0x1e84): undefined reference to `inflateInit_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwrite.o): In function `png_write_destroy': 
(.text+0x763): undefined reference to `deflateEnd' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwrite.o): In function `png_write_flush': 
(.text+0x9e6): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_inflate': 
(.text+0x11f8): undefined reference to `inflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_inflate': 
(.text+0x123c): undefined reference to `inflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_read_finish_row': 
(.text+0x18b9): undefined reference to `inflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngrutil.o): In function `png_read_finish_row': 
(.text+0x1a34): undefined reference to `inflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_text_compress': 
(.text+0x6f4): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_text_compress': 
(.text+0x7ba): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_write_compressed_data_out': 
(.text+0xe54): undefined reference to `deflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_write_finish_row': 
(.text+0x2a29): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_write_finish_row': 
(.text+0x2a92): undefined reference to `deflateReset' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_write_filtered_row': 
(.text+0x2c92): undefined reference to `deflate' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libpng12.a(libpng12_la-pngwutil.o): In function `png_write_IHDR': 
(.text+0x3ec8): undefined reference to `deflateInit2_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxsystem.o): In function `cv::getTickCount()': 
(.text._ZN2cv12getTickCountEv+0xd): undefined reference to `clock_gettime' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxsystem.o): In function `cvGetTickCount': 
(.text.cvGetTickCount+0xd): undefined reference to `clock_gettime' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::determinant(cv::Mat const&)': 
(.text._ZN2cv11determinantERKNS_3MatE+0x38a): undefined reference to `dgetrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::determinant(cv::Mat const&)': 
(.text._ZN2cv11determinantERKNS_3MatE+0x569): undefined reference to `sgetrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::eigen(cv::Mat const&, cv::Mat&, cv::Mat&, bool, int, int)': 
(.text._ZN2cvL5eigenERKNS_3MatERS0_S3_bii+0x667): undefined reference to `dsyevr_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::eigen(cv::Mat const&, cv::Mat&, cv::Mat&, bool, int, int)': 
(.text._ZN2cvL5eigenERKNS_3MatERS0_S3_bii+0x915): undefined reference to `dsyevr_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::eigen(cv::Mat const&, cv::Mat&, cv::Mat&, bool, int, int)': 
(.text._ZN2cvL5eigenERKNS_3MatERS0_S3_bii+0xbf6): undefined reference to `ssyevr_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::eigen(cv::Mat const&, cv::Mat&, cv::Mat&, bool, int, int)': 
(.text._ZN2cvL5eigenERKNS_3MatERS0_S3_bii+0xe7e): undefined reference to `ssyevr_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::SVD::operator()(cv::Mat const&, int)': 
(.text._ZN2cv3SVDclERKNS_3MatEi+0x339): undefined reference to `dgesdd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::SVD::operator()(cv::Mat const&, int)': 
(.text._ZN2cv3SVDclERKNS_3MatEi+0x571): undefined reference to `dgesdd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::SVD::operator()(cv::Mat const&, int)': 
(.text._ZN2cv3SVDclERKNS_3MatEi+0x7dd): undefined reference to `sgesdd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::SVD::operator()(cv::Mat const&, int)': 
(.text._ZN2cv3SVDclERKNS_3MatEi+0xc30): undefined reference to `sgesdd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0x771): undefined reference to `dgetri_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0x811): undefined reference to `dgetrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xa71): undefined reference to `dpotrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xaf3): undefined reference to `sgetri_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xe80): undefined reference to `sgetrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xec4): undefined reference to `sgetri_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xf35): undefined reference to `dgetri_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xf6c): undefined reference to `spotrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xf92): undefined reference to `spotri_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::invert(cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv6invertERKNS_3MatERS0_i+0xfac): undefined reference to `dpotri_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0xc04): undefined reference to `dgelsd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0xc95): undefined reference to `spotrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x131e): undefined reference to `dgelsd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1717): undefined reference to `dgels_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x179b): undefined reference to `dgels_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x180b): undefined reference to `dgesv_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1854): undefined reference to `dpotrf_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x189c): undefined reference to `dpotrs_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1950): undefined reference to `sgelsd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x19f9): undefined reference to `sgelsd_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1afe): undefined reference to `sgels_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1b82): undefined reference to `sgels_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1d27): undefined reference to `spotrs_' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libcxcore.a(cxlapack.o): In function `cv::solve(cv::Mat const&, cv::Mat const&, cv::Mat&, int)': 
(.text._ZN2cv5solveERKNS_3MatES2_RS0_i+0x1d72): undefined reference to `sgesv_' 
collect2: ld returned 1 exit status 
make: *** [CalibServer] Error 1 
+0

부스트 라이브러리 목록의 끝에 'boost_system'을 사용해 보셨습니까? – Francois

답변

0

이 링커 오류 :

/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::get_system_category()' 
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()' 
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()' 
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::get_generic_category()' 
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::get_system_category()' 

당신이 Boost.System 라이브러리에 링크 할 필요가 의미한다. 나는 이것이 내가 내 링크 라인에 다음을 추가 Eclipse를 사용하지만, GCC를 사용하여이 작업을 수행하는 방법을 알고하지 않습니다

-Wl,-rpath,/path/to/boost -L/path/to/boost -lboost_system 
당신은 아마 당신이 이미

에 대한이 같은 -lboost_system 링크 이클립스 지시해야

위에서 언급 한 바와 같이

-lboost_iostreams -lboost_date_time -lboost_regex -lboost_thread -lboost_filesystem 
2

오류 : 당신이 boost_system 라이브러리를 연결 "-lboost_sys을 추가 링커를 이야기하지 않았기 때문에

/usr/include/boost/system/error_code.hpp:208: undefined reference to boost::system::get_system_category()' 

... 입니다 tem "를 링커에게 보냅니다.

오류 : 당신은 "재스퍼"라이브러리 설치 여부를 제대로 설치하지 않았기 때문에

(.text._ZN2cv13Jpeg2KEncoder17writeComponent16uEPvRKNS_3MatE+0x3d): undefined reference to `jas_matrix_create' 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libhighgui.a(grfmt_jpeg2000.o): In function `cv::Jpeg2KEncoder::writeComponent16u(void*, cv::Mat const&)': 

... 은 링커를 설치하려고 만들어 연결하는 lib 디렉토리를 찾을 수 있다는 것입니다 필요한 경우 링커가 -L/path/to/your/jasperlib/옵션을 링커에 추가하고 "-l"옵션을 잊지 않도록 링커가 찾을 수 있는지 확인하십시오.

링커가 "zlib"및 "BLAS/LAPACK"라이브러리 없이는 작동하지 않으므로 다음과 같은 오류의 이유는 비슷합니다.

관련 문제