SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
756 stars 271 forks source link

build WarpCTC process : make---clang: error: unsupported option '-fopenmp' #42

Open JiHanFly opened 6 years ago

JiHanFly commented 6 years ago

when i build WarpCTC in my mac ,until run 'make' command in command line , it stoped by error 'clang: error: unsupported option '-fopenmp'' , did i use the wrong compiler? so i just brew gcc ,and set the CC envirment variable ,like "export CC=/usr/bin/gcc; CXX=/usr/bin/g++;MPICXX=/usr/bin/mpicxx;" but this error still ocurred ,so excusted ,can you dalaos help me ?

ghost commented 6 years ago

@JiHanFly The following steps worked for me: brew install llvm brew install gcc then run the following cmake command cmake -DCMAKE_CXX_COMPILER=g++-8 .. make