Export to GitHub

btstack - issue #208

problems to compile cocoatouch project


Posted on Nov 5, 2011 by Quick Lion

Hello, first thanks for the job.

I have some problems to compile the cocoatouch project and i have this output although the "hci_cmds.h" is correctly include :

1> + Linking project files... 1> Undefined symbols: 1> "_btstack_set_system_bluetooth_enabled", referenced from: 1> _btstack_set_system_bluetooth_enabled$non_lazy_ptr in BTstackManager.o 1> "_btstack_get_system_bluetooth_enabled", referenced from: 1> _btstack_get_system_bluetooth_enabled$non_lazy_ptr in BTstackManager.o 1> "_hci_link_key_request_reply", referenced from: 1> _hci_link_key_request_reply$non_lazy_ptr in BTInquiryViewController.o 1> ld: symbol(s) not found

regards, Régis.

Comment #1

Posted on Nov 11, 2011 by Swift Ox

did you compile libBTstack.dylib from the command line first? see getting started. please post to the mailing list, it's not a issue/bug in BTstack itself.

fwiw, I added a compiler flag, so it could find config.h in the root dir

Comment #2

Posted on Nov 11, 2011 by Quick Lion

Hi, thanks for the answer. I'm a newbie in compiling iphone app and more i compile on windows platform with Ios Build Environnement (http://www.pmbaty.com/iosbuildenv/index-en.html). It’s more difficult because there’s not any debugger or simulator. My first apps works but i have some problem to compile btstack apps. Don’t worry, i continue to search and i progress more en more when my job let me time.

Actually, i can compile cocoatouch project (the problem was that i haven’t got the good compiled btstack library) but when i lauch it on my iphone, activation of btstack works, searchong works but once i activate any bluetooth peripheral (mouse or wiimote), apps failed and shut down.

I don’t know how to compile with command line with ios build environnement and windows but I’m going to search. It must be my problem for the cocoatouch app if the library is not good. 

A lot of thanks for your work. It’s great. Sorry to post in issue and my bad english. If you want, i can post to the btstask google groups forum if it could serve for the others.

Régis.    

-----Message d'origine----- From: btstack@googlecode.com Sent: Friday, November 11, 2011 8:32 PM To: regis.boullard@gmail.com Subject: Re: Issue 208 in btstack: problems to compile cocoatouch project

Comment #3

Posted on Nov 14, 2011 by Swift Ox

Hi

I've never heard of this windows compile environment. Without manually downloading the iOS SDK included in Xcode from Apple, there's no legal way to obtain a working toolchain.

For debugging your software, you can install gdb on the iPhone and use that over ssh. Good luck :)

Comment #4

Posted on Nov 15, 2011 by Quick Lion

Thank you.

-----Message d'origine----- From: btstack@googlecode.com Sent: Monday, November 14, 2011 10:04 PM To: regis.boullard@gmail.com Subject: Re: Issue 208 in btstack: problems to compile cocoatouch project

Status: Invalid

Labels:
Type-Defect Priority-Medium