Looks like a lot of symbols may need exporting.
For starters, try the following:
In apple_remote/inc/AppleRemote.h,
change:
@interface AppleRemote : HIDRemoteControlDevice {
to:
@interface SAL_DLLPUBLIC_EXPORT AppleRemote : HIDRemoteControlDevice {
You may also need:
#include <sal/types.h>
See if you get this back in the AppleRemote.dylib after building:
000000000000bd80 S _OBJC_CLASS_$_AppleRemote
On Wed, Feb 20, 2019 at 7:29 PM Jim Jagielski <[email protected]> wrote:
> In both cases (using trunk and AOO42X) I get:
>
> nm -D solver/450/unxmaccx.pro/lib/*AppleRe*
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:
> solver/450/unxmaccx.pro/lib/libAppleRemote.dylib: File format has no
> dynamic symbol table.
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:
> solver/450/unxmaccx.pro/lib/libAppleRemote.jnilib: File format has no
> dynamic symbol table.
>
> Instead, looking at all symbols:
>
> nm -a solver/420/unxmaccx.pro/lib/*AppleRe*
> 000000000000bfb0 D _AppleRemoteDeviceName
> U _CFGetTypeID
> U _CFNumberGetTypeID
> U _CFRelease
> U _CFRunLoopAddSource
> U _CFRunLoopGetCurrent
> U _CFRunLoopRemoveSource
> U _CFUUIDGetConstantUUIDWithBytes
> U _CFUUIDGetUUIDBytes
> 0000000000007b10 S _DEFAULT_MAXIMUM_CLICK_TIME_DIFFERENCE
> U _DisableSecureEventInput
> U _EnableSecureEventInput
> 000000000000bfc0 D _FINISHED_USING_REMOTE_CONTROL_NOTIFICATION
> U _GetEventDispatcherTarget
> U _GetEventParameter
> 00000000000078f0 T _GetVersionInfo
> 0000000000007b18 S _HOLD_RECOGNITION_TIME_INTERVAL
> U _IOCreatePlugInInterfaceForService
> U _IOIteratorNext
> U _IOObjectGetClass
> U _IOObjectRelease
> U _IOServiceGetMatchingServices
> U _IOServiceMatching
> U _InstallEventHandler
> U _NSApp
> U _NSAppKitVersionNumber
> U _NSLog
> U _NSZeroPoint
> 000000000000bd80 S _OBJC_CLASS_$_AppleRemote
> 000000000000bf60 S _OBJC_CLASS_$_AppleRemoteMainController
> 000000000000be70 S _OBJC_CLASS_$_GlobalKeyboardDevice
> 000000000000bec0 S _OBJC_CLASS_$_HIDRemoteControlDevice
> 000000000000bf10 S _OBJC_CLASS_$_MultiClickRemoteBehavior
> U _OBJC_CLASS_$_NSArray
> U _OBJC_CLASS_$_NSAutoreleasePool
> U _OBJC_CLASS_$_NSBundle
> U _OBJC_CLASS_$_NSDate
> U _OBJC_CLASS_$_NSDictionary
> U _OBJC_CLASS_$_NSDistributedNotificationCenter
> U _OBJC_CLASS_$_NSEvent
> U _OBJC_CLASS_$_NSMutableArray
> U _OBJC_CLASS_$_NSMutableDictionary
> U _OBJC_CLASS_$_NSMutableString
> U _OBJC_CLASS_$_NSNumber
> U _OBJC_CLASS_$_NSObject
> U _OBJC_CLASS_$_NSString
> U _OBJC_CLASS_$_NSThread
> U _OBJC_CLASS_$_NSUserDefaults
> 000000000000bdd0 S _OBJC_CLASS_$_RemoteControl
> 000000000000be20 S _OBJC_CLASS_$_RemoteControlContainer
> 000000000000bd78 S _OBJC_IVAR_$_AppleRemoteMainController.remoteControl
> 000000000000bcd0 S _OBJC_IVAR_$_GlobalKeyboardDevice.eventHandlerRef
> 000000000000bcc8 S
> _OBJC_IVAR_$_GlobalKeyboardDevice.hotKeyRemoteEventMapping
> 000000000000bd08 S _OBJC_IVAR_$_HIDRemoteControlDevice.allCookies
> 000000000000bcf0 S
> _OBJC_IVAR_$_HIDRemoteControlDevice.cookieToButtonMapping
> 000000000000bd18 S _OBJC_IVAR_$_HIDRemoteControlDevice.eventSource
> 000000000000bd00 S
> _OBJC_IVAR_$_HIDRemoteControlDevice.fixSecureEventInputBug
> 000000000000bce8 S _OBJC_IVAR_$_HIDRemoteControlDevice.hidDeviceInterface
> 000000000000bcd8 S _OBJC_IVAR_$_HIDRemoteControlDevice.openInExclusiveMode
> 000000000000bd10 S _OBJC_IVAR_$_HIDRemoteControlDevice.processesBacklog
> 000000000000bce0 S _OBJC_IVAR_$_HIDRemoteControlDevice.queue
> 000000000000bcf8 S
> _OBJC_IVAR_$_HIDRemoteControlDevice.supportedButtonEvents
> 000000000000bd38 S
> _OBJC_IVAR_$_MultiClickRemoteBehavior.clickCountEnabledButtons
> 000000000000bd28 S _OBJC_IVAR_$_MultiClickRemoteBehavior.delegate
> 000000000000bd58 S _OBJC_IVAR_$_MultiClickRemoteBehavior.eventClickCount
> 000000000000bd60 S
> _OBJC_IVAR_$_MultiClickRemoteBehavior.lastClickCountEvent
> 000000000000bd68 S
> _OBJC_IVAR_$_MultiClickRemoteBehavior.lastClickCountEventTime
> 000000000000bd50 S
> _OBJC_IVAR_$_MultiClickRemoteBehavior.lastEventSimulatedHold
> 000000000000bd40 S _OBJC_IVAR_$_MultiClickRemoteBehavior.lastHoldEvent
> 000000000000bd48 S _OBJC_IVAR_$_MultiClickRemoteBehavior.lastHoldEventTime
> 000000000000bd20 S
> _OBJC_IVAR_$_MultiClickRemoteBehavior.maxClickTimeDifference
> 000000000000bd30 S _OBJC_IVAR_$_MultiClickRemoteBehavior.simulateHoldEvents
> 000000000000bcb8 S _OBJC_IVAR_$_RemoteControl.delegate
> 000000000000bcc0 S _OBJC_IVAR_$_RemoteControlContainer.remoteControls
> 000000000000bda8 S _OBJC_METACLASS_$_AppleRemote
> 000000000000bf88 S _OBJC_METACLASS_$_AppleRemoteMainController
> 000000000000be98 S _OBJC_METACLASS_$_GlobalKeyboardDevice
> 000000000000bee8 S _OBJC_METACLASS_$_HIDRemoteControlDevice
> 000000000000bf38 S _OBJC_METACLASS_$_MultiClickRemoteBehavior
> U _OBJC_METACLASS_$_NSObject
> 000000000000bdf8 S _OBJC_METACLASS_$_RemoteControl
> 000000000000be48 S _OBJC_METACLASS_$_RemoteControlContainer
> 000000000000bfb8 D _REQUEST_FOR_REMOTE_CONTROL_NOTIFCATION
> U _RegisterEventHotKey
> U _RemoveEventHandler
> U __Unwind_Resume
> U ___CFConstantStringClassReference
> U ___objc_personality_v0
> U ___stack_chk_fail
> U ___stack_chk_guard
> U __objc_empty_cache
> U __objc_empty_vtable
> U _floor
> 000000000000bfd0 D _kApplicationIdentifier
> U _kCFRunLoopDefaultMode
> U _kIOMasterPortDefault
> 000000000000bfc8 D _kRemoteControlDeviceName
> 000000000000bfd8 D _kTargetApplicationIdentifier
> U _objc_msgSend
> U _objc_msgSendSuper2
> U _objc_sync_enter
> U _objc_sync_exit
> U dyld_stub_binder
> 0000000005614542 - 00 0000 OPT radr://5614542
>
>
> % nm -a solver/450/unxmaccx.pro/lib/*AppleRe*
>
> solver/450/unxmaccx.pro/lib/libAppleRemote.dylib:
> U dyld_stub_binder
>
> solver/450/unxmaccx.pro/lib/libAppleRemote.jnilib:
> U dyld_stub_binder
>
>