Finally I was able to compile ant_lib has a static library with the small change you posted, thanks
I am now facing new errors when trying to use the static lib in my main project:
For Windows I didn't have this issue, it compiled fine -_-
Here are the compile error using the static lib "libANT_LIB.a":
Undefined symbols for architecture x86_64:
"_CFDictionarySetValue", referenced from:
USBDeviceHandleSI::GetAllDevices() in libANT_LIB.a(usb_device_handle_vcp.o)
USBDeviceHandleSI::FindModems(unsigned int*) in libANT_LIB.a(usb_device_handle_vcp.o)
"_CFNumberGetValue", referenced from:
USBDeviceSI::USBDeviceSI(unsigned int const&) in libANT_LIB.a(usb_device_vcp.o)
USBDeviceSI::GetDeviceNumber(unsigned int const&, __CFString const*) in libANT_LIB.a(usb_device_vcp.o)
_IOObjectConformsTo", referenced from:
USBDeviceSI::USBDeviceSI(unsigned int const&) in libANT_LIB.a(usb_device_vcp.o)
(anonymous namespace)::GetRegistryEntry(unsigned int, char const*) in libANT_LIB.a(usb_device_handle_vcp.o)
IOKitDevice::IOKitDevice(unsigned int const&) in libANT_LIB.a(iokit_device.o)
"_IOObjectGetClass", referenced from:
IOKitDeviceList::GetNextDevice(unsigned int) in libANT_LIB.a(iokit_device_list.o)
"_IOObjectRelease", referenced from:
USBDeviceHandleSI::GetAllDevices() in libANT_LIB.a(usb_device_handle_vcp.o)
"std::_List_node_base::hook(std::_List_node_base*)", referenced from:
IOKitDeviceHandle::SendSyncControlTransfer(unsigned char, unsigned char, unsigned short, unsigned short, unsigned char*, unsigned short, unsigned int, int&) in libANT_LIB.a(iokit_device_handle.o)
IOKitDeviceHandle::SendSyncInterruptTransfer(unsigned char, unsigned char*, int, unsigned int, int&) in libANT_LIB.a(iokit_device_handle.o)
IOKitDeviceHandle::SendSyncBulkTransfer(unsigned char, unsigned char*, int, unsigned int, int&) in libANT_LIB.a(iokit_device_handle.o)
[Edit : fixed! got to love forums searching
need to add this in the .pro file :
LIBS += -framework IOKit
LIBS += -framework CoreFoundation