-
Notifications
You must be signed in to change notification settings - Fork 48
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
/Users/yuanhuaan/desktop/src/torch-opencv/src/Common.cpp:177:24: error: implicit instantiation of undefined template 'std::__1::array<int, 3>' #122
Comments
@anthonyyuan |
yes ,I use mac 10.11 |
yuanhuaandeMacBook-Pro:cv yuanhuaan$ luarocks install cv -- The C compiler identification is AppleClang 7.3.0.7030029 Error: Build error: Failed building. |
Mac 10.11.4 EI 发件人: Egor Burkov [email protected] @anthonyyuanhttps://github.com/anthonyyuan ― |
@anthonyyuan |
no ,it do not work by require cv !!!! |
I know that the reason ,but i have no solution! When i add #include "array" in command.cpp ,but it is not useful . |
Don't edit system files. Sorry, I have no Mac to test on. Maybe later sometime. |
when i modify that TensorWrapper::operator cv::Mat() {
// std::array<int, 3> stride;
// std::array<size_t, 3> stride;
} |
yuanhuaandeMacBook-Pro:build yuanhuaan$ cmake ./ |
When I make install it my computer ,yuanhuaandeMacBook-Pro:build yuanhuaan$ make install |
uanhuaandeMacBook-Pro:tests yuanhuaan$ th functions.lua |
@anthonyyuan: I was having that same error, pretty much identically (per my system)! :-( I'm on Arch Linux x86_64 operating (tis work) in an Anaconda Python 2.7 virtual environment, with a previous install of Torch7 (for use with OpenFace), that I wanted to use for this project,
I had previously cloned and installed Torch7:
HOWEVER, when trying to run the "demo.lua" in my current work,
I was getting the error, above. So, I installed (Arch Linux) luarocks,
... even though I presumed it was installed previously.
I THEN "re-installed" cv [I also had previously installed OpenCV 3, i.e. cv2 in Python (I could import cv2 in Python, etc.)], BUT here I then needed to do this last thing (again in my terminal),
NOW, when I ran that script,
it ran (see lossy, animated GIF / video screen capture, below)! :-D [ That's my first webcam capture with that repo / demo! Not bad - CPU only no GPU! :-) ] Update: Also had to do
for the second (age_gender) demo, and run as
not
|
/Users/yuanhuaan/desktop/src/torch-opencv/src/Common.cpp:177:24: error: implicit instantiation
of undefined template 'std::__1::array<int, 3>'
std::array<int, 3> size;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:116:65: note:
template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array;
^
/Users/yuanhuaan/desktop/src/torch-opencv/src/Common.cpp:181:27: error: implicit instantiation
of undefined template 'std::__1::array<unsigned long, 3>'
std::array<size_t, 3> stride;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:116:65: note:
template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array;
The text was updated successfully, but these errors were encountered: