opengitway / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

Cannot build BTDaemon that run's on iphone #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.following the steps on the getting started page 
2.make package to produce an install package
3.download the package to the iphone and install

BTdaemon deos not run. When I try to run from the command line I cannot connect 
using the test app. 

When I donwload the latest available version using Cydia the stack and 
executable work, but I build the same version/revision 1715 myself then I it 
will not run. I am using Code 4.4.1, I attached config log and also log file 
from the iphone.  

Original issue reported on code.google.com by khofenbi...@gmail.com on 15 Mar 2013 at 10:18

Attachments:

GoogleCodeExporter commented 9 years ago
hi. I've provided new build files based on theos but didn't update the 
GettingStarted yet.

Please install BTstack from Cydia. Then run ./config-iphone.sh. Now, you can go 
into the examples folder and just run make. The generated binaries are already 
pseudo-signed with ldid if you have it in your path. 

Original comment by matthias.ringwald@gmail.com on 15 Mar 2013 at 10:13

GoogleCodeExporter commented 9 years ago
Hi Matthias 
, danke or thank you for the prompt reply. I tried what you suggested but get 
another error that it cannot find the config.h which in linked to 
config-iphone.h

 Compiling inquiry.c...
In file included from ../include/btstack/btstack.h:44,
                 from inquiry.c:43:
../include/btstack/run_loop.h:40:20: error: config.h: No such file or directory
make[2]: *** [obj/inquiry.c.509dc8c0.o] Error 1
make[1]: *** [internal-tool-all_] Error 2
make: *** [inquiry.all.tool.variables] Error 2

thanks

Original comment by khofenbi...@gmail.com on 16 Mar 2013 at 10:16

GoogleCodeExporter commented 9 years ago
sorry, forgot to add that to svn. I've added it just now.

Original comment by matthias.ringwald@gmail.com on 16 Mar 2013 at 10:46

GoogleCodeExporter commented 9 years ago
thanks again, now I get an error when "Linking bundle BTstack...", I think you 
Makefile in the directory "PrefsBundle" is incorrect:

I think the wrong the line is
BTstack_LDFLAGS = -L../src -lBTstack

and should be 
BTstack_LDFLAGS = -L../src/obj -lBTstack

because you move the the applications and object files into the obj directory.

 it then builds

Original comment by khofenbi...@gmail.com on 19 Mar 2013 at 2:03

GoogleCodeExporter commented 9 years ago
Absolutely right. I've committed this fix, too.

Please note that the SVN version lacks the fixes for iOS 6 (which I've omitted 
on purpose).

Original comment by matthias.ringwald@gmail.com on 19 Mar 2013 at 12:08

GoogleCodeExporter commented 9 years ago
Thanks Mathias for information. Would it be possible to get the iOS 6 changes?

Original comment by khofenbi...@gmail.com on 19 Mar 2013 at 3:29

GoogleCodeExporter commented 9 years ago
It might. Please write me an email telling me about your project. 
matthias.ringwald@gmail.com

Original comment by matthias.ringwald@gmail.com on 19 Mar 2013 at 7:45