When I run my code, I encounter a problem with boost-python. Similar:
dyld: Symbol not found: _PyBaseObject_Type
Referenced from: /opt/local/lib/libboost_python-mt.dylib
Expected in: flat namespace
My project might work correctly a few months ago. But now, when I reconfigure the environment, it cannot work.
- A few months ago I used homebrew to set up an environment like this:
brew install boost
brew install python
brew install boost-python
brew install opencv(My project is an Opencv project)
-But now it does not work, and the error is the same as above. Therefore, I use Macports to install boost, for example:
sudo port install boost
sudo port install py27-pip
sudo port select
sudo port select
sudo port install py27-numpy
brew install opencv(The version of opencv in port is 3.0, so i use brew)
- One problem.
Who knows how to deal with this problem? Is it about boost-python? How should I install boost-python correctly? Is this about boost / boost-python version?
source
share