Giter VIP home page Giter VIP logo

Comments (6)

ted51 avatar ted51 commented on July 29, 2024

I met this error before and fixed it by changing the way to compile ffmpeg:

./configure --enable_shared

make

sudo make install

Best regards,

Ted Gao(高昌军)


Chengdu CK Science & Technology

MP : +86 15008464587

TEL: +86 028 68616921

Email: [email protected] mailto:[email protected]


发件人: [email protected] [mailto:[email protected]] 代表 VRabbitHole
发送时间: 2016年8月13日 1:59
收件人: facebook/Surround360
主题: [facebook/Surround360] Fatal Error on compiling CameraControl Software (#47)

Just went through the install procedure for the CameraControl software and in the final compile section get this Fatal Error Message .... any suggestions on where I might have gone wrong (I'm not a C++ or C guy):

fbvr22@FBVR22:/Surround360/surround360_camera_ctl$ make
[ 40%] Building CXX object CMakeFiles/CameraControl.dir/source/camera_control/CameraControl.cpp.o
/Surround360/surround360_camera_ctl/source/camera_control/CameraControl.cpp:49:32: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.
CMakeFiles/CameraControl.dir/build.make:86: recipe for target 'CMakeFiles/CameraControl.dir/source/camera_control/CameraControl.cpp.o' failed
make[2]: *** [CMakeFiles/CameraControl.dir/source/camera_control/CameraControl.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/CameraControl.dir/all' failed
make[1]: *** [CMakeFiles/CameraControl.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
fbvr22@FBVR22:/Surround360/surround360_camera_ctl$

Here's the ls -l output:

fbvr22@FBVR22:/Surround360/surround360_camera_ctl$ ls -l
total 68
drwxr-xr-x 2 root root 4096 Aug 12 10:28 bin
-rw-r--r-- 1 root root 10486 Aug 12 10:28 CMakeCache.txt
drwxr-xr-x 8 root root 4096 Aug 12 10:29 CMakeFiles
-rw-r--r-- 1 root root 1388 Aug 12 10:28 cmake_install.cmake
-rwxr-xr-x 1 root root 1377 Aug 12 09:20 CMakeLists.txt
drwxr-xr-x 2 root root 4096 Aug 12 09:20 configs
-rw-r--r-- 1 root root 1550 Aug 12 09:20 CONTRIBUTING.md
-rw-r--r-- 1 root root 1531 Aug 12 09:20 LICENSE_camera_ctl.md
-rw-r--r-- 1 root root 8692 Aug 12 10:28 Makefile
-rw-r--r-- 1 root root 4106 Aug 12 09:20 README.md
drwxr-xr-x 2 root root 4096 Aug 12 09:20 scripts
drwxr-xr-x 4 root root 4096 Aug 12 09:20 source


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #47 , or mute the thread https://github.com/notifications/unsubscribe-auth/AT9F4eZsBc2I-KIYgygGIcEhmkEzMS04ks5qfLRIgaJpZM4JjUJY . https://github.com/notifications/beacon/AT9F4UJ8Yfh4yK3IcjurW6uUS11UJCYDks5qfLRIgaJpZM4JjUJY.gif

from surround360.

VRabbitHole avatar VRabbitHole commented on July 29, 2024

Thanks Ted ... will give it a whirl.

Have you actually built the 360 camera rig or just testing the software?

from surround360.

IsaacZhi avatar IsaacZhi commented on July 29, 2024

I had built the code.

First, you need compile share lib ( .so files ) for ffmpeg.
In the guide ( https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu ), it only guide you to compile the static lib ( .a files ) , you need add --enable-shared in ffmpeg and libx265 and etc.

Second, if you install ffmpeg to your local path, you need add the include path and lib path in CMakeList.txt .

from surround360.

rezanvshield avatar rezanvshield commented on July 29, 2024

Second, if you install ffmpeg to your local path, you need add the include path and lib path in CMakeList.txt

Thank you, but could you please explain how exactly this is done?

from surround360.

aparrapo avatar aparrapo commented on July 29, 2024

@rezanvshield, assuming you have ffmpeg installed in <ffmpeg_path> you can do:

export LD_LIBRARY_PATH=<ffmpeg_path>/lib/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:<ffmpeg_path>/lib/pkgconfig
export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:<ffmpeg_path>/lib/

and run the cmake command again.

from surround360.

aparrapo avatar aparrapo commented on July 29, 2024

@rezanvshield closing this task for now. Please feel free to reopen it if the problem persists.

from surround360.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.