peteanderson80 / Up-Down-Captioner

Automatic image captioning model based on Caffe, using features from bottom-up attention.
http://www.panderson.me/up-down-attention/
MIT License
243 stars 69 forks source link

Build Caffe and pycaffe error #1

Open y657250418 opened 6 years ago

y657250418 commented 6 years ago

When I use make -j8 && make pycaffe to build caffe and pycaffe, I get these errors(with Centos system, protobuf 2.5.0, opencv 3.2.0, gcc 4.8.5 ):

/usr/bin/ld: warning: libcudart.so.7.5, needed by /usr/local/lib/libopencv_cudabgsegm.so, may conflict with libcudart.so.8.0 .build_release/examples/mnist/convert_mnist_data.o: In function convert_dataset(char const*, char const*, char const*, std::string const&)': convert_mnist_data.cpp:(.text+0x7b0): undefined reference togoogle::protobuf::internal::kEmptyString' .build_release/lib/libcaffe.so: undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' .build_release/lib/libcaffe.so: undefined reference togoogle::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)' .build_release/lib/libcaffe.so: undefined reference to google::protobuf::internal::WireFormatLite::ReadString(google::protobuf::io::CodedInputStream*, std::string*)' .build_release/lib/libcaffe.so: undefined reference togoogle::protobuf::io::CodedOutputStream::VarintSize32Fallback(unsigned int)' .build_release/lib/libcaffe.so: undefined reference to google::protobuf::io::CodedInputStream::Skip(int)' .build_release/lib/libcaffe.so: undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)' .build_release/lib/libcaffe.so: undefined reference to google::protobuf::io::CodedInputStream::ReadVarint64Fallback(unsigned long*)' .build_release/lib/libcaffe.so:/ undefined reference usr/to bin/ld:google: warning::protobuf libcudart.so.7.5,:: neededio::CodedInputStream::ReadTagFallback by() /' usr.build_release/local/lib/libopencv_cudabgsegm.so/lib, /libcaffe.somay : conflictundefined withreference libcudart.so.8.0to google:.build_release:protobuf/::libio/libcaffe.so::: CodedOutputStreamundefined ::VarintSize64(reference unsigned tolong)'cv:: _OutputArray:.build_release:_OutputArray/lib(cv/libcaffe.so:::Mat& undefined reference )' .build_release/to lib/googlelibcaffe.so:::protobuf::Message undefined:: referenceSpaceUsed( to) const' .googlebuild_release/lib/:/usrlibcaffe.so::protobuf /undefined: :binioreference: :to/ ldCodedInputStream:::cvSetTotalBytesLimit (:intwarning,: imreadint:)(' libcudart.so.7.5.stdbuild_release,/:lib /:libcaffe.soneeded: stringby /undefinedusrconst/ local/reference&lib /tolibopencv_cudabgsegm.so,,may googleconflictint with:): protobuf'libcudart.so.8.0: : internal.:build_release./:libbuild_release/WireFormatLitelibcaffe.so/:: examplesundefined/ :referencecifar10 /toReadString convert_cifar_data.o(google::google:protobuf: ::protobuf:Inio:: ::CodedInputStreamfunction: :ioconvert_dataset:(:stdReadVarint32FallbackCodedInputStream:(,: unsignedstdstring: : stringconstint&),* )''std

.:build_release./:libstring/build_releaselibcaffe.so :/ libundefinedconst /referencelibcaffe.so&: ,undefinedto referencestd : :tostringvtable const &)for'google:: : protobufconvert_cifar_data.cpp:cv::io::(:.CodedOutputStream::text:+VarintSize32Fallback0x8dd()_InputArray:unsigned 'undefined
referenceint. build_release)/'lib /to. libcaffe.sobuild_releasegoogle::/: protobufundefinedlib :reference /:libcaffe.soto:internal undefined :referencegoogle :to: kEmptyString:google':protobuf: protobuf::::convert_cifar_data.cppiointernal::::CodedInputStream(:::.SkipGeneratedMessageReflection(:text:+int0x10d1GeneratedMessageReflection)(:)google' :.:build_releaseundefined/protobuflib /reference: libcaffe.soto: :Descriptor googleconst :,: undefinedprotobufgoogle: ::internalreference:::kEmptyStringprotobuf :'to: Message` cvconst.build_release,/ libint/:libcaffe.so :: undefined_InputArrayconst: :_InputArrayreference(,cv : :toMatint const,&`) 'intcv, :int.,build_release :/googlelib:_OutputArray:/protobuf::libcaffe.so::DescriptorPool: _OutputArrayconst( ,cv :undefined: googlereferenceMat to&:) ': .googlebuild_release:/protobuflib:/:libcaffe.so::protobuf :MessageFactory:undefinedio :reference* :to, CodedInputStream google::int::protobuf)ReadVarint64Fallback:('unsigned: longio.):'build_release :./build_releaselib/CodedInputStreamlib//:libcaffe.solibcaffe.so:: :undefinedSetTotalBytesLimit reference( intundefinedto, reference intgoogle)to': .:build_release/googleprotobuf:::libprotobuf/:libcaffe.so::io:: internalundefined: :referenceCodedInputStream :to: :`StringTypeHandlerBaseReadTagFallbackgoogle(:):': :.Deletebuild_releaseprotobuf/(lib:/libcaffe.so:stdinternal:::::WireFormatLite string:undefined) :reference' ReadStringto (googlegoogle.::build_release:/:libprotobuf/protobuflibcaffe.so:::io: :::undefinedCodedOutputStreamio: :VarintSize64reference: (to: unsignedCodedInputStreamcv ::longimencode,()std :':stdstring :const.&:,build_releasestring cv)/:':lib_InputArray /const.&build_release/libcaffe.so,:lib /undefinedlibcaffe.so referencestd: :undefinedto :referencevector to< googleunsignedgoogle: :char:protobuf,: :std::Message:protobufallocator:<:unsigned: SpaceUsedchar:>( io>)&:, stdconst:': CodedOutputStream.::build_release:/VarintSize32Fallbacklib(/vectorlibcaffe.sounsigned:< undefinedint intreference, )to '`stdcv: :.allocatorbuild_release<:/:intimread(lib>/stdlibcaffe.so :> :undefined const:referencestring& constto& )`,google': :intprotobuf :):'io :.:.CodedInputStreambuild_releasebuild_release/:lib//lib:/libcaffe.solibcaffe.soSkip:: (undefined intundefinedreference referenceto) ' to` .`googlegooglebuild_release::/:libprotobuf::/:libcaffe.sointernal:: :undefinedStringTypeHandlerBase :reference: protobuftoNew: :(io:)`': cv.:build_release:CodedInputStream/_InputArraylib:::/_InputArray:(ReadVarint32Fallbackcvlibcaffe.so:(::Mat unsignedconst &int)undefined*' )reference to'. .build_releasebuild_release`//googlelib:lib:/protobuf/:libcaffe.so::UnknownFieldSetlibcaffe.so: ::UnknownFieldSetundefined( ) undefined' referencereference .tobuild_releaseto/ lib /vtablegoogle :/for:libcaffe.so protobuf:cv: usr::/undefined:io _InputArraybinreference:'/: ld toCodedInputStream.:: :build_releasewarningReadVarint64Fallback/(libgoogle:/unsigned libcaffe.so:libcudart.so.7.5 ::long,protobuf *undefined:)needed: internalreferenceby:' :to/RepeatedPtrFieldBase.usr build_release:/:googlelocal/:Swaplib/(:lib/protobufgooglelibcaffe.so/::libopencv_cudabgsegm.so::: internal,protobuf:undefined: :reference:GeneratedMessageReflectionmayinternal :to::conflict:RepeatedPtrFieldBase withGeneratedMessageReflection)`(' google libcudart.so.8.0google.::build_release :/:protobuf.protobuf:build_release:lib/:/:libDescriptoriolibcaffe.so /:constlibcaffe.so: ::undefinedCodedInputStream ,undefined: reference: googlereferenceReadTagFallback:to(: protobuf):to'google :: Message.:cv protobufbuild_releaseconst:/::,lib: /ioint/libcaffe.so: usr:_OutputArray:const/ CodedOutputStream:bin,undefined:: /:_OutputArrayintreferenceWriteVarint64ToArrayld,(( : unsignedto int cv,warning:long:int:,google , Matlibcudart.so.7.5 unsigned:,google&: ):neededcharprotobuf:' *protobuf:by): ':./:build_releaseio usr/DescriptorPool./lib:build_release local//const/:liblibcaffe.soCodedOutputStreamlib*/::/,:libopencv_cudabgsegm.so libcaffe.so VarintSize64,googleundefined: ( :mayundefinedunsigned: referenceprotobufconflict : longto:with) reference MessageFactory'libcudart.so.8.0 google to:, . .:build_releasebuild_releaseprotobufint/google/)lib::'/lib::libcaffe.so/ ioprotobuf:libcaffe.so: .:::build_releaseundefinedCodedInputStream:/ UnknownFieldSetlibreferenceundefined:: /: tolibcaffe.soSetTotalBytesLimit: reference(: int~cvto UnknownFieldSet:,(undefined :) _OutputArray' googleint ::reference.): :'build_releasetoprotobuf _OutputArray /.(libbuild_release:cvgoogle//:::libcaffe.solib:::MessageMatprotobuf/: &::libcaffe.so)undefinedSpaceUsed:' /:internal (usrreference:. / :)undefinedbuild_releasetoStringTypeHandlerBase bin/ : /libconst:ld/referenceDeletegoogle:libcaffe.so (' :to: std warning: :.:undefined:protobuf build_release google:libcudart.so.7.5/referencestringlib::, /:ioto )protobuf:libcaffe.soneeded ::: :CodedOutputStream'bygoogle :internal :undefined::/.: :usrbuild_releaseprotobufWriteVarint32FallbackToArray/WireFormatLite/reference:lib(local :://:unsignedtoiolibcaffe.soReadStringlib ( ::/googleint::libopencv_cudabgsegm.soCodedInputStreamundefined,::,cvprotobuf : :unsignedreference:maySetTotalBytesLimit :: ( iochartoimreadconflictint (:, `):stdwith 'google:CodedInputStreamint : )libcudart.so.8.0::' ,string protobuf. .build_release: build_releasestd/:/:libinternalconstlib:/:/&libcaffe.so:stringlibcaffe.so,collect2: error: ld returned 1 exit status kEmptyString:: ')
intundefinedundefined'). ' referencereferencebuild_release. /build_release tolib.to/ / build_releaselibcaffe.solib:google//cv :libcaffe.so:undefined::lib: protobuf_OutputArrayreference/::undefinedlibcaffe.so :::_OutputArray internalto(undefined: cvreference::cvWireFormatLitetoreference::: Mat ::&toimencodeReadStringgoogle)( ('std:google `:::.protobufgoogle:build_release::protobuf/:string:lib::/: iolibcaffe.soprotobufconstio:::& :::,ioundefinedCodedInputStream::
CodedOutputStream:reference,cvCodedInputStream ::tostd:: :_InputArrayReadVarint32Fallback`:: googlestring(const::&unsigned):VarintSize32Fallback 'protobuf(int, :unsigned. /:)build_releaseintstdio'/):usr :make: ':lib./:*** [.build_release/examples/mnist/convert_mnist_data.bin] Error 1vector

/build_releaseCodedInputStreambin.libcaffe.so<:/build_releasemake: :unsigned://lib SetTotalBytesLimit** Waiting for unfinished jobs....libldundefinedchar( /:/libcaffe.so ,int :reference ,libcaffe.so warning std :/:to:int undefinedusr :)libcudart.so.7.5/undefined allocator', referencebin<google reference/unsigned.:toneededld build_release: char:protobuf/byto> :lib warning:/vtable /:libcaffe.soio> usrforgoogle::&libcudart.so.7.5/ : :,local,CodedOutputStreamundefined:cv / : :protobufneededlib:referencestd:: / VarintSize32Fallback:_InputArraybylibopencv_cudabgsegm.soto(:'io unsigned, ::/ :intCodedInputStream.usrgooglevectormay):/:build_release <:local:'conflict/Skipintprotobuf/ lib ,:libwith/. (: /build_releasestdlibcaffe.sointernalintlibopencv_cudabgsegm.so/:libcudart.so.8.0::,lib) :: / .'WireFormatLitelibcaffe.somayallocatorundefined build_release::</int . build_release:examplesconflict>reference/ReadString/undefinedcpp_classification lib (/ >withtogoogle/reference classification.o :libcaffe.so constlibcudart.so.8.0:&::to ) protobuf google.undefined:':In build_release: :reference.google io/protobufbuild_release:function:/ :examples: lib::toprotobuf//internal CodedInputStreamsiamese:Classifierlibcaffe.so/::::,convert_mnist_siamese_data.oiocv : ::GeneratedMessageReflection:undefined:std :Preprocess ::In:(:reference:CodedInputStream GeneratedMessageReflection_InputArraycvstring: function(::): google:to'Skip:_InputArray: Mat(:convert_dataset ( intprotobuf.(googleconst):build_releasechar:cv'&: /:: ,constlibDescriptorprotobuf. :/: Matbuild_releasestd libcaffe.so,const:/const: :internallib&char :/:,)undefined libcaffe.sovector : const'<:StringTypeHandlerBasegooglereferencecv ::, : undefined: :to: .Matcharprotobuf Newreference,build_release:( / google):consttostd:libMessage': *:/ ):protobuflibcaffe.soconst.'cv:build_releaseallocator:::/:,< :lib ioundefinedcv_InputArray/:intconvert_mnist_siamese_data.cpp: :: :libcaffe.so:reference:Mat(:CodedOutputStreamconst_InputArray> .:( ,undefinedto:textcv > VarintSize32Fallback+: int(0x8f1:)referenceunsigned),google' :Mat : :int tointconst: undefined),& classification.cppprotobuf' ) : reference'googleint:. ::io,tobuild_release:.: google(build_release.:/protobufgoogle::textlib:CodedInputStream+:/:::0x109protobuflibcaffe.so:protobufUnknownFieldSet)::ReadVarint64Fallback ::(:/:undefined internal DescriptorPoollibunsignedreference/undefined to: libcaffe.sogoogle: :long:const :undefinedreferenceprotobuf kEmptyString:reference ,' ) :toto.google'io build_release :/``:lib:.googlecv:/CodedInputStream:build_release:libcaffe.so/:protobuflib::_OutputArray:::/protobuf ::libcaffe.so:ReadVarint64Fallbackundefined:_OutputArrayMessageFactory(( ::unsignedcv ioreferenceundefined: ::, long:: :to*referenceCodedInputStreamintMat UnknownFieldSet) &:)`(''):tocv

')Skip :. '(.build_release: classification.cppintgooglebuild_release/.:_OutputArray:)/lib(::'build_releaselib/:. /protobuf/libcaffe.so_OutputArraytextliblibcaffe.so.:(+::build_release:cv0x11c //io ):libcaffe.soundefinedlib:undefined: :: /: reference referencelibcaffe.soMatCodedInputStream undefinedundefined:& to : ) to:undefined'referencereferenceReadTagFallback togooglereference.(to :)googlebuild_releaseto: google:/ :'protobuf :lib::.cv/cvprotobuf:build_releaseprotobuflibcaffe.so::io/:::::_InputArray:: lib:::_InputArrayundefined/internal:CodedInputStream: internal:libcaffe.so::_InputArrayreference:::_InputArray(: :ReadTagFallback( StringTypeHandlerBasecvtoRepeatedPtrFieldBasecv(:: undefined:)::::'DeleteMatgoogle Mat : :reference(. constSwap: build_releaseconst&(stdtoprotobuf&/google:):) :lib':':: protobuf/ iostringgoogle:libcaffe.so.:classification.cpp::::build_release: ):internal/CodedInputStreamundefined'(:lib:protobuf . /::referencetext:libcaffe.so.SetTotalBytesLimitRepeatedPtrFieldBase +:build_release:(0x22dto /intio))undefined ,::'lib: /google intreference.libcaffe.soCodedOutputStreamundefined: ):build_release :to' :reference:/ protobuflibVarintSize64undefined .to:/ build_release google:libcaffe.so(/referenceio:unsigned:cvlib: : :/:toprotobuflong libcaffe.soCodedOutputStream::) ::undefined:'_OutputArray: io :cvVarintSize64undefined: :reference( ::. _OutputArrayreferenceunsignedCodedInputStreambuild_release:( to: imencodecvto/:long : libReadVarint64Fallback()`/:(std'googlegooglelibcaffe.sounsignedMat ::: :.:: long&build_release:stringundefinedprotobuf*)protobuf/ )' :lib:' reference:/: classification.cpp constlibcaffe.sointernal.:to&io::build_release(, : /.:WireFormatLite libundefined:text:google/cv:CodedOutputStream: +libcaffe.so::ReadStringreference0x240::protobuf( ::) googleto:WriteVarint64ToArray_InputArrayundefined::: (: Message constprotobufreferenceunsignedundefined:google& : ::to:,long:SpaceUsed referenceio protobuf(,:std: ):google:tounsigned CodedInputStream:Message: :const '::vectorchar, `protobuf: .<:SpaceUsedcvstdbuild_release::)(unsigned::/') lib:io_InputArray /stringchar::const.libcaffe.so:,:'build_release):_InputArray 'CodedInputStream/undefined(std.: cv:build_releaselib.::reference/: build_release/ReadTagFallback:libtoMat/(allocatorlibcaffe.so/ lib):<const/'libcaffe.sounsigned :cv& libcaffe.so undefined).::charundefined build_release' : >reference/undefined reference imread lib >to(reference/tostdclassification.cpp & libcaffe.so::to:,google : (:cvundefinedstdstring.: :google:protobuftext:reference :const::imread :&+vector(toprotobuf:0x318,std <:UnknownFieldSet :):intint:::,)googleio: string'undefined: :~std : ::UnknownFieldSetconstreference.protobuf:CodedOutputStream&(build_release: :,allocator/):to lib:'< io/VarintSize32Fallback int:int(libcaffe.so).:>cvunsigned:'build_releaseCodedOutputStream
::>/intundefined.:: _OutputArray)build_releaselib VarintSize64:const/'reference/(&: _OutputArrayliblibcaffe.sounsigned).(to:/ 'build_releasecv longlibcaffe.so / undefined.::)libgooglebuild_release: ' :/Mat/ undefinedreferencelibcaffe.so&:.lib :)build_release/toreferenceprotobuf' libcaffe.so :/undefined ::libto classification.cpp google/ ioreference::undefinedlibcaffe.so (:: :googleto.protobuf: : text:referenceundefined:CodedInputStream+ :protobuf google0x3f9to::io:reference )::::: io protobufReadVarint32Fallbacktogoogle:::undefined ( :CodedOutputStream::referenceunsignedCodedInputStream:io: google: :protobufto:::::int:ReadVarint32Fallback CodedInputStreamWriteVarint32FallbackToArray
protobuf(`::)cv(unsigned:internal:'unsigned ::Skip: Messageint(:int.::*intStringTypeHandlerBasebuild_release,:_OutputArray:))/ SpaceUsed::''lib(Newunsigned

/)(:. .libcaffe.sochar) build_release_OutputArraybuild_release*:const'/( /)' libundefinedcvlib':. / / :.libcaffe.sobuild_releaselibcaffe.soreference/Mat:build_release:lib /&/ undefinedlibtolibcaffe.soundefined / : referencelibcaffe.soreference): undefined vtable to'tocollect2: error: ld returned 1 exit status undefined reference toreferencecv::imread(std::string const& , int` vtable) for cv::_InputArray''

.build_release/tolib/.libcaffe.sobuild_release google:/::protobuf::UnknownFieldSet:: UnknownFieldSetundefinedlib reference to /libcaffe.so: google(undefined: :reference)protobuf ::toio' :: CodedInputStreamgoogle::::protobuf.build_release:ReadVarint32Fallback(unsigned/ intlib:*/)internal': .:build_releaselibcaffe.so/GeneratedMessageReflection:: :libGeneratedMessageReflection/(google:libcaffe.so:protobuf:undefined:for : Descriptorundefinedcv referenceconstreference: tovtable *:for_InputArray ,to' cv google`::google::._InputArraymake: protobuf:build_release'*** [.build_release/tools/convert_imageset.bin] Error 1::

:protobuf/Message.:lib build_release:/const/lib,libcaffe.so/internallibcaffe.so:: int undefined:undefined const: RepeatedPtrFieldBasereference,reference to int: ,:to Swapgoogleint :,(: googleprotobufgoogleint::,::: internalprotobufgoogle::::::protobufGeneratedMessageReflection:internal:protobuf::::internal:::GeneratedMessageReflection:DescriptorPool (:googleconst :GeneratedMessageReflection:`,protobufcv:: ::google:GeneratedMessageReflection::Descriptor: const, google::_InputArrayprotobufprotobuf(::::google:MessageFactory:, _InputArray:int:)protobufMessage'( cv:const:.:build_releaseMat,/: libDescriptorintconst/ &constlibcaffe.so):,const' undefined int .reference,build_release, / intlibto , / libcaffe.sogoogle:::int protobufundefined,: :internal:google ::StringTypeHandlerBasereference:: protobuf:toDelete: :(stdgoogle:DescriptorPool: :const:,protobuf stringgoogle::)::protobuf':io :::MessageFactory. CodedInputStreambuild_release,classification.cpp/ lib::/int:libcaffe.so):ReadVarint64Fallback(unsigned long)' .build_release/lib/libcaffe.so: undefined reference toundefined' reference to google::protobuf: :.internalgoogle::protobuf::build_releaseio/::lib::CodedInputStream/kEmptyStringlibcaffe.so: :' undefined:.build_release ReadTagFallback/referencelib(/)libcaffe.so: 'undefined to reference .build_releasegoogle/lib/to: libcaffe.so:cv:: imencodeundefined reference( std::protobuf:tostring :: internalgoogleconst:&::StringTypeHandlerBase:,: :Deletecvprotobuf:(:std::io::_InputArrayCodedOutputStream::: const&string,: *VarintSize64std)'( ::.vector<unsignedunsigned build_releaselong/) char,' lib std/.libcaffe.sobuild_release::: allocator/libundefined</unsignedlibcaffe.so charreference> :> toundefined & reference,google stdto `::google::::protobufvector::<protobufintMessageRepeatedPtrFieldBase,:: ::stdSpaceUsedinternal:()::*: )kEmptyString'constallocator' <'

int...>build_release build_releasebuild_release/>/lib/lib/lib/libcaffe.solibcaffe.so::/ libcaffe.soundefinedundefined: referenceundefinedreference to reference to consttogoogle& :) 'cv ::cv:protobuf:.::build_releaseimencodeimread/((libstd:/io:std:::libcaffe.sostring: :stringconst & undefined,const &cv,reference: ::intto_InputArray) ' CodedOutputStreamconst:&.:google,build_release: :std/protobuflib::internal/:libcaffe.so: :undefinedWriteVarint64ToArrayStringTypeHandlerBase :reference:( unsignedNew ()to' long , .unsignedbuild_release/lib /libcaffe.so:char undefined )reference googleto:': .googleprotobuf:build_release::/:lib/ioprotobuf:::libcaffe.soCodedInputStream::google:: UnknownFieldSetReadVarint32Fallbackundefined(:: ::unsignedprotobufUnknownFieldSet (referenceint: )to':) Message. 'build_releaseconstgoogle /*:lib.:/build_releaseprotobuflibcaffe.so,:/:: libUnknownFieldSet/undefined libcaffe.so :: undefinedreference: referenceto(~ .UnknownFieldSetgoogleto(: text:protobuf):'vtable+: 0x40dinternal.):for:: RepeatedPtrFieldBase build_releasecv:/undefined:: Swap:reference(lib _InputArraygoogle'to::/: :libcaffe.so. vectorprotobufbuild_release<:/:cv libintunsigned:/libcaffe.soundefined internal : char: reference,:undefined const RepeatedPtrFieldBasereferencestdto,: : allocatortoint) google<,:google' unsigned : :.:charintbuild_releaseprotobuf>,/:protobuf lib:>:int:/&io,libcaffe.so,internal :: std:google:undefinedGeneratedMessageReflection:: :::reference:vector: GeneratedMessageReflectionCodedOutputStream<to(int :protobufgooglegoogle,::: :WriteVarint32FallbackToArray:std::protobuf(:DescriptorPoolprotobuf:unsigned :: constallocator::int*<Descriptorio, int:,const>: * googleCodedOutputStreamunsigned,>: : : googlecharWriteVarint64ToArray::*constprotobuf(:&:protobuf)unsigned:)' :':longMessageFactory ,Message. *build_releaseunsignedconst /*:charlib,:,/*_InputArray libcaffe.so :):intint' :)undefined ' const. reference*build_releasecollect2: error: ld returned 1 exit status . to_InputArraybuild_release (/libcv:google:://Matlibcaffe.so: lib:constprotobuf /undefined&:libcaffe.so :):internal': referenceundefined:classification.cppStringTypeHandlerBase :::reference New(toto(. )text'+ 0x422.google):build_release:google:/ libprotobuf:/::libcaffe.so:undefined:UnknownFieldSet :protobufreferenceundefined: ~:toUnknownFieldSet:reference(internal ) 'tocv: :.google::build_releaseStringTypeHandlerBase/_InputArray:::::protobuflib::/Delete_InputArraylibcaffe.so:(:UnknownFieldSetcv(: :undefined::stdUnknownFieldSetmake: Mat(** [.build_release/examples/cifar10/convert_cifar_data.bin] Error 1:reference) 'constto: & string)`.'googlebuild_release:/) lib:/classification.cppprotobuf'libcaffe.so:: (::.io .build_release:undefined/: textreferenceCodedOutputStreamlib :+/to:0x44blibcaffe.so WriteVarint32FallbackToArray:)( google:undefined: :unsigned protobuf :referenceint:undefined,internal :referenceunsigned: toRepeatedPtrFieldBasecharto* :):Swap`cv(googlegoogle:':::: :protobufsplitprotobuf(::cv::internal,internal: ::int::Matcollect2: error: ld returned 1 exit status :RepeatedPtrFieldBase ,*constkEmptyString) '&int',,

. .build_releasestdbuild_releaseint:/,:/ liblibvectorgoogle/</libcaffe.so:libcaffe.socv:::: protobuf ::undefinedundefined: MatDescriptorPoolreference reference,toconst stdto,google: :google :::allocator:cv<protobuf:cvprotobuf:::::::MessageFactoryimencodeioMat(>:std :,> CodedOutputStream:&:int):):make: stringWriteVarint64ToArray'' (*** [.build_release/tools/finetune_net.bin] Error 1 const

unsigned&. classification.cpp,long:build_release (/,.cv lib:unsigned/:textlibcaffe.so +_InputArraychar: 0x689 )const)&undefined:',
referenceundefined. stdbuild_releaseto / :lib:referencegoogle/ :vectorlibcaffe.soto<::unsigned protobuf undefined:charcv:,:internal : reference:std:_OutputArray StringTypeHandlerBase::to: Delete:`(_OutputArraystd(:google::cvstring::protobuf:Mat:
:UnknownFieldSet)::~'UnknownFieldSet .build_release(/)'lib &/.)build_release'libcaffe.so/ lib:/ libcaffe.so:undefined classification.cppundefined: (reference .referenceto textto`cvgoogle+::0x706:)protobuf::imencode:: ioundefined::CodedOutputStream :(:stdWriteVarint32FallbackToArrayreference( :unsigned:string to constint&,, unsigned cvcharcv*:):'::_InputArray_OutputArray: const::_OutputArray&:,( cv:stdallocator::<:unsignedcollect2: error: ld returned 1 exit status vector Mat char>,& )&std': :,allocatorclassification.cpp< unsigned: (charstd>.:text +>:0x719&)vector,: <stdundefined:int: vectorreference,< intto, stdcv:std:::::_InputArrayallocator:<:allocator_InputArray<intint>(> > cv >const :const:&&Mat) ') const.'build_release&/make: lib )/*** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1'. libcaffe.sobuild_release :classification.cpp/ :lib(undefined./textlibcaffe.so :+reference 0x787toundefined )google: :reference : protobufto:undefined: internalreference: :StringTypeHandlerBaseto:google :::Newprotobuf(:):'internal cv.:build_release:/:lib:/StringTypeHandlerBaselibcaffe.so:_OutputArray:: :undefined_OutputArray :referenceNew( (to)cv' :.google:::build_releaseprotobufMat:&:)'/UnknownFieldSetlib :/:classification.cppUnknownFieldSetlibcaffe.so(:)': (. build_releaseundefined/ lib./referencelibcaffe.so text:to +undefinedgoogle :reference:0x79a protobufto: :)UnknownFieldSetgoogle::::UnknownFieldSet :(protobufundefined::internal) :': referenceRepeatedPtrFieldBase.:build_release /:libto/Swaplibcaffe.so :( googleundefined::referenceprotobuf :cv:tointernal:::: RepeatedPtrFieldBase_InputArray)google:': ::.protobufbuild_release_InputArray/:(libcv::internal/::Matlibcaffe.so: :RepeatedPtrFieldBase :constundefined: &reference) Swapto'( google:google::protobuf::protobuf: :internal:classification.cppio::::(CodedOutputStream.::text:+WriteVarint64ToArray0x7c7RepeatedPtrFieldBase()unsigned) :long',
unsigned. undefinedbuild_releasechar/ lib)reference'/ tolibcaffe.so .`:build_releasecv/:lib/ libcaffe.so::_OutputArrayundefined :undefined : _OutputArrayreference (referencecvto :to: Mat &``)googlegoogle': :::protobufprotobuf:classification.cpp::UnknownFieldSet:::io:(~UnknownFieldSet:.(:text)+CodedOutputStream0x7da'): ::.WriteVarint64ToArray build_release(/lib/undefinedunsignedlibcaffe.so :long reference,undefined referencetounsigned tochar googlecv):::':_InputArrayprotobuf: ::_InputArray.:(iobuild_release:cv:/CodedOutputStreamlib:/:libcaffe.so::Mat: WriteVarint32FallbackToArray undefined(constunsigned& )int ,' reference.unsignedbuild_release / examplescharto*/) '` googlecpp_classification::/classification.oprotobuf: ::In UnknownFieldSet:function :collect2: error: ld returned 1 exit status ~UnknownFieldSet`Classifier()::' SetMean(.std:build_release/:lib/string libcaffe.soconst: &)undefined 'reference : to classification.cpp:`google(.text:+0x1635:protobuf)::: io:undefined :CodedOutputStreamreference to ::`cvWriteVarint32FallbackToArray::(unsigned _OutputArray:int, unsigned char*:_OutputArray)'(cv :make: :Mat*** [.build_release/examples/siamese/convert_mnist_siamese_data.bin] Error 1&) ' classification.cpp:(.textcollect2: error: ld returned 1 exit status +0x1647): undefined reference to `cv::merge(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, make: cv::*** [.build_release/tools/test_net.bin] Error 1_OutputArray const& )' classification.cpp:(.text+0x165a): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)' .build_release/examples/cpp_classification/classification.o: In function `main': classification.cpp:(.text.startup+0x21f): undefined reference to `cv::imread(std::string const&, int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::WireFormatLite::ReadString(google::protobuf::io::CodedInputStream*, std::string*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::VarintSize32Fallback(unsigned int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::Skip(int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint64Fallback(unsigned long*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadTagFallback()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::VarintSize64(unsigned long)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::Message::SpaceUsed() const' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int*)' .build_release/lib/libcaffe.so: undefined reference to `vtable for cv::_InputArray' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(google::protobuf::Descriptor const*, google::protobuf::Message const*, int const*, int, int, int, google::protobuf::DescriptorPool const*, google::protobuf::MessageFactory*, int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::StringTypeHandlerBase::Delete(std::string*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::kEmptyString' .build_release/lib/libcaffe.so: undefined reference to `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::StringTypeHandlerBase::New()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::UnknownFieldSet::UnknownFieldSet()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::RepeatedPtrFieldBase::Swap(google::protobuf::internal::RepeatedPtrFieldBase*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint64ToArray(unsigned long, unsigned char*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::UnknownFieldSet::~UnknownFieldSet()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32FallbackToArray(unsigned int, unsigned char*)' collect2: error: ld returned 1 exit status make: *** [.build_release/examples/cpp_classification/classification.bin] Error 1 /usr/bin/ld: warning: libcudart.so.7.5, needed by /usr/local/lib/libopencv_cudabgsegm.so, may conflict with libcudart.so.8.0 .build_release/tools/caffe.o: In function `train()': caffe.cpp:(.text+0x1ab8): undefined reference to `google::protobuf::internal::StringTypeHandlerBase::New()' .build_release/lib/libcaffe.so: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::WireFormatLite::ReadString(google::protobuf::io::CodedInputStream*, std::string*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::VarintSize32Fallback(unsigned int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::Skip(int)' .build_release/lib/libcaffe.so: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint64Fallback(unsigned long*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadTagFallback()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::VarintSize64(unsigned long)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::Message::SpaceUsed() const' .build_release/lib/libcaffe.so: undefined reference to `cv::imread(std::string const&, int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int*)' .build_release/lib/libcaffe.so: undefined reference to `vtable for cv::_InputArray' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(google::protobuf::Descriptor const*, google::protobuf::Message const*, int const*, int, int, int, google::protobuf::DescriptorPool const*, google::protobuf::MessageFactory*, int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::StringTypeHandlerBase::Delete(std::string*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::kEmptyString' .build_release/lib/libcaffe.so: undefined reference to `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::UnknownFieldSet::UnknownFieldSet()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::RepeatedPtrFieldBase::Swap(google::protobuf::internal::RepeatedPtrFieldBase*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint64ToArray(unsigned long, unsigned char*)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::UnknownFieldSet::~UnknownFieldSet()' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32FallbackToArray(unsigned int, unsigned char*)' collect2: error: ld returned 1 exit status make: *** [.build_release/tools/caffe.bin] Error 1 /usr/bin/ld: warning: libcudart.so.7.5, needed by /usr/local/lib/libopencv_cudabgsegm.so, may conflict with libcudart.so.8.0 .build_release/lib/libcaffe.so: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)' .build_release/lib/libcaffe.so: undefined reference /to `google::protobuf::internal::WireFormatLite::ReadString(google::protobuf::iousr:/bin:CodedInputStream*/ld, std: :warning::string *)libcudart.so.7.5' .build_release/lib/libcaffe.so: undefined reference, to needed`google by ::/protobuf:usr:io/local::/libCodedOutputStream::/libopencv_cudabgsegm.soVarintSize32Fallback(,unsigned int)may ' .build_release/libconflict /libcaffe.sowith/ :libcudart.so.8.0 .usrundefinedbuild_release// libbin/referencelibcaffe.so:/ ld :undefined toreferencewarning to:cv googlelibcudart.so.7.5:,:: _OutputArray::needed:protobuf_OutputArray (:cvby::: Matio&/):'usr :./build_releaseCodedInputStream/locallib//lib:/libcaffe.solibopencv_cudabgsegm.so:, :Skip mayundefined (conflictint ) ' referencewith .tobuild_release / liblibcudart.so.8.0 /.build_releasegooglelibcaffe.so:/::protobuftools: :ioundefined/ :reference: CodedInputStreamextract_features.o:to::SetTotalBytesLimit ( int,In intfunctioncv ):'int :._InputArraybuild_release /:lib:/_InputArrayfeature_extraction_pipeline(libcaffe.socv<:::floatMat >undefinedconst (reference& intto,) 'char* google.)build_release:/:lib'protobuf/:::libcaffe.sointernal :::extract_features.cppWireFormatLite :::undefinedReadString(( google.:reference:text._Z27feature_extraction_pipelineIfEiiPPcprotobuf :to: [`iogoogle_Z27feature_extraction_pipelineIfEiiPPc:::]protobuf:/:+usr0xbeeCodedInputStream:)/iobin::, / ld:undefined:std :referenceCodedInputStream:warning: :stringto: ReadVarint64Fallback libcudart.so.7.5)`,'google( unsigned:needed :. longbuild_releaseprotobufby:)/: lib'/internal /usr./:build_releaselibcaffe.so:local://kEmptyStringlib 'lib/ undefined/.libcaffe.solibopencv_cudabgsegm.so :build_release,reference/ lib mayundefinedto/ libcaffe.so conflictreference: withtoundefinedgoogle : libcudart.so.8.0reference: googleprotobuf :.to:build_release :/protobuf:lib:cvio:/::libcaffe.soio:::_OutputArray:: CodedOutputStreamCodedInputStream:undefined:: :::reference_OutputArrayReadTagFallbackVarintSize32Fallback (((tocv)unsigned: ': intcvMat).:&build_release:)'_OutputArray'/

:.lib:./_OutputArraybuild_releaselibcaffe.sobuild_release/(/:cvlib lib/:/:undefinedlibcaffe.soMat libcaffe.so&::reference ) undefined 'undefinedto .referencereferencebuild_release google to/to :lib:/google libcaffe.soprotobuf:::::google ioprotobufundefined:::: ::referenceCodedOutputStreamprotobufio: :to:: :VarintSize64:CodedInputStreamio(google:unsigned:::: SetTotalBytesLimit:longCodedInputStreamprotobuf(::):int':,ioSkip : .(:intintbuild_release)CodedInputStream/):''lib: /SetTotalBytesLimit.libcaffe.so (build_release.:/int lib,undefinedbuild_release /int/libcaffe.soreferencelib) :'/ libcaffe.soundefined.to build_release:reference / undefinedgooglelibto: / reference:libcaffe.soprotobuf :googleto: ::undefined :Message :referenceprotobufcv:: SpaceUsed:to::( internal): _InputArray:google:WireFormatLiteconst::::'protobuf: :ReadString.:_InputArraybuild_release(internal(google/cv:lib::::/WireFormatLiteMatlibcaffe.so: :protobuf::const :&ReadString:undefined()io google'reference:: : :.toprotobufbuild_releaseCodedInputStream: :`,/cviolib ::std/::libcaffe.so:imreadCodedInputStream::string (,stdundefined ) :'std:reference: string:. stringbuild_releaseconstto/ &)lib,'/ google.int:libcaffe.sobuild_release)::/'protobuf :libundefined:. /build_releaseiolibcaffe.soreference:/: lib to:undefined/ CodedInputStreamlibcaffe.so :referencegoogle:: :toundefined:ReadVarint64Fallback protobuf :google(reference:: :iounsignedprotobuf:to:: : longioCodedOutputStreamgoogle::)::::VarintSize32Fallbackprotobuf' .build_release/lib/libcaffe.so:CodedOutputStream: ::undefined(io:unsigned VarintSize32Fallback:reference (:int CodedInputStream)unsigned:to ' :int ReadVarint32Fallback`.()build_releasegoogle'unsigned:/ lib:.intprotobuf/build_releaselibcaffe.so/::)lib:' io /undefined.: libcaffe.so:referencebuild_release: / toCodedInputStreamundefinedlib: /referencelibcaffe.sogoogle: ::toReadTagFallback : (protobufundefined) :googlereference':: :ioto.protobuf:build_release::/ :CodedInputStreamlibio:/::vtable:libcaffe.so SkipCodedInputStreamfor:: (:cvintundefinedSkip: (:)int_InputArrayreference'' ) to '..build_releasebuild_release //.liblibbuild_releasegoogle///:libcaffe.solibcaffe.solib:::/protobuf libcaffe.so: :undefinedundefined :referenceundefinedioreference referenceto: to: toCodedOutputStream:cvgoogle:::cvVarintSize64:::_InputArray:protobuf(_InputArray:unsigned::: ::long_InputArray_InputArrayinternal(:():cvcv': GeneratedMessageReflection:::.:Matbuild_release: MatGeneratedMessageReflection/ constlib(&constgoogle/&)libcaffe.so'): ':: . protobufbuild_release.:/undefinedbuild_releaselib://Descriptorlib libcaffe.so/reference:constlibcaffe.so * :toundefined ,undefinedgooglereferencereferencegoogle :: :totoprotobuf: :protobuf::Messagegoogle:google: :Messageconst:::protobuf:protobuf,::SpaceUsed: :(intio)io: : :const:constCodedInputStreamCodedInputStream':,: ::intReadVarint64Fallback.ReadVarint64Fallback,build_release( /(unsignedlibint /unsigned,libcaffe.so long: longintundefined) ,)' ' googlereference . .:tobuild_releasebuild_release://protobuf liblib://:cvlibcaffe.so:libcaffe.soDescriptorPool:: : const undefined*imread undefined(,reference referencegooglestdto : to: :google`::stringprotobuf: googleprotobuf:::::const:MessageFactory&protobufio*::,:, : ioCodedInputStreamintint::)::)ReadTagFallback''

(CodedInputStream..):build_releasebuild_release:/'ReadTagFallback/ liblib/(./)libcaffe.sobuild_releaselibcaffe.so:':/ lib undefined./undefinedbuild_release libcaffe.so reference/reference : lib to/to undefined libcaffe.so :referencegoogle :googleundefined::toprotobuf :reference::google protobufinternal:to:: :::protobufStringTypeHandlerBaseio:google::::::io:CodedInputStreamprotobuf:Delete::::(ReadVarint32Fallback:CodedOutputStreamstdio(::unsigned::::VarintSize64stringCodedOutputStream (:unsignedint): VarintSize64'long) ()'unsigned.' build_release /..longbuild_release)build_releaselib'// /libcaffe.so.liblibbuild_release:// libcaffe.solibcaffe.so/::libundefined / undefinedlibcaffe.soundefined :reference reference reference undefined to to to reference `googlegoogleto:: vtable:: `protobufprotobufgooglefor:: ::::cvMessageinternal:protobuf::::::_InputArray:kEmptyString'SpaceUsed'Message

(.:).:build_release SpaceUsedbuild_release/(/const)lib' /libconst /libcaffe.so.':libcaffe.so build_release.:/build_release undefinedlibundefined// liblibcaffe.so /referencereference: libcaffe.so to: undefined undefinedtoreference referencecvtogoogle: :to::imencodecvprotobuf :(::std:cvimread::(::internalstdstring:imread :(::constGeneratedMessageReflectionstd&string:: ,:: conststringGeneratedMessageReflection&cv( :,const: &googleint_InputArray:,) :const'protobufint &).,'build_release: /:std.Descriptorlibbuild_release:/ :/libcaffe.soconstlibvector:/< ,unsignedundefinedlibcaffe.so : googlecharreference ,: undefined: to stdprotobufreference: ::toallocator:google< Message:unsigned const:googlechar:protobuf:>,: :io>: protobuf:&:CodedInputStream,int:: io:stdReadVarint32Fallbackconst:(::unsigned:CodedInputStream :vectorint,<: ReadVarint32Fallbackint)int,' ( ,unsignedstd. : build_releaseint:/,lib/libcaffe.so: undefined reference to vtable for cv:allocator<:intint_InputArray> > const'&,) ' . .googlebuild_release:build_release//lib:libprotobuf://libcaffe.solibcaffe.so:::DescriptorPool undefinedundefined reference reference totoconst ``*googlegoogle:,: ::protobufprotobuf:google::int:internal::*internalprotobuf::)::::GeneratedMessageReflection'MessageFactoryStringTypeHandlerBase ::*::,.NewGeneratedMessageReflectionbuild_release((/) libgoogleint':/ ):libcaffe.so':.protobuf build_release :undefined./:libbuild_release/Descriptorlibcaffe.so :const */reference lib,undefined /togooglelibcaffe.so : reference: protobufvtable:to : :forundefinedMessagegooglecv : reference:const:: *protobufto_InputArray ,:' : intgoogle.UnknownFieldSet: :build_releaseconst::/protobuflibUnknownFieldSet,/:(libcaffe.so )int::,'
undefinedinternal.int: ,build_releasereference: /StringTypeHandlerBase libintto:,: Delete`/googlegooglelibcaffe.so(:::: :stdprotobufundefined:protobuf: :::referencestring: DescriptorPoolinternal
to:) const':`, google .:GeneratedMessageReflectionbuild_releasegoogle:::/protobuf:lib::/GeneratedMessageReflectionprotobuflibcaffe.so(::google:::MessageFactoryinternal: :protobuf,undefined:: RepeatedPtrFieldBase:int:referenceDescriptor:) 'Swaptoconst (google. :,build_release: /protobuf`libgooglegoogle::/:libcaffe.so:::internalprotobuf: ::protobufundefined:: ::MessageRepeatedPtrFieldBaseinternalreference )constto': : `,.kEmptyString google'build_release:int/: lib constprotobuf/.:build_releaselibcaffe.so:,:internal /int:libundefined:, StringTypeHandlerBase/intreference:libcaffe.so ::toDelete, ( undefinedstdintgoogle :,reference: :: stringgoogletoprotobuf*:: ::)ioprotobuf'cv:: ::.:CodedOutputStream:build_release:DescriptorPool:/imencodeWriteVarint64ToArray lib(const(std/unsigned,: libcaffe.so: :longgooglestring , : undefined:const unsigned&reference ,protobufchar : tocv:) MessageFactory':*: ,google._InputArray:build_release :/intprotobufconst)lib&:/':, libcaffe.so .internalstd::build_release ::/:undefinedlibkEmptyString vector'/<reference libcaffe.so unsigned:. build_releaseto / charlibundefined/ ,googlelibcaffe.soreference:: : / tostdprotobufundefined :usr ::/reference:bin allocatorgoogle/UnknownFieldSetto:<:ld :::protobufunsigned cv~ ::warningchar:UnknownFieldSet::>(imencode )(libcudart.so.7.5internal'>,std : :.:&:neededStringTypeHandlerBasebuild_releasestring ,/: by libstd const::/&/:Delete,libcaffe.sousrvector :/<( cvlocalintundefined/:std ,:libreference:_InputArray/ : libopencv_cudabgsegm.so stringstd,const:to ):&may'allocator ,< conflict .std intbuild_releasegooglewith:/: :>:libvectorlibcudart.so.8.0protobuf < :/unsigned>.: libcaffe.sobuild_releaseio :char/: constlib,undefined:/ &CodedOutputStream std:libcaffe.so):reference:': : toallocator.WriteVarint32FallbackToArray <build_releaseundefined(/cv unsignedlibunsignedreference: / char:tolibcaffe.so>int imencode /,`(:> cvstd &:usr:undefinedunsigned:,: _OutputArray /referencestring:charstd :bin:to_OutputArray)/const (:ld':&vectorcv <google,:int: :warning,:Matcv :&:std protobuf)::libcudart.so.7.5'_InputArray:,: allocator collect2: error: ld returned 1 exit status const:<&.neededinternal,intbuild_release >/by: stdlib >:/:/ libcaffe.soStringTypeHandlerBaseusr:::const/:vectorlocal& </)undefined' .build_release/lib/libcaffe.so: undefined reference togoogle:unsigned :reference to libprotobuf google:::/protobuf:charlibopencv_cudabgsegm.sointernal, may conflict,:: :StringTypeHandlerBase:: :ioNewwith libcudart.so.8.0:( :std.):CodedInputStream': :SetTotalBytesLimit(.int:build_release,/allocator lib/intlibcaffe.so)<':unsigned undefined reference.char build_release/to> lib/google:: protobuflibcaffe.so>:&: ,undefined: UnknownFieldSetreference to::stdUnknownFieldSet: :(google)vector:<:'protobuf: :internal:.int:build_releaseWireFormatLite/:,lib:/ ReadStringmake: libcaffe.sostd(*** [.build_release/tools/device_query.bin] Error 1:google: : ::undefinedallocator protobuf<reference:int:> toio:>:CodedInputStreamgoogle:New:,constprotobuf &std::(string)')) :.'build_release/' lib.:/internal::RepeatedPtrFieldBase::Swap(googlebuild_release:libcaffe.so: protobuf/::lib:.build_releaseinternal/ /:undefinedlibcaffe.solib: /referenceRepeatedPtrFieldBase:libcaffe.so )undefinedto:' . build_releasegoogleundefinedreference: /:reference libprotobuf /:tolibcaffe.so: toio::google: : CodedOutputStreamundefined:: :referenceVarintSize32Fallbackgoogle protobufto(: ::unsignedprotobuf google:::int::)internalprotobuf'UnknownFieldSet: ::.::build_releaseio/::StringTypeHandlerBaselibUnknownFieldSet::(/:)libcaffe.so'NewCodedOutputStream: :( :).WriteVarint64ToArrayundefined(build_release 'unsignedreference/ .tolong lib,build_release` //unsignedgooglelib /:libcaffe.socharlibcaffe.so::: undefinedprotobuf): :undefined'reference ioreference .:tobuild_release /:libtoCodedInputStream google:/:::Skiplibcaffe.sogoogle(:protobufint ):undefined': reference::. protobuftobuild_releaseinternal/ :lib:/googlelibcaffe.so::::RepeatedPtrFieldBase :UnknownFieldSetprotobufundefined:: :reference:UnknownFieldSet :(to:) UnknownFieldSetSwap:cv(:'google~: UnknownFieldSet:._InputArray:build_release:(/::)protobuf_InputArraylib:(':cv/ :internal.:libcaffe.sobuild_releaseMat: / :libundefined: const/RepeatedPtrFieldBase&libcaffe.soreference: ) to'undefined ) referencegoogle.: build_release'/:to protobuf lib:/google.libcaffe.so:::internal build_release:undefined/ :libRepeatedPtrFieldBasereference/ libcaffe.so::to :Swapundefinedgoogle( google::referenceprotobuf:::: protobufioto:::: CodedInputStreaminternal:::googleRepeatedPtrFieldBase::ReadVarint64Fallback:protobuf:)('unsigned :. build_releaselong/io:)lib:/' CodedOutputStream.libcaffe.sobuild_release/:/usr: lib/undefined/libcaffe.so :bin:reference /undefinedWriteVarint64ToArray (referencetounsigned ld to:long ,warninggoogle ::unsigned google libcudart.so.7.5:char:,protobuf: protobuf)needed:' ::byio /:::iousr:/CodedOutputStream:local:/:WriteVarint64ToArrayCodedInputStreamlib/(libopencv_cudabgsegm.so:,: unsignedmayReadTagFallback( ) 'conflict . longbuild_release,/with liblibcudart.so.8.0/unsigned .build_releaselibcaffe.sobuild_release :/char lib/undefined)/ 'libcaffe.soreferencelib .to google:::build_releaseprotobuf //:libcaffe.solibundefined:/ io:reference: :libcaffe.sotoCodedOutputStreamundefined:: :undefinedVarintSize64cv (: unsigned:reference_OutputArray long:)': _OutputArray :to.( build_releasecv/:protobuflib/:libcaffe.so::cvMat:io:&:::_OutputArray ):undefined': CodedOutputStream :reference._OutputArraybuild_release :/toWriteVarint32FallbackToArraylib(/( unsignedcv libcaffe.so:intgoogle,::: : undefinedprotobufunsignedMat :referencechar&:) 'toMessage) :' : .SpaceUsedgoogle(:build_release:/lib)protobuf/:libcaffe.so: :constio :undefinedcollect2: error: ld returned 1 exit status ': referenceCodedInputStream :.:build_releaseSetTotalBytesLimit/libto/( intlibcaffe.so,:intgoogle :undefined) 'reference: protobufto:.:build_release /iolibcv/:libcaffe.so: : :undefinedimread :reference.(CodedInputStream build_release:stdto:/: lib:SetTotalBytesLimitstringgoogle (:/const:intlibcaffe.soprotobuf&::, :undefined,internal : :referenceintWireFormatLite) int':to:) ReadString'. (build_release.google/build_release/lib:google/lib::/protobuflibcaffe.so:libcaffe.so::::protobufio :undefined reference: CodedInputStreamto *undefined,google :std :reference::stringprotobuf *::)io':to: CodedInputStream.: :build_release/googleReadVarint32Fallbacklib:/:make: (libcaffe.soprotobuf*** [.build_release/tools/net_speed_benchmark.bin] Error 1unsigned : int*)':internal .build_release/lib:reference:/WireFormatLite libcaffe.soto: :google:undefined: :referenceReadString (googleprotobufto: :UnknownFieldSet:::vtable: protobuffor~:UnknownFieldSet: (cv):io::'_InputArray :'CodedInputStream ..*build_release/build_releaselib/,lib/ libcaffe.so/std:libcaffe.so :undefined :reference :undefined toreferencestring * )togoogle :':protobufgoogle :.:::internalbuild_release::/UnknownFieldSet:::libprotobufGeneratedMessageReflection/:libcaffe.so: undefined :~referenceUnknownFieldSet::( GeneratedMessageReflection)to: 'io(: :google:CodedOutputStream.::googleprotobuf:build_release:WriteVarint32FallbackToArray::(:Descriptor/unsigned libconst protobuf/intlibcaffe.so,:, : google:unsigned:io :undefinedchar:protobuf::) :CodedOutputStreamreferenceMessage' to:const :,VarintSize32Fallback ( unsignedint ` googleconstint),': .int,build_release :intcollect2: error: ld returned 1 exit status :protobuf undefined::io reference ::/toCodedOutputStream :lib:WriteVarint32FallbackToArraygoogle/:,:libcaffe.soprotobuf(: : int:undefinedunsignedio , :referenceint :google,CodedOutputStream:to: :unsigned protobuf: :VarintSize32Fallback:(charDescriptorPoolunsigned google ):int'const): 'protobuf,: : .googlebuild_releaseio/:lib:/protobuflibcaffe.so::: :undefined reference:MessageFactory CodedInputStreamto* ,: intcollect2: error: ld returned 1 exit status :googleSkip(::protobuf::)io:int':)CodedInputStream :.'build_release /:libmake: Skip./(build_releaselibcaffe.soint/:)lib *** [.build_release/tools/extract_features.bin] Error 1' undefined . build_releasereference/ tolib /libcaffe.sogoogle:: undefined /reference:libcaffe.soprotobuf :to: :`internalcv:: ::_InputArrayStringTypeHandlerBase:::undefined_InputArray: Delete((cvreference:std: :Matto :conststring&*)) ''

..build_releasebuild_release//cvliblib//libcaffe.solibcaffe.so::: undefined: undefinedreference reference _InputArrayto to: ``googlegoogle:::::protobufprotobuf_InputArray::::internalio(:::cvCodedInputStream::make: ::kEmptyString:ReadVarint64Fallback'Mat(*** [.build_release/tools/upgrade_net_proto_text.bin] Error 1 unsigned .const build_releaselong/*lib)&'/ libcaffe.so:).' build_releaseundefined. build_releasereference//lib /tolib libcaffe.so:/ cvundefined: :libcaffe.soimencodereference( :tostd ::google :string: protobufconst:undefined:&io, :cv:referenceCodedInputStream::::_InputArray ReadTagFallbackconst(to)&' , .stdbuild_release/:lib:googlevector/<:libcaffe.so:unsigned:protobuf undefinedchar ,: referencestd: io:to: ::googleallocator:CodedInputStream:<protobufunsigned: ::iochar:>:CodedOutputStream :>:&:ReadVarint64FallbackVarintSize64,( (stdunsigned:: longunsignedvector )long<*'int), .build_releasestd':/:lib /allocatorlibcaffe.so<.int:> undefinedbuild_release >reference constto&/) 'libgoogle :.:/build_releaseprotobuflibcaffe.so:/:lib:/Messagelibcaffe.so::: SpaceUsed (undefined reference)undefined constto ' google.referencebuild_release:/:protobuf: lib:tointernal/:libcaffe.so :: StringTypeHandlerBaseundefined:: Newreferencegoogle (to) ': .cv::build_release:/protobuflibimread/(:stdlibcaffe.so::::string undefinedconstio& ,reference: toint ):' googleCodedInputStream:.:build_release:/protobuflib:/:libcaffe.so::UnknownFieldSet :undefined:ReadTagFallbackUnknownFieldSet (reference( )to') .build_releasegoogle':/:libprotobuf/:libcaffe.so :: io.:undefined: CodedInputStreamreferencebuild_release :to/: libReadVarint32Fallbackgoogle(/unsignedlibcaffe.so :: int:undefinedprotobuf:):' internal.:build_release/reference: libtoRepeatedPtrFieldBase/ libcaffe.so:::undefinedSwapgoogle(:google ::referenceprotobuf :to:protobuf: :io:internalvtable: :for: RepeatedPtrFieldBasecv:):':CodedOutputStream_InputArray ': ..build_releasebuild_release/:lib//libVarintSize64/libcaffe.solibcaffe.so(:unsigned : undefinedundefined referencereference longtoto )'google:google:protobuf ::.::ioprotobuf::build_release::CodedOutputStreaminternal:::/WriteVarint64ToArray:(GeneratedMessageReflectionlib:unsigned:/ libcaffe.soGeneratedMessageReflection:long( google,: :protobufunsignedundefined :char: Descriptor const)reference' , .googleto:build_release: /libprotobufgoogle:/:libcaffe.soMessage: :undefinedconst *:,reference inttoprotobufconstgoogle:::protobuf::,: MessageintUnknownFieldSet,: :int:,~ UnknownFieldSet:(int),' SpaceUsed.googlebuild_release:(:/protobuflib)/:libcaffe.so::DescriptorPool constundefined,const ' reference googleto: :.googleprotobuf::::protobufbuild_releaseMessageFactory:*:/io,:lib: CodedOutputStreamint:)/': WriteVarint32FallbackToArray(.libcaffe.sobuild_releaseunsigned/ :intlib,/ libcaffe.sounsigned :char *undefined)undefined' reference toreferencegoogle:: protobuf:to:internal ::cvcollect2: error: ld returned 1 exit status :StringTypeHandlerBase::imread(:Delete(std::stdstring*:)': .stringbuild_release/ lib/libcaffe.so: constundefined reference &to,google:: intprotobuf):' :internal.::build_releasekEmptyString/' .build_release/liblib/libcaffe.so/: libcaffe.soundefined reference: to undefined cv:reference:imencode( std:to:string const& , cv::google_InputArray const&,: std:protobuf::vector<unsigned :char, :iostd:::allocator<:unsigned charCodedInputStream> :>:&, std::vectorReadVarint32Fallback<int(, stdunsigned:: allocatormake: <intint*>)'*** [.build_release/tools/train_net.bin] Error 1

. build_release/constlib/&)libcaffe.so: ' .undefined build_release/lib/libcaffe.soreference: toundefined reference tovtablegoogle::protobuffor::internal cv::StringTypeHandlerBase:::_InputArray:New()' '.build_release /lib./build_releaselibcaffe.so: undefined reference to/ libgoogle:/:protobuf:libcaffe.so:UnknownFieldSet: ::UnknownFieldSetundefined reference() 'to .build_release/lib/libcaffe.sogoogle: :undefined: referenceprotobuf to ::googleinternal::protobuf::internal::::RepeatedPtrFieldBaseGeneratedMessageReflection::Swap(google::::protobuf::GeneratedMessageReflectioninternal::(RepeatedPtrFieldBase*)' .build_releasegoogle/lib/::libcaffe.so: undefined referenceprotobuf togoogle:::protobuf:::io::CodedOutputStream:Descriptor:WriteVarint64ToArray (unsigned long, unsignedconst char,)' .google::build_release/protobuflib/:libcaffe.so:: undefined reference toMessage google:const:protobuf*::,UnknownFieldSet :int :~UnknownFieldSetconst*(),' int,.build_release /libint/libcaffe.so: undefined, reference to intgoogle,::protobuf ::iogoogle::CodedOutputStream:::protobuf:WriteVarint32FallbackToArray:(unsigned: int, unsignedDescriptorPool char )const' , google::protobuf::MessageFactorycollect2: error: ld returned 1 exit status , int)' .build_release/lib/libcaffe.so: undefined reference to `google::protobuf::internal::StringTypeHandlerBase::Delete(std::string)' .build_release/lib/make: libcaffe.so: undefined reference * [.build_release/tools/upgrade_solver_proto_text.bin] Error 1to google::protobuf::internal::kEmptyString' .build_release/lib/libcaffe.so: undefined reference tocv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator >&, std::vector<int, std::allocator > const&)' .build_release/lib/libcaffe.so: undefined reference to google::protobuf::internal::StringTypeHandlerBase::New()' .build_release/lib/libcaffe.so: undefined reference togoogle::protobuf::UnknownFieldSet::UnknownFieldSet()' .build_release/lib/libcaffe.so: undefined reference to google::protobuf::internal::RepeatedPtrFieldBase::Swap(google::protobuf::internal::RepeatedPtrFieldBase*)' .build_release/lib/libcaffe.so: undefined reference togoogle::protobuf::io::CodedOutputStream::WriteVarint64ToArray(unsigned long, unsigned char)' .build_release/lib/libcaffe.so: undefined reference to google::protobuf::UnknownFieldSet::~UnknownFieldSet()' .build_release/lib/libcaffe.so: undefined reference togoogle::protobuf::io::CodedOutputStream::WriteVarint32FallbackToArray(unsigned int, unsigned char)' collect2: error: ld returned 1 exit status make: * [.build_release/tools/compute_image_mean.bin] Error 1

nicholasmireles commented 5 years ago

This question potentially would be better asked in the Caffe repo. But, I had the same issue and the issue is that I was compiling Caffe with GCC 4.9 and the protobuf library I was using was compiled with something higher and there is a mismatch with the ABI. You can try compiling protobuf from source with the version of gcc that you're using, or building Caffe with a higher version of GCC (just not 5.5, because there's a known bug in that version that will break the compilation). For me, I used GCC 5.0 and then set this flag: "-D_GLIBCXX_USE_CXX11_ABI=0" since I compiled the NCCL library with a lower GCC version and I had a mangling error.