Undefined symbols for architecture i386

57 views
Skip to first unread message

Robert Trujillo

unread,
Feb 26, 2012, 2:06:38 PM2/26/12
to btstack-dev
Hi,

I'm having issues linking to libBTstack.dylib. It seems like it can
find the library but something about its configurations or the project
configurations aren't allowing me to link with it in the Xcode Cocoa
Touch project. Below is the output from the build. Please let me know
if you have any suggestions. I know my project architecture is ARM6 or
ARM7 it seems like i need to make that the same for the library.


ld: warning: ignoring file /Users/Rob/Desktop/btstack1/src/
libBTstack.dylib, file was built for unsupported file format which is
not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_run_loop_init", referenced from:
-[BTstackManager init] in BTstackManager.o
"_bt_register_packet_handler", referenced from:
-[BTstackManager init] in BTstackManager.o
"_bt_open", referenced from:
-[BTstackManager activate] in BTstackManager.o
"_bt_send_cmd", referenced from:
-[BTstackManager activate] in BTstackManager.o
-[BTstackManager deactivate] in BTstackManager.o
-[BTstackManager startDiscovery] in BTstackManager.o
-[BTstackManager stopDiscovery] in BTstackManager.o
-[BTstackManager activationHandleEvent:withLen:] in
BTstackManager.o
-[BTstackManager discoveryRemoteName] in BTstackManager.o
-[BTstackManager discoveryHandleEvent:withLen:] in
BTstackManager.o
...
"_bt_flip_addr", referenced from:
-[BTstackManager handleRemoteNameCached:] in BTstackManager.o
-[BTstackManager handleRemoteName:] in BTstackManager.o
-[BTstackManager discoveryHandleEvent:withLen:] in
BTstackManager.o
"_btstack_get_system_bluetooth_enabled", referenced from:
-[BTstackManager activate] in BTstackManager.o
"_btstack_set_power_mode", referenced from:
-[BTstackManager deactivate] in BTstackManager.o
-[BTstackManager activationHandleEvent:withLen:] in
BTstackManager.o
"_btstack_set_system_bluetooth_enabled", referenced from:
-[BTstackManager activationHandleEvent:withLen:] in
BTstackManager.o
"_hci_delete_stored_link_key", referenced from:
-[BTstackManager dropLinkKeyForAddress:] in BTstackManager.o
"_hci_inquiry", referenced from:
-[BTstackManager discoveryRemoteName] in BTstackManager.o
-[BTstackManager discoveryHandleEvent:withLen:] in
BTstackManager.o
"_hci_inquiry_cancel", referenced from:
-[BTstackManager stopDiscovery] in BTstackManager.o
-[BTstackManager discoveryHandleEvent:withLen:] in
BTstackManager.o
"_hci_remote_name_request", referenced from:
-[BTstackManager discoveryRemoteName] in BTstackManager.o
"_hci_remote_name_request_cancel", referenced from:
-[BTstackManager stopDiscovery] in BTstackManager.o
-[BTstackManager discoveryHandleEvent:withLen:] in
BTstackManager.o
"_hci_write_inquiry_mode", referenced from:
-[BTstackManager startDiscovery] in BTstackManager.o
-[BTstackManager discoveryHandleEvent:withLen:] in
BTstackManager.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status


Thanks,

Rob

Ben Lilley

unread,
Feb 26, 2012, 2:44:45 PM2/26/12
to btsta...@googlegroups.com
You are correct, the libBTstack.dylib in the project is built for the device.  In xcode you need to find the dropdown list that specifies the current output, it is probably set to "iPhone x.x simulator" or "iPad x.x simulator".  Change it to the device you are actually using (in my xcode it's "iOS Device").  You'll have to deploy the app to your device to test it.



--
You received this message because you are subscribed to the Google Groups "btstack-dev" group.
To post to this group, send email to btsta...@googlegroups.com.
To unsubscribe from this group, send email to btstack-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/btstack-dev?hl=en.


Robert Trujillo

unread,
Feb 26, 2012, 3:38:15 PM2/26/12
to btstack-dev
Thanks for the quick response I'm working on your suggestions. I have
to update to SDK 5 to deploy so im updating all that.


On Feb 26, 2:44 pm, Ben Lilley <benjilil...@gmail.com> wrote:
> You are correct, the libBTstack.dylib in the project is built for the
> device.  In xcode you need to find the dropdown list that specifies the
> current output, it is probably set to "iPhone x.x simulator" or "iPad x.x
> simulator".  Change it to the device you are actually using (in my xcode
> it's "iOS Device").  You'll have to deploy the app to your device to test
> it.
>
> On Sun, Feb 26, 2012 at 2:06 PM, Robert Trujillo
> <rob.trujill...@gmail.com>wrote:
Reply all
Reply to author
Forward
0 new messages