error with framework built from sources

asked 2013-04-05 10:59:45 -0500

atrebbi gravatar image

updated 2013-04-05 11:01:44 -0500

I get many errors when i try to build an app with the framework i have built from sources ( listed below ), am I doing some errors ?

duplicate symbol __ZN2cv15SURFFindInvoker17findMaximaInLayerERKNS_3MatES3_RKNSt3__16vectorIS1_NS4_9allocatorIS1_EEEESA_RKNS5_IiNS6_IiEEEERNS5_INS_8KeyPointENS6_ISF_EEEEiifi in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZN2cv4SURFC1Ediibb in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZN2cv4SURFC1Ev in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZN2cv4SURFC2Ediibb in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZN2cv4SURFC2Ev in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZNK2cv4SURF10detectImplERKNS_3MatERNSt3__16vectorINS_8KeyPointENS4_9allocatorIS6_EEEES3_ in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZNK2cv4SURF11computeImplERKNS_3MatERNSt3__16vectorINS_8KeyPointENS4_9allocatorIS6_EEEERS1_ in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZNK2cv4SURF14descriptorSizeEv in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZNK2cv4SURF14descriptorTypeEv in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZNK2cv4SURFclERKNS_11_InputArrayES3_RNSt3__16vectorINS_8KeyPointENS4_9allocatorIS6_EEEE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZNK2cv4SURFclERKNS_11_InputArrayES3_RNSt3__16vectorINS_8KeyPointENS4_9allocatorIS6_EEEERKNS_12_OutputArrayEb in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTCN2cv4SURFE0_NS_15FeatureDetectorE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTCN2cv4SURFE0_NS_9Feature2DE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTCN2cv4SURFE4_NS_19DescriptorExtractorE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTIN2cv4SURFE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTSN2cv4SURFE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTTN2cv4SURFE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZTVN2cv4SURFE in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZThn4_NK2cv4SURF11computeImplERKNS_3MatERNSt3__16vectorINS_8KeyPointENS4_9allocatorIS6_EEEERS1_ in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZThn4_NK2cv4SURF14descriptorSizeEv in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) duplicate symbol __ZThn4_NK2cv4SURF14descriptorTypeEv in: /Sorgenti/ios/opencv2.framework/opencv2(surf.o) ld: 21 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

edit retag flag offensive close merge delete

Comments

I have identified the problem: i need a linker option in my project: -all_load with this flag, the opencv framework gives the errors I said i will open a bug...

atrebbi gravatar imageatrebbi ( 2013-04-06 11:32:22 -0500 )edit