1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

fix udev/libusb error after 760e4859

/Users/rainbow/tmp/my/sdrangel/fcdhid/hid-libusb.c:49:10: fatal error: 'libusb-1.0/libusb.h' file not found

Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _get_usb_string in hid-libusb.c.o
  "_iconv_close", referenced from:
      _get_usb_string in hid-libusb.c.o
  "_iconv_open", referenced from:
      _get_usb_string in hid-libusb.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This commit is contained in:
Davide Gerhard 2019-04-23 08:18:54 +02:00
parent 8fc7c37226
commit 5e2a9cdd7e
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIBUSB_INCLUDE_DIR}
${ICONV_INCLUDE_DIR}
)
#add_definitions(-DQT_PLUGIN)

View File

@ -46,7 +46,7 @@
#include <wchar.h>
/* GNU / LibUSB */
#include <libusb-1.0/libusb.h>
#include <libusb.h>
#include "iconv.h"
#include "../fcdhid/hidapi.h"