QPBO: error using mex

5 views (last 30 days)
Pia
Pia on 13 Oct 2014
Commented: ya co on 17 Mar 2018
I try to execute Pylon code, which is based on QPBO from Vladimir Kolmogorov http://faculty.ucmerced.edu/mhyang/project/iccv13_exemplar/ICCV13_exemplarCut/code4segment/Pylon/ by running
pylonExample
in the MATLAB Command Window, I get the following error and a bunch of warnings.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mex: link of ' "SolveQPBO.mexmaci64"' failed.
Error using mex (line 206)
Unable to complete successfully.
Error in pylonSetup (line 9)
mex SolveQPBO.cpp QPBO_postprocessing.cpp QPBO_extra.cpp QPBO_maxflow.cpp QPBO.cpp
Error in pylonExample (line 10)
pylonSetup;
I use Mac OSX. Does someone know how to solve this problem?
  2 Comments
Geoff Hayes
Geoff Hayes on 21 Oct 2014
Pia - was there an indication of which symbols weren't found? If so, please include those lines in your question so that we can try to figure out which library you may need or why the symbols aren't being included. If not, try compiling the MEX function with verbosity enabled as
mex -v SolveQPBO.cpp QPBO_postprocessing.cpp QPBO_extra.cpp QPBO_maxflow.cpp QPBO.cpp
ya co
ya co on 17 Mar 2018
Hi, I met another problem similar to this.
/pylon/instances.inc:14:25: error:
explicit specialization of 'get_type_information' after instantiation
inline void QPBO<int>::get_type_information(char*& type_name, char*& type_format)
When I try to install or compile pylon, this always happen.Both clang and gcc is not ok. What is the reason?

Sign in to comment.

Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!