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

Building issue with ffmpeg #4

Closed
svebk opened this issue Mar 12, 2012 · 2 comments
Closed

Building issue with ffmpeg #4

svebk opened this issue Mar 12, 2012 · 2 comments

Comments

@svebk
Copy link

svebk commented Mar 12, 2012

Hi,
I was try to build pangolin but I had some issues with FFMPEG. So this post is not an issue but actually some details on how to get it (almost) work, but I guess this is rather a good place to post this.
I am under Ubuntu 10.04 (64bit) and when I use the package version of ffmpeg I got the following building error:

[ 4%] Building CXX object pangolin/CMakeFiles/pangolin.dir/video.cpp.o
In file included from Pangolin/pangolin/video.cpp:32:
Pangolin/pangolin/ffmpeg.h:47:21: error: pixdesc.h: No such file or directory

When using a more recent version (0.8.10) and after modifying it a bit (http://patches.libav.org/patch/3581/) and changing CMakeCache.txt by adding /usr/local/ffmpeg-0.8.10/include to the ffmpeg include dirs path

AVCODEC_INCLUDE_DIR:PATH=/usr/local/ffmpeg-0.8.10/include/libavcodec;/usr/local/ffmpeg-0.8.10/include
AVCODEC_LIBRARY:FILEPATH=/usr/local/ffmpeg-0.8.10/lib/libavcodec.so
AVFORMAT_INCLUDE_DIR:PATH=/usr/local/ffmpeg-0.8.10/include/libavformat;/usr/local/ffmpeg-0.8.10/include
AVFORMAT_LIBRARY:FILEPATH=/usr/local/ffmpeg-0.8.10/lib/libavformat.so
AVUTIL_INCLUDE_DIR:PATH=/usr/local/ffmpeg-0.8.10/include/libavutil;/usr/local/ffmpeg-0.8.10/include
AVUTIL_LIBRARY:FILEPATH=/usr/local/ffmpeg-0.8.10/lib/libavutil.so

I got:

[ 40%] Building CXX object pangolin/CMakeFiles/pangolin.dir/input_record_repeat.cpp.o
make[2]: *** No rule to make target /usr/local/ffmpeg-0.8.10/lib/libavcodec.so, needed by pangolin/libpangolin.so. Stop.

Indeed there is only a libavcodec.a file in this folder.
So in the folder where the sources of ffmpeg-0.8.10 are, run:
make distclean
./configure --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-pthreads --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libfaac --enable-pic --enable-libopencv --prefix=/usr/local/ffmpeg-0.8.10
make -j8
sudo make install

Adapt prefix folder, enables except --enable-pic --enable-shared which are needed.

I am almost there:
[100%] Building CXX object examples/VBODisplay/CMakeFiles/VBODisplay.dir/main.cpp.o
Linking CXX executable VBODisplay
/usr/bin/ld: cannot find -lcutil_x86_64

This seems related to CUDA.

Cheers

@stevenlovegrove
Copy link
Owner

Thanks for the info and sorry that this has been a pain for you on 10.04.

@djoubert
Copy link

Hi All

Don't know if this will work for you, but I got pangolin going on my system (Ubuntu 10.04 64 bit) by installing the version 4:0.6.2 versions of libavutil-dev (and associated packages) from from the lucidbleed ppa.

Cheers
-D

@dcanelhas dcanelhas mentioned this issue Aug 9, 2012
aharrison24 pushed a commit to aharrison24/Pangolin that referenced this issue Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants