dmlc / dmlc/decord

Installation error-from source-windows

Open
#243 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

Hi there,

Thanks for open-sourcing such an awesome package!

I plan to use the GPU version, but recently experienced trouble installing the package from the source:

I followed the instructions in the README.md, and here is what I did:

first install git, cmake and ffmpeg (python already installed)
cd my-workspace
git clone --recursive https://github.com/dmlc/decord
cd decord
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="/DDECORD_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" -G "Visual Studio 15 2017 Win64" -DFFMPEG_DIR:PATH="C:/ffmpeg/bin/" ..
open `decord.sln` in VS2017 and click build solution.

The output is "========== Build: 2 succeeded, 1 failed, 0 up-to-date, 4 skipped =========="
I encountered the following error message:

2>h:\decord_source\decord\include\decord\../../src/video/ffmpeg/ffmpeg_common.h(23): fatal error C1083: Cannot open include file: 'libavcodec/avcodec.h': No such file or directory (compiling source file H:\decord_source\decord\src\audio\audio_interface.cc)
2>h:\decord_source\decord\include\decord\../../src/video/ffmpeg/ffmpeg_common.h(23): fatal error C1083: Cannot open include file: 'libavcodec/avcodec.h': No such file or directory (compiling source file H:\decord_source\decord\src\audio\audio_reader.cc)

I was wondering if you could help me to figure out what causes the issue.

In addition, I wonder whether additional configurations are needed in order to use the source-installed package in pycharm's conda environment.

Many thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.