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
smile embeded to iphone app
Re: smile embeded to iphone app
Hi lir24,
What type of errors are you getting?
Martijn
What type of errors are you getting?
Martijn
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: smile embeded to iphone app
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.lir24 wrote:I am not sure which version of smile should I use, the one for Mac OS, or IOS?
SMILE can be used in the iOS app. Here's the 3rd party example:say the smile could not be embedded in an iphone app in fact?
https://itunes.apple.com/us/app/pyramid ... 77505?mt=8
Re: smile embeded to iphone app
Thanks for your help!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.
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
Re: smile embeded to iphone app
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
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