Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

cant compile paperdoll #16

Closed
hosnasattar opened this issue Jun 6, 2016 · 11 comments
Closed

cant compile paperdoll #16

hosnasattar opened this issue Jun 6, 2016 · 11 comments

Comments

@hosnasattar
Copy link

Hi,
sorry to write it here, i was not able to find a repo for paper doll. I can not compile the paper doll. it seems I have some problem with gco, if I comment it out everything else will work, then when I type in

result = feature_calculator.apply(config, input_sample)
I will get
Invalid MEX-file '/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/pose/+pose/private/shiftdt.mexa64': /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/pose/+pose/private/shiftdt.mexa64)

Error in detect_fast>passmsg (line 128)
[score0(:,:,k),Ix0(:,:,k),Iy0(:,:,k)] = shiftdt(child.score(:,:,k), child.w(1,k), child.w(2,k), child.w(3,k), child.w(4,k),child.startx(k),child.starty(k),Nx,Ny,child.step);

Error in detect_fast (line 43)
[msg,parts(k).Ix,parts(k).Iy,parts(k).Ik] = passmsg(parts(k),parts(par));

Error in pose.estimate>process (line 38)
box = detect_fast(im, model, detector_threshold);

Error in pose.estimate (line 21)
boxes{i} = process(model, samples{i}, scale, nms_threshold);

Error in pose_calculator.apply (line 24)
samples(i).(config.output) = pose.estimate(config.model, ...

Error in feature_calculator.apply (line 25)
sample = calculators{j}(config{j}, sample, varargin{:}, 'Encode', false);

result =

 []

can you help me with it please?

@kyamagu
Copy link
Owner

kyamagu commented Jun 6, 2016

@hosna I don't an extensive support plan for a proof-of-concept project like paperdoll and that's why I don't have it on github. Nevertheless, the error seems to be a C++ runtime issue. What exactly is the compile error you get? You will need to successfully compile the code in the current platform.

@hosnasattar
Copy link
Author

Error using mex
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:31:23: warning: ‘GCO_CLOCKS_PER_SEC’ initialized and declared ‘extern’
extern "C" gcoclock_t GCO_CLOCKS_PER_SEC = CLOCKS_PER_SEC;

                   ^

In file included from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:109:0,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h: In instantiation of ‘int Energy<captype, tcaptype,
flowtype>::get_var(Energy<captype, tcaptype, flowtype>::Var) [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::Var
= int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:197:20: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:328:91: error: ‘what_segment’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
inline int Energy<captype,tcaptype,flowtype>::get_var(Var x) { return (int) what_segment(x); }

                                                                                       ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:328:91: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:328:91: note: use ‘this->what_segment’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h: In instantiation of ‘void Energy<captype, tcaptype,
flowtype>::add_term1(Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value) [with captype
= int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::Var = int; Energy<captype, tcaptype, flowtype>::Value = int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:280:22: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:207:22: error: ‘add_tweights’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, B, A);

                  ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:207:22: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:207:22: note: use ‘this->add_tweights’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h: In instantiation of ‘void Energy<captype, tcaptype,
flowtype>::add_term2(Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Value, Energy<captype,
tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value) [with captype = int; tcaptype = int; flowtype =
long long int; Energy<captype, tcaptype, flowtype>::Var = int; Energy<captype, tcaptype, flowtype>::Value = int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:304:42: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:220:22: error: ‘add_tweights’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, D, A);

                  ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:220:22: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:220:22: note: use ‘this->add_tweights’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:235:23: error: ‘add_tweights’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, 0, B); /* first term */

                   ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:235:23: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:235:23: note: use ‘this->add_tweights’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:236:24: error: ‘add_tweights’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(y, 0, -B); /* second term */

                    ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:236:24: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:236:24: note: use ‘this->add_tweights’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:237:24: error: ‘add_edge’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_edge(x, y, 0, B+C); /* third term */

                    ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:237:24: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:237:24: note: use ‘this->add_edge’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:245:24: error: ‘add_tweights’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(x, 0, -C); /* first term */

                    ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:245:24: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:245:24: note: use ‘this->add_tweights’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:246:23: error: ‘add_tweights’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_tweights(y, 0, C); /* second term */

                   ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:246:23: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:246:23: note: use ‘this->add_tweights’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:247:24: error: ‘add_edge’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_edge(x, y, B+C, 0); /* third term */

                    ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:247:24: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:247:24: note: use ‘this->add_edge’ instead
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:251:22: error: ‘add_edge’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation [-fpermissive]
add_edge(x, y, B, C);

                  ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:251:22: note: declarations in dependent base ‘Graph<int, int, long long int>’ are
not found by unqualified lookup
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:251:22: note: use ‘this->add_edge’ instead
In file included from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:110:0,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp: In instantiation of ‘Graph<captype, tcaptype, flowtype>::Graph(int, int, void
()(char)) [with captype = int; tcaptype = int; flowtype = long long int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:187:189: required from ‘Energy<captype, tcaptype, flowtype>::Energy(int, int,
void ()(char)) [with captype = int; tcaptype = int; flowtype = long long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1230:33: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp:21:83: warning: deprecated conversion from string constant to ‘char_’
[-Wwrite-strings]
if (!nodes || !arcs) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }

                                                                               ^

In file included from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:111:0,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp: In instantiation of ‘flowtype Graph<captype, tcaptype,
flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:325:33: required from ‘Energy<captype, tcaptype, flowtype>::TotalValue
Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::TotalValue = long
long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1237:37: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:484:145: warning: deprecated conversion from string constant to ‘char

[-Wwrite-strings]
if (maxflow_iteration == 0 && reuse_trees) { if (error_function) (*error_function)("reuse_trees cannot be used in the first call to maxflow()!"); exit(1); }

                                                                                                                                             ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:485:126: warning: deprecated conversion from string constant to ‘char_’
[-Wwrite-strings]
if (changed_list && !reuse_trees) { if (error_function) (_error_function)("changed_list cannot be used without reuse_trees!"); exit(1); }

                                                                                                                          ^

In file included from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:110:0,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp: In instantiation of ‘void Graph<captype, tcaptype,
flowtype>::reallocate_nodes(int) [with captype = int; tcaptype = int; flowtype = long long int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/graph.h:364:54: required from ‘Graph<captype, tcaptype, flowtype>::node_id Graph<captype,
tcaptype, flowtype>::add_node(int) [with captype = int; tcaptype = int; flowtype = long long int; Graph<captype, tcaptype, flowtype>::node_id = int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:198:30: required from ‘Energy<captype, tcaptype, flowtype>::Var Energy<captype,
tcaptype, flowtype>::add_variable(int) [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::Var = int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1140:31: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/graph.cpp:70:74: warning: deprecated conversion from string constant to ‘char_’
[-Wwrite-strings]
if (!nodes) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }

                                                                      ^

In file included from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/graph.h:43:0,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:77,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.h:109,
from /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:4:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/block.h: In instantiation of ‘Type* Block::New(int) [with Type = int]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:110:36: required from ‘void Graph<captype, tcaptype,
flowtype>::add_to_changed_list(Graph<captype, tcaptype, flowtype>::node_) [with captype = int; tcaptype = int; flowtype = long long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:520:27: required from ‘flowtype Graph<captype, tcaptype,
flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:325:33: required from ‘Energy<captype, tcaptype, flowtype>::TotalValue
Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::TotalValue = long
long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1237:37: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/block.h:124:76: warning: deprecated conversion from string constant to ‘char

[-Wwrite-strings]
if (!next) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }

                                                                        ^

/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/block.h: In instantiation of ‘Type* DBlock::New() [with Type = Graph<int, int, long
long int>::nodeptr]’:
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:95:5: required from ‘void Graph<captype, tcaptype,
flowtype>::set_orphan_rear(Graph<captype, tcaptype, flowtype>::node_) [with captype = int; tcaptype = int; flowtype = long long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:183:36: required from ‘void Graph<captype, tcaptype,
flowtype>::maxflow_reuse_trees_init() [with captype = int; tcaptype = int; flowtype = long long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/maxflow.cpp:487:44: required from ‘flowtype Graph<captype, tcaptype,
flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/energy.h:325:33: required from ‘Energy<captype, tcaptype, flowtype>::TotalValue
Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::TotalValue = long
long int]’
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/GCoptimization.cpp:1237:37: required from here
/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/src/block.h:223:76: warning: deprecated conversion from string constant to ‘char

[-Wwrite-strings]
if (!first) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }

                                                                        ^

Error in GCO_BuildLib (line 67)
eval(mexcmd); % compile and link in one step

Error in make (line 14)
GCO_BuildLib;

@kyamagu
Copy link
Owner

kyamagu commented Jun 6, 2016

@hosna Can you check this fix?

@hosnasattar
Copy link
Author

I already try it but the patch file is not working. I also download the package somewhere else but still I have same problem to build it.

@kyamagu
Copy link
Owner

kyamagu commented Jun 6, 2016

@hosna Did you really apply the patch? What error did you get when applying a patch?

@hosnasattar
Copy link
Author

sattar@ganymede:/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0$ patch -p1 < gco-patch.txt
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

|diff --git a/lib/gco-v3.0/GCO_BuildLib.m b/lib/gco-v3.0/GCO_BuildLib.m
|index 7c37571..6eef5c5 100755
|--- a/lib/gco-v3.0/GCO_BuildLib.m

|+++ b/lib/gco-v3.0/GCO_BuildLib.m

File to patch: GCO_BuildLib.m
patching file GCO_BuildLib.m
can't find file to patch at input line 27
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

|diff --git a/lib/gco-v3.0/src/energy.h b/lib/gco-v3.0/src/energy.h
|index 0d1499b..278c3c8 100755
|--- a/lib/gco-v3.0/src/energy.h

|+++ b/lib/gco-v3.0/src/energy.h

@kyamagu
Copy link
Owner

kyamagu commented Jun 6, 2016

@hosna Seems you are placing the patch file at a wrong location...

@hosnasattar
Copy link
Author

its in the folder I was in!

@hosnasattar
Copy link
Author

sattar@wks-12-22:~$ cd /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0/
sattar@wks-12-22:/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0$ ls
GCMex GCO_Create.m GCO_GetLabeling.m gco-patch.txt.rej GCO_SetLabeling.m GCO_SetVerbosity.m gco-v3.0-master.zip README.TXT
gcmex-2.3.0.zip GCO_Delete.m GCO_ListHandles.m GCO_README.TXT GCO_SetLabelOrder.m GCO_Swap.m MRF-master src
GCO_BuildLib.m GCO_ExpandOnAlpha.m gco-patch.txt GCO_SetDataCost.m GCO_SetNeighbors.m GCO_UnitTest.m MRF-master.zip
GCO_ComputeEnergy.m GCO_Expansion.m gco-patch.txt.orig GCO_SetLabelCost.m GCO_SetSmoothCost.m gco-v3.0-master private
sattar@wks-12-22:/BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/lib/gco-v3.0$ patch -p1 < gco-patch.txt
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

|diff --git a/lib/gco-v3.0/GCO_BuildLib.m b/lib/gco-v3.0/GCO_BuildLib.m
|index 7c37571..6eef5c5 100755
|--- a/lib/gco-v3.0/GCO_BuildLib.m

|+++ b/lib/gco-v3.0/GCO_BuildLib.m

File to patch:

@kyamagu
Copy link
Owner

kyamagu commented Jun 6, 2016

@hosna according to your output,

cd /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/
mv lib/gco-v3.0/gco-patch.txt .
cd /BS/wild-search-gaze/work/paperdoll-v1.0/paperdoll-v1.0/
patch -p1 < gco-patch.txt

@hosnasattar
Copy link
Author

thanks. it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants