Libavcodec Libx264 O Error 1
Contents |
here for a quick overview of the site Help Center Detailed answers to libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_148' any questions you might have Meta Discuss the workings and
Undefined Reference To X264_encoder_open_142
policies of this site About Us Learn more about Stack Overflow the company Business Learn
Undefined Reference To `x264_encoder_open_146'
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow
Ffmpeg X264
Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Yet another ffmpeg/libx264 issue up vote 1 down vote favorite My current situation is; ffmpeg and libx264 has been compiled for Android, as shared and static ffmpeg install libraries respectively. Since I have libx264.a and libffmpeg.so with me, only thing that remains is to link them and obtain a ffmpeg library that would allow me to proceed with my application. However, some questions remain unanswered. I am using Ubuntu with a virtual machine under Windows 7. I am using x264's last version, ffmpeg 0.10.4 release and NDK 7. I have tried to adjust flags (extracf and extrald) in order to include libx264 to ffmpeg compilation process as well, however I keep failing. Below you may find my build script for ffmpeg and the errors I have encountered. NDK=~/Android_NDK_r7b PLATFORM=$NDK/platforms/android-8/arch-arm/ PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 x264=/usr/local #x264v2=~/x264 function build_one { ./configure --target-os=linux \ --prefix=$PREFIX \ --enable-cross-compile \ --extra-libs="-lgcc" \ --arch=arm \ --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \ --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \ --nm=$PREBUILT/bin/arm-linux-androideabi-nm \ --sysroot=$PLATFORM \ # --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \ --extra-cflags="-I$x264/include" \ --enable-shared \ --enable-static \ #--extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] ffmpeg installation problem Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the http://stackoverflow.com/questions/12200172/yet-another-ffmpeg-libx264-issue place to report it, thanks ! Results 1 to 9 of 9 Thread: ffmpeg installation problem Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 22nd, 2011 #1 nkdnkd View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Mar 2011 Beans 25 ffmpeg installation problem hi all, I am trying to install ffmpeg https://ubuntuforums.org/showthread.php?t=1712267 and the x264 codecs using this guide http://ubuntuforums.org/showthread.php?t=786095 However, I ran into some trouble with the make step of the ffmpeg compilation. The error reads as under :- nishith@nishith-Aspire-4720:~/ffmpeg$ make LD ffmpeg_g /home/nishith/ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init': /home/nishith/x264/ffmpeg/libavcodec/libx264.c:308: undefined reference to `x264_encoder_open_114' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 can someone plz advice me what to do ? btw the dir structure is as under /home/nishith/x264 -- after a okay compilation and installation /home/nishith/ffmpeg -- the config step worked fine but the make is giving above error. thanks in advance nishith Adv Reply March 22nd, 2011 #2 FakeOutdoorsman View Profile View Forum Posts Private Message 5 Pints of Stout Join Date Sep 2006 Beans 3,713 Re: ffmpeg installation problem I am guessing that libx264-dev is interfering. The first step of the guide should have removed this package. Did you skip that step? Did you follow the guide word-for-word or did you modify anything? What Ubuntu version are you using? Try this: Code: sudo apt-get remove libx264-dev cd ~/ffmpeg make distclean git pull Now continue with the FFmpeg ./configure command as shown in the guide. Adv Reply March 24th, 2011 #3 nkdnkd View Profile View Forum Posts Private Message 5 C
with bad public atom (error -2002 Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > On March 27, 2013 at 2:28 https://lists.ffmpeg.org/pipermail/ffmpeg-user/2013-March/014296.html PM Andrew RT
Square Wave » A Comprehensive Guide to Installing and Configuring OpenCV 2.4.2 on Ubuntu June 6th, 2012 | Posted by Osman Eralp | 163 comments - (Comments are closed)Software Tags: opencv, software, ubuntu This guide describes how to install and configure OpenCV 2.4.2 and its dependencies on Ubuntu 12.04. This guide includes instructions for both 32-bit and 64-bit systems. Revision History: [2012-09-12] Updated guide to work with OpenCV 2.4.2. Updated ffmpeg section: ffmpeg 0.11.1 now requires -pic option on 64-bit systems. [2012-06-05] Updated guide to work with OpenCV 2.4.1 and Ubuntu 12.04. Added instructions for 64-bit systems. [2011-08-11] Initial version. Worked with OpenCV 2.3.1 and Ubuntu 11.10. Archived here. If you need help troubleshooting OpenCV installation problems, see the companion guide “A Comprehensive OpenCV Installation Troubleshooting Guide.” The Installation Procedure To install and configure OpenCV 2.4.1, complete the following steps. The commands shown in each step can be copy and pasted directly into a Linux command line. Remove any installed versions of ffmpeg and x264. sudo apt-get remove ffmpeg x264 libx264-dev Get all the dependencies for x264 and ffmpeg. sudo apt-get update
sudo apt-get install build-essential checkinstall git cmake libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev Download and install gstreamer. sudo apt-get install libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg Download and install gtk. sudo apt-get install libgtk2.0-0 libgtk2.0-dev Download and install libjpeg. sudo apt-get install libjpeg8 libjpeg8-dev Create a directory to hold source code. cd ~
mkdir src Download and install install x264. Download a recent stable snapshot of x264 from ftp://ftp.videolan.org/pub/videolan/x264/snapshots/. The exact version does not seem to matter. To write this guide, I used version x264-snapshot-20120528-2245-stable.tar.bz2, but I have used previous versions too. cd ~/src
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-