OpenCV Undefined symbols for architecture x86_64: error

后端 未结 3 431
别跟我提以往
别跟我提以往 2020-12-04 14:09

before this gets flagged as a repeat question please read the end. Thanks for looking.

I set up openCV using home-brew.

These were the commands I used:

3条回答
  •  無奈伤痛
    2020-12-04 14:30

    My problem was that brew compiled and linked with Xcode, and I was using a different version of g++ from macports. I just added the Xcode g++ location to my $PATH variable in my .bash_profile file and unlinked the wrong g++ binary with sudo port select --set gcc none. You can find the Xcode g++ location by running xcodebuild -find g++, mine was /Applications/Xcode.app/Contents/Developer/usr/bin/g++.

提交回复
热议问题