LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2015, 05:09 PM   #1
rediska
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
compiling an app with x264 failed


Hey, I am trying to compile ffmpeg with libx264 on an IMX6 device.
It worked, I have x264-142. I am using daisy branch with opencv.

Now I want compile this app:

x264-LiveStream

I get this error:

Code:
/ports/sysdeps/arm/start.S:119: undefined reference to `main'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_read_frame@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_codec_get_id@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_flush_buffers@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_close_input_file@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_free_packet@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_find_stream_info@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_close@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_free_context@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avio_open@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_guess_codec@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_write_header@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_write_trailer@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_guess_format@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_register_all@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_find_encoder@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_new_stream@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_lockmgr_register@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_decode_video2@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_open2@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avio_close@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_find_decoder@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_init_packet@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avpicture_get_size@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_alloc_context@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avpicture_fill@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_encode_video@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_network_init@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_write_frame@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avformat_open_input@LIBAVFORMAT_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `avcodec_alloc_frame@LIBAVCODEC_53'
/usr/lib/gcc/arm-poky-linux-gnueabi/4.8.2/../../../libopencv_highgui.so: undefined reference to `av_seek_frame@LIBAVFORMAT_53'
collect2: error: ld returned 1 exit status
Makefile:102: recipe for target 'x264Encoder' failed
How can I fix it?
 
Old 03-10-2015, 03:07 AM   #2
153rd
Member
 
Registered: Mar 2015
Location: The Netherlands
Distribution: CentOS 7, Ubuntu 12.04, Linux-Mint 17.3
Posts: 46

Rep: Reputation: Disabled
Hi rediska,

It seems like you're missing LibAV:

https://github.com/libav/libav
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] git x264: final link failed: Nonrepresentable section on output andrew.46 Slackware 7 08-12-2011 02:16 AM
Problem while compiling Qt App. scarypajamas Programming 5 10-01-2009 11:33 AM
compiling mplayer with x264 support /y0shi Slackware 4 03-04-2008 03:30 PM
compiling gtk1 app against gtk2 cs-cam Linux - Newbie 3 01-11-2005 02:53 AM
probs with compiling kdevelop app joeman3429 Programming 1 08-27-2004 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration