You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "julio cesar (JIRA)" <ji...@apache.org> on 2012/09/03 08:57:07 UTC
[jira] [Created] (CB-1363) External library incompatibility with
iOS component
julio cesar created CB-1363:
-------------------------------
Summary: 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
[jira] [Closed] (CB-1363) External library incompatibility with iOS
component
Posted by "julio cesar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
julio cesar closed CB-1363.
---------------------------
Resolution: Not A Problem
there was a problem with the library, not a phonegap bug
> 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452409#comment-13452409 ]
Shazron Abdullah commented on CB-1363:
--------------------------------------
Right. But do all your projects have duplicate main symbols? Probably not.
> 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452353#comment-13452353 ]
Andrew Grieve commented on CB-1363:
-----------------------------------
from the error message, it looks like libtesseract_all has a _main symbol in it when it shouldn't. I think it's a problem with the plugin.
> 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "julio cesar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452403#comment-13452403 ]
julio cesar commented on CB-1363:
---------------------------------
but I don't have problems with new projects created with the same Xcode
> 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "julio cesar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452344#comment-13452344 ]
julio cesar commented on CB-1363:
---------------------------------
continues in phonegap 2.1 RC2
> 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "julio cesar (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-1363) External library incompatibility with
iOS component
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452401#comment-13452401 ]
Shazron Abdullah commented on CB-1363:
--------------------------------------
It's possible that the newer version of the compiler (clang) that comes with Xcode is more strict.
> 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