Spaces:
Runtime error
Runtime error
Update
Browse files- PyPatchMatch/Makefile +2 -2
- PyPatchMatch/patch_match.py +1 -1
PyPatchMatch/Makefile
CHANGED
@@ -15,9 +15,9 @@ CXX = $(ENVIRONMENT_OPTIONS) g++
|
|
15 |
CXXFLAGS = -std=c++14
|
16 |
CXXFLAGS += -Ofast -ffast-math -w
|
17 |
# CXXFLAGS += -g
|
18 |
-
CXXFLAGS += $(shell pkg-config --cflags
|
19 |
CXXFLAGS += $(INCLUDE_DIR)
|
20 |
-
LDFLAGS = $(shell pkg-config --cflags --libs
|
21 |
|
22 |
|
23 |
CXXSOURCES = $(shell find $(SRC_DIR)/ -name "*.cpp")
|
|
|
15 |
CXXFLAGS = -std=c++14
|
16 |
CXXFLAGS += -Ofast -ffast-math -w
|
17 |
# CXXFLAGS += -g
|
18 |
+
CXXFLAGS += $(shell pkg-config --cflags opencv) -fPIC
|
19 |
CXXFLAGS += $(INCLUDE_DIR)
|
20 |
+
LDFLAGS = $(shell pkg-config --cflags --libs opencv) -shared -fPIC
|
21 |
|
22 |
|
23 |
CXXSOURCES = $(shell find $(SRC_DIR)/ -name "*.cpp")
|
PyPatchMatch/patch_match.py
CHANGED
@@ -22,7 +22,7 @@ except ImportError as e:
|
|
22 |
# Otherwise, fall back to the subprocess.
|
23 |
import subprocess
|
24 |
print('Compiling and loading c extensions from "{}".'.format(osp.realpath(osp.dirname(__file__))))
|
25 |
-
subprocess.check_call(
|
26 |
|
27 |
|
28 |
__all__ = ['set_random_seed', 'set_verbose', 'inpaint', 'inpaint_regularity']
|
|
|
22 |
# Otherwise, fall back to the subprocess.
|
23 |
import subprocess
|
24 |
print('Compiling and loading c extensions from "{}".'.format(osp.realpath(osp.dirname(__file__))))
|
25 |
+
subprocess.check_call("make clean && make", cwd=osp.dirname(__file__), shell=True)
|
26 |
|
27 |
|
28 |
__all__ = ['set_random_seed', 'set_verbose', 'inpaint', 'inpaint_regularity']
|