Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Makefiles now check for virtualenv and pkg-config. #383

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ MKL_ENGINE := neon/backends/mklEngine
# neon compiled objects
DATA_LOADER := loader

VIRTUALENV := $(shell command -v virtualenv 2> /dev/null)
ifndef VIRTUALENV
$(error "virtualenv must be installed. Consider `pip install virtualenv`.")
endif

ifeq ($(PY), 2)
VIRTUALENV_EXE := virtualenv -p python2.7
PYLINT3K_ARGS := --disable=no-absolute-import
Expand Down
5 changes: 5 additions & 0 deletions loader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ ifeq ($(UNAME_S), FreeBSD)
CC := clang++
endif

PKGCONFIG := $(shell command -v pkg-config 2> /dev/null)
ifndef PKGCONFIG
$(error "pkg-config must be installed. Consider `sudo apt-get install pkg-config` or `brew install pkg-config`.")
endif

ifeq ($(shell pkg-config --exists opencv; echo $$?), 0)
IMGFLAG := -DHAS_IMGLIB
CFLAGS := $(shell pkg-config --cflags opencv) $(CFLAGS)
Expand Down