gPb
gPb copied to clipboard
Anyone successfully compiled this code in Windows?
nope. Please write your issue here for log purposes but I cannot help you with that: the error seems non-OpenCV relkated though.
I wonder the same question!
please write the errors that you are getting
I am having problems compiling it on Mac OS 64 bit. when i do make in build folder i get this error
gPb-master/grouping/source/gpb_src/src/math/libraries/lib_image.cc:6154:30: error: default initialization of an object of const type 'const edge_compare' requires a user-provided default constructor static const edge_compare e_compare; ^
any help?
to cmaere: just add an empty constructor to that class.
i'm trying on mac os x too. i have got the libs successfully before the 'export LD_LIBRARY_PATH=$(pwd)/lib:/usr/lib' step. but when i'm running the 'compile' in octave, i get many "No such file or directory" warnings. and when i'm running the 'example', i get this message: error: 'mex_pb_parts_final_selected' undefined near line 8 column 4 error: called from: error: gPb-master/grouping/lib/det_mPb.m at line 8, column 2 error: gPb-master/grouping/lib/multiscalePb.m at line 24, column 64 error: gPb-master/grouping/lib/globalPb.m at line 39, colum
since i'm not good at octave, anyone can help me?
Hi wolfwind521 i managed to run the gPD in Mac if you check the lib directory you will find mex_pb_parts_final_selectedmaci64 make sure the code uses this not mex_pb_parts_final_selected cause this one is for linux platform. This bring me a question to the developers if they can provide a mex for windows platform, a lot of people they prefer using matlab on windows, or if they can provide c++ codes for all the mex files so that we can generate our own mex file depending on the platform we are using.
Hi cmaere, i see the mexmaci64 files under the lib directory. but i don't know how to "make sure the code uses this not mex_pb_parts_final_selected ". could you please tell me? many thanks.
Just curious, how di you find that repo ? It is not even in sync with upstream. I guess this did not get merged in OpenCV then.
first of all i hope your hardware is a 64bit, as for me i used a macbook pro running mountain Lion. and to make this mex_pb_parts_final_selectedmexmaci64 working i did several troubleshooting first of all mex_pb_parts_final_selected is called in this function grouping/lib/det_mPb.m on line 8. put a break point here and run the function separately notice what error it is producing, that will give you a crew why its not running in you PC.
if you still have problems then just compile your own mex from the c file i have attached. make sure your Xcode works propery
regards,
On Tue, Dec 16, 2014 at 1:21 PM, Meng Gai [email protected] wrote:
Hi cmaere, i see the mexmaci64 files under the lib directory. but i don't know how to "make sure the code uses this not mex_pb_parts_final_selected ". could you please tell me? many thanks.
— Reply to this email directly or view it on GitHub https://github.com/vrabaud/gPb/issues/1#issuecomment-67145348.
Charlie Maere ICT Director University of Malawi Kamuzu College of Nursing Cell: +265993684680 website: www.kcn.unima.mw
My hardware is 64bit, and the OS version is OS X Yosemite. I think the environment is not the problem.
It seems that det_mPb.m can not find the definition of symbol "mex_pb_parts_final_selected" at all. when i put a break point on line 8 and select "step in", it jumps to "unimplemented" .
How to let det_mPb.m know the existance of mex_pb_parts_final_selected.mexmaci64? should i modify the source code, configure something or add the lib directory to envionment variables?
I also faced the problem when I run the Matlab version. The error is as follows:
Undefined function or variable 'mex_pb_parts_final_selected'.
Error in det_mPb (line 6)
textons, ...
Error in multiscalePb (line 24)
[bg1, bg2, bg3, cga1, cga2, cga3, cgb1, cgb2, cgb3, tg1, tg2, tg3, textons] = det_mPb(im);
Error in globalPb (line 39)
[mPb, mPb_rsz, bg1, bg2, bg3, cga1, cga2, cga3, cgb1, cgb2, cgb3, tg1, tg2, tg3, textons] =
multiscalePb(im, rsz);
Error in test_gPb_ucm (line 13)
gPb_orient = globalPb(imgFile, outFile);
I make sure the routine is right and in the lib folder there is mex_pb_parts_final_selected.mexa64
indeed. Any one solve the problem?
same problem, any help please?
I try to compile in windows 7 with matlab 2014a, but got the following errors, can anybody help? Thanks.
''' Compiling....................................... Building with 'Microsoft Visual C++ 2010'. Error using mex mex_contour_sides.cc ./include\math/matrices/matrix.hh(1277) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope ./include\math/matrices/matrix.hh(1610) : see reference to class template instantiation 'math::matrices::matrix<T,Syn>' being compiled ./include\math/matrices/matrix.hh(1277) : error C2143: syntax error : missing ';' before '<' ./include\math/matrices/matrix.hh(1277) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined ./include\math/matrices/matrix.hh(1277) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations ./include\math/matrices/matrix.hh(1277) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' ./include\math/matrices/matrix.hh(1280) : error C2238: unexpected token(s) preceding ';' ./include\math/matrices/matrix.hh(1282) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope ./include\math/matrices/matrix.hh(1282) : error C2143: syntax error : missing ';' before '<' ./include\math/matrices/matrix.hh(1282) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined ./include\math/matrices/matrix.hh(1282) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations ./include\math/matrices/matrix.hh(1282) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' ./include\math/matrices/matrix.hh(1286) : error C2238: unexpected token(s) preceding ';' ./include\math/matrices/matrix.hh(1292) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope ./include\math/matrices/matrix.hh(1292) : error C2143: syntax error : missing ';' before '<' ./include\math/matrices/matrix.hh(1292) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined ./include\math/matrices/matrix.hh(1292) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations ./include\math/matrices/matrix.hh(1292) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' ./include\math/matrices/matrix.hh(1296) : error C2238: unexpected token(s) preceding ';' ./include\math/matrices/matrix.hh(1298) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope ./include\math/matrices/matrix.hh(1298) : error C2143: syntax error : missing ';' before '<' ./include\math/matrices/matrix.hh(1298) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined ./include\math/matrices/matrix.hh(1298) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations ./include\math/matrices/matrix.hh(1298) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' ./include\math/matrices/matrix.hh(1303) : error C2238: unexpected token(s) preceding ';' ./include\math/matrices/matrix.hh(1310) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope ./include\math/matrices/matrix.hh(1310) : error C2143: syntax error : missing ';' before '<' ./include\math/matrices/matrix.hh(1310) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined ./include\math/matrices/matrix.hh(1310) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations ./include\math/matrices/matrix.hh(1310) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' ./include\math/matrices/matrix.hh(1313) : error C2238: unexpected token(s) preceding ';' ./include\math/matrices/matrix.hh(1315) : error C3771: 'resize' : friend declaration cannot be found in the nearest namespace scope ./include\math/matrices/matrix.hh(1315) : error C2143: syntax error : missing ';' before '<' ./include\math/matrices/matrix.hh(1315) : error C2460: 'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined ./include\math/matrices/matrix.hh(1315) : error C2433: 'math::matrices::resize' : 'friend' not permitted on data declarations ./include\math/matrices/matrix.hh(1315) : error C2365: 'math::matrices::resize' : redefinition; previous definition was 'function' ./include\math/matrices/matrix.hh(1319) : error C2238: unexpected token(s) preceding ';'
Error in compile (line 55) mex ./matlab/segmentation/mex_contour_sides.cc -I./include '''
I am also facing the same problem when I run the Matlab version on Windows 10. Following are the errors, Any help would be highly appreciated. Thanks in advance.
Undefined function 'mex_pb_parts_final_selected' for input arguments of type 'double'.
Error in det_mPb (line 6) textons, ...
Error in multiscalePb (line 24) [bg1, bg2, bg3, cga1, cga2, cga3, cgb1, cgb2, cgb3, tg1, tg2, tg3, textons] = det_mPb(im);
Error in globalPb (line 39) [mPb, mPb_rsz, bg1, bg2, bg3, cga1, cga2, cga3, cgb1, cgb2, cgb3, tg1, tg2, tg3, textons] = multiscalePb(im, rsz);
I am also facing the same problem as Sudeepdev
Undefined function 'mex_pb_parts_final_selected' for input arguments of type 'double'.
Error in det_mPb (line 6) textons, ...
Error in multiscalePb (line 24) [bg1, bg2, bg3, cga1, cga2, cga3, cgb1, cgb2, cgb3, tg1, tg2, tg3, textons] = det_mPb(im);
Error in globalPb (line 39) [mPb, mPb_rsz, bg1, bg2, bg3, cga1, cga2, cga3, cgb1, cgb2, cgb3, tg1, tg2, tg3, textons] = multiscalePb(im, rsz);
how can i solve this one?