Skip to content

Missing CUDA link directories #7

@mklingen

Description

@mklingen

When compiling using cuda-enabled OpenCV, I get the following:

/usr/bin/ld: cannot find -lcufft
/usr/bin/ld: cannot find -lnpps
/usr/bin/ld: cannot find -lnppi
/usr/bin/ld: cannot find -lnppc

I solved this on my own machine by adding this at line 18 to CMakeLists.txt:

  link_directories(/usr/local/cuda-7.0/lib64)

Ideally, the CMakeLists.txt file should deal with this automatically by detecting if CUDA is enabled and linking against it if it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions