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

Error compiling OpenCV Ubuntu 16.04 with CUDA #6606

Closed
eokeeffe opened this issue May 30, 2016 · 1 comment
Closed

Error compiling OpenCV Ubuntu 16.04 with CUDA #6606

eokeeffe opened this issue May 30, 2016 · 1 comment

Comments

@eokeeffe
Copy link

Please state the information for your system

  • OpenCV version: 3.1
  • Host OS: Ubuntu 16.04 LTS
  • Nvidia-367 with CUDA 7.5
    -Compiler & CMake: GCC 5.3 & CMake 3.5

In which part of the OpenCV library you got the issue?

Examples:

  • core, cuda

Error generated using gcc & cmake in 16.04 LTS
Error generated:
/usr/include/string.h: In function ‘void* mempcpy_inline(void, const void, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;

Using the methods in [https://github.com/BVLC/caffe/issues/4046] by adding

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")

to the top of the CMakeLists.txt, everything compiled and worked fine

@alalek
Copy link
Member

alalek commented May 30, 2016

Duplicate: #6500

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

No branches or pull requests

2 participants