{"action":"created","issue":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/195","labels_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/195/comments","events_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/195/events","html_url":"https://github.com/OpenKinect/libfreenect2/issues/195","id":65207723,"number":195,"title":"Unresolved External Symbols When Building with Visual Studio","user":{"login":"zweicoder","id":3684550,"avatar_url":"https://avatars.githubusercontent.com/u/3684550?v=3","gravatar_id":"","url":"https://api.github.com/users/zweicoder","html_url":"https://github.com/zweicoder","followers_url":"https://api.github.com/users/zweicoder/followers","following_url":"https://api.github.com/users/zweicoder/following{/other_user}","gists_url":"https://api.github.com/users/zweicoder/gists{/gist_id}","starred_url":"https://api.github.com/users/zweicoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zweicoder/subscriptions","organizations_url":"https://api.github.com/users/zweicoder/orgs","repos_url":"https://api.github.com/users/zweicoder/repos","events_url":"https://api.github.com/users/zweicoder/events{/privacy}","received_events_url":"https://api.github.com/users/zweicoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/labels/build","name":"build","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-30T13:08:19Z","updated_at":"2015-04-05T04:43:28Z","closed_at":"2015-04-04T04:35:18Z","body":"New to libfreenect2/C++, am trying to build libfreenect2 following instructions [here](https://github.com/OpenKinect/libfreenect2/issues/105).\r\n\r\nCurrently stuck as I'm getting these errors when building freenect2. Is there anything I'm missing?\r\n```\r\nError\t6\terror LNK2019: unresolved external symbol _tjDecompress2 referenced in function \"protected: virtual void __thiscall libfreenect2::TurboJpegRgbPacketProcessor::process(struct libfreenect2::RgbPacket const &)\" (?process@TurboJpegRgbPacketProcessor@libfreenect2@@MAEXABURgbPacket@2@@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\turbo_jpeg_rgb_packet_processor.obj\tfreenect2\r\nError\t25\terror LNK2019: unresolved external symbol _libusb_unref_device@4 referenced in function \"public: void __thiscall libfreenect2::Freenect2Impl::clearDeviceEnumeration(void)\" (?clearDeviceEnumeration@Freenect2Impl@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t2\terror LNK2019: unresolved external symbol _libusb_submit_transfer@4 referenced in function \"public: void __thiscall libfreenect2::usb::TransferPool::submit(unsigned int)\" (?submit@TransferPool@usb@libfreenect2@@QAEXI@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\transfer_pool.obj\tfreenect2\r\nError\t18\terror LNK2019: unresolved external symbol _libusb_set_interface_alt_setting@12 referenced in function \"public: enum libfreenect2::protocol::UsbControl::ResultCode __thiscall libfreenect2::protocol::UsbControl::setIrInterfaceState(enum libfreenect2::protocol::UsbControl::State)\" (?setIrInterfaceState@UsbControl@protocol@libfreenect2@@QAE?AW4ResultCode@123@W4State@123@@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t15\terror LNK2019: unresolved external symbol _libusb_set_configuration@8 referenced in function \"public: enum libfreenect2::protocol::UsbControl::ResultCode __thiscall libfreenect2::protocol::UsbControl::setConfiguration(void)\" (?setConfiguration@UsbControl@protocol@libfreenect2@@QAE?AW4ResultCode@123@XZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t31\terror LNK2019: unresolved external symbol _libusb_reset_device@4 referenced in function \"protected: class libfreenect2::Freenect2Device * __thiscall libfreenect2::Freenect2::openDevice(int,class libfreenect2::PacketPipeline const *,bool)\" (?openDevice@Freenect2@libfreenect2@@IAEPAVFreenect2Device@2@HPBVPacketPipeline@2@_N@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t17\terror LNK2019: unresolved external symbol _libusb_release_interface@8 referenced in function \"public: enum libfreenect2::protocol::UsbControl::ResultCode __thiscall libfreenect2::protocol::UsbControl::releaseInterfaces(void)\" (?releaseInterfaces@UsbControl@protocol@libfreenect2@@QAE?AW4ResultCode@123@XZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t29\terror LNK2019: unresolved external symbol _libusb_open@8 referenced in function \"protected: class libfreenect2::Freenect2Device * __thiscall libfreenect2::Freenect2::openDevice(int,class libfreenect2::PacketPipeline const *,bool)\" (?openDevice@Freenect2@libfreenect2@@IAEPAVFreenect2Device@2@HPBVPacketPipeline@2@_N@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t21\terror LNK2019: unresolved external symbol _libusb_init@4 referenced in function \"public: __thiscall libfreenect2::Freenect2Impl::Freenect2Impl(void *)\" (??0Freenect2Impl@libfreenect2@@QAE@PAX@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t5\terror LNK2019: unresolved external symbol _libusb_handle_events_timeout_completed@12 referenced in function \"private: void __thiscall libfreenect2::usb::EventLoop::execute(void)\" (?execute@EventLoop@usb@libfreenect2@@AAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\event_loop.obj\tfreenect2\r\nError\t32\terror LNK2019: unresolved external symbol _libusb_get_string_descriptor_ascii@16 referenced in function \"public: void __thiscall libfreenect2::Freenect2Impl::enumerateDevices(void)\" (?enumerateDevices@Freenect2Impl@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t12\terror LNK2019: unresolved external symbol _libusb_get_ss_endpoint_companion_descriptor@12 referenced in function \"int __cdecl libfreenect2::protocol::libusb_ext::get_max_iso_packet_size(struct libusb_device *,int,int,int)\" (?get_max_iso_packet_size@libusb_ext@protocol@libfreenect2@@YAHPAUlibusb_device@@HHH@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t23\terror LNK2019: unresolved external symbol _libusb_get_device_list@8 referenced in function \"public: void __thiscall libfreenect2::Freenect2Impl::enumerateDevices(void)\" (?enumerateDevices@Freenect2Impl@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t26\terror LNK2019: unresolved external symbol _libusb_get_device_descriptor@8 referenced in function \"public: void __thiscall libfreenect2::Freenect2Impl::enumerateDevices(void)\" (?enumerateDevices@Freenect2Impl@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t28\terror LNK2019: unresolved external symbol _libusb_get_device_address@4 referenced in function \"public: bool __thiscall libfreenect2::Freenect2DeviceImpl::isSameUsbDevice(struct libusb_device *)\" (?isSameUsbDevice@Freenect2DeviceImpl@libfreenect2@@QAE_NPAUlibusb_device@@@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t14\terror LNK2019: unresolved external symbol _libusb_get_device@4 referenced in function \"public: enum libfreenect2::protocol::UsbControl::ResultCode __thiscall libfreenect2::protocol::UsbControl::getIrMaxIsoPacketSize(int &)\" (?getIrMaxIsoPacketSize@UsbControl@protocol@libfreenect2@@QAE?AW4ResultCode@123@AAH@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t9\terror LNK2019: unresolved external symbol _libusb_get_configuration@8 referenced in function \"public: enum libfreenect2::protocol::UsbControl::ResultCode __thiscall libfreenect2::protocol::UsbControl::setConfiguration(void)\" (?setConfiguration@UsbControl@protocol@libfreenect2@@QAE?AW4ResultCode@123@XZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t10\terror LNK2019: unresolved external symbol _libusb_get_config_descriptor_by_value@12 referenced in function \"int __cdecl libfreenect2::protocol::libusb_ext::get_max_iso_packet_size(struct libusb_device *,int,int,int)\" (?get_max_iso_packet_size@libusb_ext@protocol@libfreenect2@@YAHPAUlibusb_device@@HHH@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t27\terror LNK2019: unresolved external symbol _libusb_get_bus_number@4 referenced in function \"public: bool __thiscall libfreenect2::Freenect2DeviceImpl::isSameUsbDevice(struct libusb_device *)\" (?isSameUsbDevice@Freenect2DeviceImpl@libfreenect2@@QAE_NPAUlibusb_device@@@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t4\terror LNK2019: unresolved external symbol _libusb_free_transfer@4 referenced in function \"public: void __thiscall libfreenect2::usb::TransferPool::deallocate(void)\" (?deallocate@TransferPool@usb@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\transfer_pool.obj\tfreenect2\r\nError\t13\terror LNK2019: unresolved external symbol _libusb_free_ss_endpoint_companion_descriptor@4 referenced in function \"int __cdecl libfreenect2::protocol::libusb_ext::get_max_iso_packet_size(struct libusb_device *,int,int,int)\" (?get_max_iso_packet_size@libusb_ext@protocol@libfreenect2@@YAHPAUlibusb_device@@HHH@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t24\terror LNK2019: unresolved external symbol _libusb_free_device_list@8 referenced in function \"public: void __thiscall libfreenect2::Freenect2Impl::enumerateDevices(void)\" (?enumerateDevices@Freenect2Impl@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t11\terror LNK2019: unresolved external symbol _libusb_free_config_descriptor@4 referenced in function \"int __cdecl libfreenect2::protocol::libusb_ext::get_max_iso_packet_size(struct libusb_device *,int,int,int)\" (?get_max_iso_packet_size@libusb_ext@protocol@libfreenect2@@YAHPAUlibusb_device@@HHH@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t22\terror LNK2019: unresolved external symbol _libusb_exit@4 referenced in function \"public: __thiscall libfreenect2::Freenect2Impl::~Freenect2Impl(void)\" (??1Freenect2Impl@libfreenect2@@QAE@XZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t7\terror LNK2019: unresolved external symbol _libusb_error_name@4 referenced in function \"enum libfreenect2::protocol::UsbControl::ResultCode __cdecl libfreenect2::protocol::checkLibusbResult(char const *,int)\" (?checkLibusbResult@protocol@libfreenect2@@YA?AW4ResultCode@UsbControl@12@PBDH@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t19\terror LNK2019: unresolved external symbol _libusb_control_transfer@32 referenced in function \"int __cdecl libfreenect2::protocol::libusb_ext::set_isochronous_delay(struct libusb_device_handle *,int)\" (?set_isochronous_delay@libusb_ext@protocol@libfreenect2@@YAHPAUlibusb_device_handle@@H@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t30\terror LNK2019: unresolved external symbol _libusb_close@4 referenced in function \"protected: class libfreenect2::Freenect2Device * __thiscall libfreenect2::Freenect2::openDevice(int,class libfreenect2::PacketPipeline const *,bool)\" (?openDevice@Freenect2@libfreenect2@@IAEPAVFreenect2Device@2@HPBVPacketPipeline@2@_N@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\libfreenect2.obj\tfreenect2\r\nError\t16\terror LNK2019: unresolved external symbol _libusb_claim_interface@8 referenced in function \"public: enum libfreenect2::protocol::UsbControl::ResultCode __thiscall libfreenect2::protocol::UsbControl::claimInterfaces(void)\" (?claimInterfaces@UsbControl@protocol@libfreenect2@@QAE?AW4ResultCode@123@XZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\usb_control.obj\tfreenect2\r\nError\t3\terror LNK2019: unresolved external symbol _libusb_cancel_transfer@4 referenced in function \"public: void __thiscall libfreenect2::usb::TransferPool::cancel(void)\" (?cancel@TransferPool@usb@libfreenect2@@QAEXXZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\transfer_pool.obj\tfreenect2\r\nError\t20\terror LNK2019: unresolved external symbol _libusb_bulk_transfer@24 referenced in function \"private: enum libfreenect2::protocol::CommandTransaction::ResultCode __thiscall libfreenect2::protocol::CommandTransaction::send(struct libfreenect2::protocol::CommandBase const &)\" (?send@CommandTransaction@protocol@libfreenect2@@AAE?AW4ResultCode@123@ABUCommandBase@23@@Z)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\command_transaction.obj\tfreenect2\r\nError\t1\terror LNK2019: unresolved external symbol _libusb_alloc_transfer@4 referenced in function \"protected: virtual struct libusb_transfer * __thiscall libfreenect2::usb::BulkTransferPool::allocateTransfer(void)\" (?allocateTransfer@BulkTransferPool@usb@libfreenect2@@MAEPAUlibusb_transfer@@XZ)\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\transfer_pool.obj\tfreenect2\r\nError\t8\terror LNK2001: unresolved external symbol _libusb_error_name@4\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\build\\command_transaction.obj\tfreenect2\r\nError\t33\terror LNK1120: 31 unresolved externals\tD:\\time2code\\kinect stuff\\libfreenect2-master\\libfreenect2-master\\examples\\protonect\\lib\\Debug\\freenect2.dll\tfreenect2\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/comments/89715974","html_url":"https://github.com/OpenKinect/libfreenect2/issues/195#issuecomment-89715974","issue_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/195","id":89715974,"user":{"login":"BenjaminRothschild","id":8176780,"avatar_url":"https://avatars.githubusercontent.com/u/8176780?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminRothschild","html_url":"https://github.com/BenjaminRothschild","followers_url":"https://api.github.com/users/BenjaminRothschild/followers","following_url":"https://api.github.com/users/BenjaminRothschild/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminRothschild/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminRothschild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminRothschild/subscriptions","organizations_url":"https://api.github.com/users/BenjaminRothschild/orgs","repos_url":"https://api.github.com/users/BenjaminRothschild/repos","events_url":"https://api.github.com/users/BenjaminRothschild/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminRothschild/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T04:43:28Z","updated_at":"2015-04-05T04:43:28Z","body":"yes,you must rebuilt the libusb source code  locally,and import the lib and dll."}}