[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452398#comment-13452398 ]
julio cesar commented on CB-1363: --------------------------------- That's right, there was a main funtion in svpaint.cpp, I changed it to main2 and recompiled, and now the plugin works. The only thing I don't understand is why this main function only have conflict with phonegap 2 and up, and not with lower versions and other iOS native projects. > 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