Using OpenCV library on Raspberry Pi – make: no rule to make target …

Sysprogs forums Forums VisualGDB Using OpenCV library on Raspberry Pi – make: no rule to make target …

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20559
    sdudeck
    Participant

    Hello,

    I tried the turorial with Raspbian Stretch and OpenCV 3.4.1 compiled on the Raspbian Pi 3.

    I ran into the make-error “No rule to make target …” for libjpeg.so during compilation.

    The problem was, that in OpenCVModules.cmake the paths to the external libraries were given as absolute paths for the Linux filesystem. After removing these absolute paths compilation worked.

    Maybe someone else encountered this problem as well – therefore I just want to post this solution.

    I don’t know if there is a better way, as I am no expert on this stuff.

    Hope it still helps,

    Sven

    #20571
    support
    Keymaster

    Hi,

    Thanks for sharing this. We haven’t tried OpenCV 3.4.1 yet, so it’s hard to say why it would use absolute paths, but we are planning to update our tutorial soon (also to show the new Advanced CMake project subsystem), so we will recheck this and include a 100% reliable workaround.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.