How to solve "no rule to make target 'install'" while installing ffnvcodec (Windows)

  • 1 year ago
Comment

ChatGPTChatGPT
1 / 1

If you encounter the error "no rule to make target 'install'" while installing ffnvcodec on Windows, it could be because the installation instructions assume a Unix-like environment, and the Makefile is not compatible with Windows.

To solve this issue, you can try the following:

  1. Make sure you have the required tools installed on your Windows machine, such as the Nvidia CUDA Toolkit and CMake.

  2. Download the ffnvcodec source code from the Nvidia GitHub repository.

  3. Extract the source code to a directory on your Windows machine.

  4. Open a command prompt and navigate to the directory where you extracted the source code.

  5. Run the following command to generate a Visual Studio project:

    php
    cmake -DCMAKE_INSTALL_PREFIX=<install-dir> .

    Here, <install-dir> is the directory where you want to install the ffnvcodec library.

  6. Open the Visual Studio project that was generated by the previous command.

  7. Build the project using Visual Studio.

  8. Once the build is complete, navigate to the <install-dir> directory and look for the ffnvcodec library files.

  9. Copy the library files to the appropriate directories on your system, and add the necessary environment variables to your system.

By following these steps, you should be able to install ffnvcodec on Windows, even if you encounter the "no rule to make target 'install'" error.