Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `ifm3d::DEFAULT_XMLRPC_PORT' #100

Closed
pedghz opened this issue Oct 18, 2018 · 4 comments
Closed

undefined reference to `ifm3d::DEFAULT_XMLRPC_PORT' #100

pedghz opened this issue Oct 18, 2018 · 4 comments

Comments

@pedghz
Copy link

pedghz commented Oct 18, 2018

I am trying the code mentioned in the basic_usage page and I get the following errors:

Anye one know what is wrong here?

CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'main':
main.cpp:(.text+0x143): undefined reference to 'ifm3d::DEFAULT_XMLRPC_PORT'
main.cpp:(.text+0x152): undefined reference to 'ifm3d::DEFAULT_PASSWORD[abi:cxx11]'
main.cpp:(.text+0x157): undefined reference to 'ifm3d::DEFAULT_IP[abi:cxx11]'
main.cpp:(.text+0x15f): undefined reference to 'ifm3d::Camera::MakeShared(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned short, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
main.cpp:(.text+0x296): undefined reference to 'ifm3d::ImageBuffer::AmplitudeImage()'
main.cpp:(.text+0x2df): undefined reference to 'ifm3d::ImageBuffer::XYZImage()'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'cv::Mat::~Mat()':
main.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to 'cv::fastFree(void*)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'cv::Mat::operator=(cv::Mat const&)':
main.cpp:(.text.ZN2cv3MataSERKS0[ZN2cv3MataSERKS0]+0x111): undefined reference to 'cv::Mat::copySize(cv::Mat const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'cv::Mat::release()':
main.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x47): undefined reference to 'cv::Mat::deallocate()'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'bool ifm3d::FrameGrabber::WaitForFrameifm3d::ImageBuffer(ifm3d::ByteBufferifm3d::ImageBuffer, long, bool, bool)':
main.cpp:(.text.ZN5ifm3d12FrameGrabber12WaitForFrameINS_11ImageBufferEEEbPNS_10ByteBufferIT_EElbb[ZN5ifm3d12FrameGrabber12WaitForFrameINS_11ImageBufferEEEbPNS_10ByteBufferIT_EElbb]+0x65): undefined reference to 'ifm3d::FrameGrabber::WaitForFrame(long, std::function<void (std::vector<unsigned char, std::allocator >&)>)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o:(.data.ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvE8vlocal
[ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvE8vlocal
]+0x0): undefined reference to 'google::kLogSiteUninitialized'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'ifm3d::error_t::~error_t()':
main.cpp:(.text._ZN5ifm3d7error_tD2Ev[_ZN5ifm3d7error_tD5Ev]+0xd): undefined reference to 'vtable for ifm3d::error_t'
CMakeFiles/ifm_o3d303.dir/main.cpp.o:(.data._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvE8vlocal___0[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvE8vlocal___0]+0x0): undefined reference to 'google::kLogSiteUninitialized'
CMakeFiles/ifm_o3d303.dir/main.cpp.o:(.data._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvE8vlocal___1[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvE8vlocal___1]+0x0): undefined reference to 'google::kLogSiteUninitialized'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'ifm3d::ByteBufferifm3d::ImageBuffer::Organize()::{lambda(ifm3d::image_chunk, unsigned int, unsigned long)#1}::operator()(ifm3d::image_chunk, unsigned int, unsigned long) const':
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x2bb): undefined reference to 'google::LogMessage::LogMessage(char const
, int, int)'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x2c7): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x2f0): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x303): undefined reference to 'IFM3D_PIXEL_FORMAT_ERROR'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x30d): undefined reference to 'ifm3d::error_t::error_t(int)'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x317): undefined reference to 'typeinfo for ifm3d::error_t'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUlNS_11image_chunkEjmE_clES3_jm]+0x340): undefined reference to 'google::LogMessage::~LogMessage()'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'ifm3d::ByteBufferifm3d::ImageBuffer::Organize()::{lambda(unsigned int, unsigned long, unsigned long, unsigned long)#2}::operator()(unsigned int, unsigned long, unsigned long, unsigned long) const':
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0xfd): undefined reference to 'google::LogMessage::LogMessage(char const*, int, int)'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0x109): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0x132): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0x145): undefined reference to 'IFM3D_PIXEL_FORMAT_ERROR'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0x14f): undefined reference to 'ifm3d::error_t::error_t(int)'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0x159): undefined reference to 'typeinfo for ifm3d::error_t'
main.cpp:(.text._ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm[_ZZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEvENKUljmmmE0_clEjmmm]+0x182): undefined reference to 'google::LogMessage::~LogMessage()'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'ifm3d::ByteBufferifm3d::ImageBuffer::Organize()':
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xed): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x108): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x126): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x141): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x14f): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x16a): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x178): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x193): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1bf): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1e9): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x213): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x221): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x23c): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x24a): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x265): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x273): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x28e): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x29c): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x2b7): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x2c5): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x2e0): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x2ee): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x309): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x317): undefined reference to 'ifm3d::IMG_BUFF_START'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x332): undefined reference to 'ifm3d::get_chunk_index(std::vector<unsigned char, std::allocator > const&, ifm3d::image_chunk, unsigned long)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x33f): undefined reference to 'IFM3D_PROTO_DEBUG'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x363): undefined reference to 'google::kLogSiteUninitialized'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x377): undefined reference to 'fLI::FLAGS_v'
main.cpp:(.text.ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x381): undefined reference to 'google::InitVLOG3(int**, int*, char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x3bd): undefined reference to 'google::LogMessage::LogMessage(char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x3d1): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x588): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x5b6): undefined reference to 'google::LogMessage::LogMessage(char const*, int, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x5c2): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x5db): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x5ee): undefined reference to 'IFM3D_IMG_CHUNK_NOT_FOUND'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x5f8): undefined reference to 'ifm3d::error_t::error_t(int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x602): undefined reference to 'typeinfo for ifm3d::error_t'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xa94): undefined reference to 'IFM3D_PROTO_DEBUG'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xab8): undefined reference to 'google::kLogSiteUninitialized'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xacc): undefined reference to 'fLI::FLAGS_v'
main.cpp:(.text.ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xad6): undefined reference to 'google::InitVLOG3(int**, int*, char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xb12): undefined reference to 'google::LogMessage::LogMessage(char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xb26): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xca7): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xd27): undefined reference to 'IFM3D_PROTO_DEBUG'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xd4b): undefined reference to 'google::kLogSiteUninitialized'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xd5f): undefined reference to 'fLI::FLAGS_v'
main.cpp:(.text.ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xd69): undefined reference to 'google::InitVLOG3(int**, int*, char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xda5): undefined reference to 'google::LogMessage::LogMessage(char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xdb9): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0xe5a): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x10a6): undefined reference to 'google::LogMessage::LogMessage(char const*, int, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x10b2): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x10de): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x10f1): undefined reference to 'IFM3D_PIXEL_FORMAT_ERROR'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x10fb): undefined reference to 'ifm3d::error_t::error_t(int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1105): undefined reference to 'typeinfo for ifm3d::error_t'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1514): undefined reference to 'google::LogMessage::LogMessage(char const*, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1520): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x154f): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x157e): undefined reference to 'google::LogMessage::LogMessage(char const*, int, int)'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x158a): undefined reference to 'google::LogMessage::stream()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x15a3): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x15d6): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x15f3): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x162e): undefined reference to 'google::LogMessage::~LogMessage()'
main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1656): undefined reference to 'google::LogMessage::~LogMessage()'
CMakeFiles/ifm_o3d303.dir/main.cpp.o:main.cpp:(.text._ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv[_ZN5ifm3d10ByteBufferINS_11ImageBufferEE8OrganizeEv]+0x1673): more undefined references to 'google::LogMessage::~LogMessage()' follow
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer8ImCreateIhEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer8ImCreateIhEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE]+0x47): undefined reference to 'ifm3d::ImageBuffer::_ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer8ImCreateIaEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer8ImCreateIaEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE]+0x47): undefined reference to 'ifm3d::ImageBuffer::_ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer8ImCreateItEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer8ImCreateItEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE]+0x47): undefined reference to 'ifm3d::ImageBuffer::_ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer8ImCreateIsEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer8ImCreateIsEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE]+0x47): undefined reference to 'ifm3d::ImageBuffer::_ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer8ImCreateIiEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer8ImCreateIiEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE]+0x47): undefined reference to 'ifm3d::ImageBuffer::_ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o:main.cpp:(.text._ZN5ifm3d11ImageBuffer8ImCreateIfEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer8ImCreateIfEEvNS_11image_chunkEjmjjijRKSt6vectorIhSaIhEE]+0x47): more undefined references to 'ifm3d::ImageBuffer::_ImCreate(ifm3d::image_chunk, unsigned int, unsigned long, unsigned int, unsigned int, int, unsigned int, std::vector<unsigned char, std::allocator > const&)' follow
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::CloudCreate(unsigned int, unsigned long, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer11CloudCreateIsEEvjmmmjjjRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer11CloudCreateIsEEvjmmmjjjRKSt6vectorIhSaIhEE]+0x49): undefined reference to 'ifm3d::ImageBuffer::_CloudCreate(unsigned int, unsigned long, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void ifm3d::ImageBuffer::CloudCreate(unsigned int, unsigned long, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, std::vector<unsigned char, std::allocator > const&)':
main.cpp:(.text._ZN5ifm3d11ImageBuffer11CloudCreateIfEEvjmmmjjjRKSt6vectorIhSaIhEE[_ZN5ifm3d11ImageBuffer11CloudCreateIfEEvjmmmjjjRKSt6vectorIhSaIhEE]+0x49): undefined reference to 'ifm3d::ImageBuffer::_CloudCreate(unsigned int, unsigned long, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, std::vector<unsigned char, std::allocator > const&)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void __gnu_cxx::new_allocatorifm3d::FrameGrabber::construct<ifm3d::FrameGrabber, std::shared_ptrifm3d::Camera&>(ifm3d::FrameGrabber*, std::shared_ptrifm3d::Camera&)':
main.cpp:(.text.ZN9__gnu_cxx13new_allocatorIN5ifm3d12FrameGrabberEE9constructIS2_JRSt10shared_ptrINS1_6CameraEEEEEvPT_DpOT0[ZN9__gnu_cxx13new_allocatorIN5ifm3d12FrameGrabberEE9constructIS2_JRSt10shared_ptrINS1_6CameraEEEEEvPT_DpOT0]+0x66): undefined reference to 'ifm3d::DEFAULT_SCHEMA_MASK'
main.cpp:(.text.ZN9__gnu_cxx13new_allocatorIN5ifm3d12FrameGrabberEE9constructIS2_JRSt10shared_ptrINS1_6CameraEEEEEvPT_DpOT0[ZN9__gnu_cxx13new_allocatorIN5ifm3d12FrameGrabberEE9constructIS2_JRSt10shared_ptrINS1_6CameraEEEEEvPT_DpOT0]+0x76): undefined reference to 'ifm3d::FrameGrabber::FrameGrabber(std::shared_ptrifm3d::Camera, unsigned short)'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void __gnu_cxx::new_allocatorifm3d::ImageBuffer::constructifm3d::ImageBuffer(ifm3d::ImageBuffer*)':
main.cpp:(.text.ZN9__gnu_cxx13new_allocatorIN5ifm3d11ImageBufferEE9constructIS2_JEEEvPT_DpOT0[ZN9__gnu_cxx13new_allocatorIN5ifm3d11ImageBufferEE9constructIS2_JEEEvPT_DpOT0]+0x32): undefined reference to 'ifm3d::ImageBuffer::ImageBuffer()'
CMakeFiles/ifm_o3d303.dir/main.cpp.o: In function 'void __gnu_cxx::new_allocatorifm3d::ImageBuffer::destroyifm3d::ImageBuffer(ifm3d::ImageBuffer*)':
main.cpp:(.text.ZN9__gnu_cxx13new_allocatorIN5ifm3d11ImageBufferEE7destroyIS2_EEvPT[ZN9__gnu_cxx13new_allocatorIN5ifm3d11ImageBufferEE7destroyIS2_EEvPT]+0x18): undefined reference to 'ifm3d::ImageBuffer::~ImageBuffer()'
collect2: error: ld returned 1 exit status
make[2]: *** [ifm_o3d303] Error 1
make[1]: *** [CMakeFiles/ifm_o3d303.dir/all] Error 2
make: *** [all] Error 2
13:50:27: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project ifm_o3d303 (kit: Desktop)
When executing step "Make"
13:50:27: Elapsed time: 00:03.

@graugans
Copy link
Member

Hello @pedghz this looks like you are trying to compile the code but do not link against the ifm3d lib. Please take a look at the https://github.com/lovepark/ifm3d-examples repo for details how to get started.

@pedghz
Copy link
Author

pedghz commented Oct 18, 2018

@graugans You are most probably right. I tried to build that repo as well now and I get a related error there as well. Here is the result from cmake..:

Can you also help for this?

cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ifm3d found component: camera
-- ifm3d found component: framegrabber
-- ifm3d found component: image
CMake Warning at /usr/lib/cmake/ifm3d-0.10.0/ifm3d-config.cmake:44 (message):
ifm3d could not find component: pcicclient
Call Stack (most recent call first):
CMakeLists.txt:20 (find_package)

CMake Error at CMakeLists.txt:20 (find_package):
Found package configuration file:

/usr/lib/cmake/ifm3d-0.10.0/ifm3d-config.cmake

but it set ifm3d_FOUND to FALSE so package "ifm3d" is considered to be NOT
FOUND.

@tpanzarella
Copy link
Contributor

Please see this issue.

@pedghz pedghz closed this as completed Oct 18, 2018
@pedghz pedghz reopened this Oct 18, 2018
@pedghz pedghz closed this as completed Oct 18, 2018
@graugans
Copy link
Member

@tpanzarella I guess we also can close #97 because it is a duplicate of this and finally feedback on this PR would be nice to avoid those issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants