Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make error on mac? #64

Open
atv2016 opened this issue Jul 4, 2016 · 3 comments
Open

Make error on mac? #64

atv2016 opened this issue Jul 4, 2016 · 3 comments

Comments

@atv2016
Copy link

atv2016 commented Jul 4, 2016

Using opencv3:

[ 2%] Building CXX object src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/blob.cpp.o
In file included from /Users/alefveld/Downloads/OpenTLD-master-2/src/3rdparty/cvblobs/blob.cpp:17:
/Users/alefveld/Downloads/OpenTLD-master-2/src/3rdparty/cvblobs/blob.h:21:10: fatal error: 'opencv/cxcore.h' file not found

include <opencv/cxcore.h>

     ^

1 error generated.
make[2]: *** [src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/blob.cpp.o] Error 1
make[1]: *** [src/3rdparty/cvblobs/CMakeFiles/cvblobs.dir/all] Error 2
make: *** [all] Error 2

@noboomu
Copy link

noboomu commented Jul 15, 2016

I got it to compile on 10.11 by setting
CMAKE_CXX_FLAGS to -std=c++11 -Wno-c++11-narrowing
in ccmake config screen

replacing line (29?) in the CMakeLists.txt file in the root directory
find_package(OpenCV REQUIRED
with

find_package(OpenCV REQUIRED PATHS /usr/local/Cellar/opencv3/HEAD NO_DEFAULT_PATH)
if (OpenCV_FOUND)
   include_directories(${OpenCV_INCLUDE_DIRS})
endif()

(assuming opencv was installed with homebrew)

@atv2016
Copy link
Author

atv2016 commented Nov 3, 2016

thanks i'll try that!

@hakangs
Copy link

hakangs commented Dec 26, 2016

Tried that but :

[ 44%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/Clustering.cpp.o
/Users/hakanmoray/Downloads/OpenTLD-master/src/libopentld/tld/Clustering.cpp:54:31: error: no template named 'vector'; did you mean 'std::vector'?
void Clustering::calcMeanRect(vector<int> * indices)
                              ^~~~~~
                              std::vector

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

No branches or pull requests

3 participants