[ 
https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452354#comment-13452354
 ] 

Shazron Abdullah commented on CB-1363:
--------------------------------------

Hmm if the library duplicates main then that's a problem with the library 
unfortunately - it shouldn't be including a main function in there. Cordova 
needs its main function of course so we can't remove that. Do you have the 
source for it? You'll have to remove the symbol.
                
> External library incompatibility with iOS component
> ---------------------------------------------------
>
>                 Key: CB-1363
>                 URL: https://issues.apache.org/jira/browse/CB-1363
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: mac osx lion and xcode 4.3.3 and 4.4
>            Reporter: julio cesar
>            Assignee: Shazron Abdullah
>
> Since the update to phonegap 2.0, the OCRPlugin stops working with phonegap.
> (OCRPlugin 
> https://github.com/phonegap/phonegap-plugins/tree/master/iOS/OCRPlugin)
> But the problem is not the plugin at all, it's the OCR library it uses, as 
> soon as I drag the dependencies folder to my project (with "Create groups for 
> any added folders" checkbox marked) the project stops compiling.
> The error is:
> ld: duplicate symbol _main in 
> /Users/HACKINTOSH/Desktop/pg/pg/Classes/dependencies/lib/libtesseract_all.a(svpaint.o)
>  and 
> /Users/HACKINTOSH/Library/Developer/Xcode/DerivedData/pg-cuphgzkabixjepavhnlumwnoufkn/Build/Intermediates/pg.build/Debug-iphoneos/pg.build/Objects-normal/armv7/main.o
>  for architecture armv7
> NOTE: The plugin only works on a real device, the library isn't compiled for 
> simulators.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to