smile embeded to iphone app

The engine.
Post Reply
lir24
Posts: 9
Joined: Mon Feb 25, 2013 5:00 am

smile embeded to iphone app

Post by lir24 »

Hi all,
I am now trying to use Bayesian Network to calculate probability by using smile, in an iphone App. I think smile was written by c++, it should work in Xcode, but I am not sure which version of smile should I use, the one for Mac OS, or IOS? I tried both, but they both gave me errors. Is there anything else I could try, or say the smile could not be embedded in an iphone app in fact? Could someone help me with these questions? Thanks~
lir24
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: smile embeded to iphone app

Post by Martijn »

Hi lir24,

What type of errors are you getting?

Martijn
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: smile embeded to iphone app

Post by shooltz[BayesFusion] »

lir24 wrote:I am not sure which version of smile should I use, the one for Mac OS, or IOS?
You should use iOS build when running on an actual device and OSX build for the iOS emulator running on your Mac. We won't be able to help you with specific question at this time, however - we're not enrolled in Apple's iOS Developer Program. I suggest you should try to use XCode to mix Objective-C and C++ first, then proceed to use SMILE with your application.
say the smile could not be embedded in an iphone app in fact?
SMILE can be used in the iOS app. Here's the 3rd party example:
https://itunes.apple.com/us/app/pyramid ... 77505?mt=8
lir24
Posts: 9
Joined: Mon Feb 25, 2013 5:00 am

Re: smile embeded to iphone app

Post by lir24 »

shooltz wrote: You should use iOS build when running on an actual device and OSX build for the iOS emulator running on your Mac. We won't be able to help you with specific question at this time, however - we're not enrolled in Apple's iOS Developer Program. I suggest you should try to use XCode to mix Objective-C and C++ first, then proceed to use SMILE with your application.
Thanks for your help!
I tried use XCode to mix Objective-c and C++, but found I am not properly import smile library. I think it should be some configure problem, since I've no idea how to deal with or link to libsmile.a package. Could you help me to give some ideas how to link libsmile.a in XCode? Thank you!
lir24
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: smile embeded to iphone app

Post by Martijn »

It seems this might be a more general problem, i.e. how to link to a c++ library from xcode.
So it's not really an issue related to smile.

You may want to search the web for some instructions. I did a quick google search and I found a few already:
http://stackoverflow.com/questions/8950 ... ic-library
http://stackoverflow.com/questions/4458 ... s-in-xcode
http://stackoverflow.com/questions/8155 ... -c-library
http://forums.macrumors.com/showthread.php?t=130262
https://discussions.apple.com/thread/51 ... 0&tstart=0
http://www.maximporges.com/2010/02/08/a ... -projects/
http://cmake.3232098.n2.nabble.com/Xcod ... 80010.html

Hope this helps

Martijn
Post Reply