Skip to content

ImportError when running the test #6

@ppalasek

Description

@ppalasek

Hi! I've been getting the following error after running make and make test:

ImportError: ./examples.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv

Some info about my configuration:
Ubuntu 12.04
g++ 4.6.3
Python 2.7.3
boost 1.48

Fixed it by changing the lines 20-22 in the Make file into:
$(TARGET).so: $(TARGET).o conversion.o
$(CXX) -shared -Wl,-soname,$(TARGET).so $(TARGET).o conversion.o -o $(TARGET).so $(LDFLAGS)
$(OPENCV_LDFLAGS) $(OPENCV_LIBS) $(BOOST_LIBS) $(PYTHON_LIBS) \

(Following the answer from http://stackoverflow.com/questions/1780003/import-error-on-boost-python-hello-program)

Maybe it helps someone, thanks for sharing the code!

Best,
Petar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions