gyandeep8693 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Error "Undefined symbols for architecture x86_64" when i am compiling Javacv-05 with ffmpeg 1.2.1.7 #342

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I downloaded Javacv 0.5 of the link: 
http://maven2.javacv.googlecode.com/git/com/googlecode/javacv/javacv/0.5/javacv-
0.5-src.zip and FFMPG 1.2.1.7 from 
link:http://www.evermeet.cx/ffmpeg/ffmpeg-1.2.1.7z.
I am using in Apple Mac OS 10.8.4 with NetBeans 7.3, when I am compiling JavaCV 
 set Default Configuration, it works well. 
But when i set FFMPEG configuration I get this error:
Undefined symbols for architecture x86_64:
  "_av_codec_get_codec_descriptor", referenced from:
_Java_com_googlecode_javacv_cpp_avcodec_av_1codec_1get_1codec_1descriptor in 
cc8FQMwl.o
  "_av_codec_get_pkt_timebase", referenced from:
_Java_com_googlecode_javacv_cpp_avcodec_av_1codec_1get_1pkt_1timebase in 
cc8FQMwl.o
 .
.
.
_Java_com_googlecode_javacv_cpp_avcodec_avcodec_1is_1open in cc8FQMwl.o
  "_avcodec_open2", referenced from:
      _Java_com_googlecode_javacv_cpp_avcodec_avcodec_1open2 in cc8FQMwl.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

What i am making wrong?

Original issue reported on code.google.com by renato.s...@gmail.com on 22 Jul 2013 at 1:39

GoogleCodeExporter commented 9 years ago
You're obviously not compiling against FFmpeg 1.2. Uninstall any other version 
of FFmpeg you have, install FFmpeg 1.2 properly, and it should work.

Original comment by samuel.a...@gmail.com on 31 Jul 2013 at 1:15

GoogleCodeExporter commented 9 years ago
How can view in attached file, I am using FFMPEG 1.2.1.
Must be exactly 1.2?
I need download FFMpeg of other link.
Which link? Do you can send me?
On the site of FFMPEG don't have this version 1.2.

Original comment by renato.s...@gmail.com on 31 Jul 2013 at 12:18

Attachments:

GoogleCodeExporter commented 9 years ago
That says nothing of the libraries you have installed. 
http://www.evermeet.cx/ffmpeg/ffmpeg-1.2.1.7z does not contain shared 
libraries. It's not possible to link with that.

Original comment by samuel.a...@gmail.com on 2 Aug 2013 at 4:21

GoogleCodeExporter commented 9 years ago
what are the libraries is necessary?

    how i verify the libraries versions?

Atenciosamente,

Tecnet Tecnologia
Renato da Silva Felix
Analista de SoftWare
rfelix@tecnet.ind.br
(11) 4152-0017

Original comment by renato.s...@gmail.com on 2 Aug 2013 at 12:24

GoogleCodeExporter commented 9 years ago
Have you tried the ones in this package?
http://javacv.googlecode.com/files/javacv-0.5-cppjars.zip

Original comment by samuel.a...@gmail.com on 2 Aug 2013 at 11:20

GoogleCodeExporter commented 9 years ago
Hi Samuel.

        I remove all FFMPEG from my machine and compile the JavaCV on version 0.5. Now it's OK.

        My problem now is:   I intend use this for Live Stream from Camera to an Server, over UDP.

        When I use Codec: "AV_CODEC_ID_FLV1" It's work very well, but fps is low.

        So I intend use Codec: "AV_CODEC_ID_H263" or "AV_CODEC_ID_MPEG4" to try best performance. 

        But when i use this i receive:  "libc(14013): Fatal signal 8 (SIGFPE) at 0x000036bd (code=0), thread 14013 (acv05streamtest)"

Atenciosamente,

Tecnet Tecnologia
Renato da Silva Felix
Analista de SoftWare
rfelix@tecnet.ind.br
(11) 4152-0017

Original comment by renato.s...@gmail.com on 5 Aug 2013 at 8:52

GoogleCodeExporter commented 9 years ago
Do you get the same error when using the ffmpeg executable on the command line 
without JavaCV?

Original comment by samuel.a...@gmail.com on 6 Aug 2013 at 12:59

GoogleCodeExporter commented 9 years ago
Hi Samul.

    Already we can send via a UDP streaming from the camera, but the connection is unstable and there is no treatment to reconnect if there is error in the connection. 
    Parallel to this, there is a parameter "-f MPEGTS" hom in the command line. in FFmpeg which is facing Streaming.
    I wonder if it is possible using UDP Enable MPGETS with FLV or is necessary to use the H264?
    If it need to use the H264 as generating FFMPEG.SO with LIBX264?

Atenciosamente,

Tecnet Tecnologia
Renato da Silva Felix
Analista de SoftWare
rfelix@tecnet.ind.br

Original comment by renato.s...@gmail.com on 7 Aug 2013 at 5:19

GoogleCodeExporter commented 9 years ago
The precompiled binaries from this site come with libx264, so you can try 
H.264, yes.

I still don't understand though: Is this something you can do with FFmpeg 
alone, but with JavaCV it fails for some reason?

Or is it something you cannot do even with FFmpeg alone?

If your problem is the latter, I'm afraid you will need to speak with the 
authors of FFmpeg, not me...

Original comment by samuel.a...@gmail.com on 15 Aug 2013 at 3:04

GoogleCodeExporter commented 9 years ago
Hi Samuel, thanks for your help.

Really the ffmpeg have libx264, We can use "mpegts" to make the Stream and It's 
stable connection.

We to use your Javacv because we need of the preview and get the frames from 
the camera of the device. But with the ffmpeg we can't make it.

Atenciosamente,

Tecnet Tecnologia
Renato da Silva Felix
Analista de SoftWare
rfelix@tecnet.ind.br
(11) 4152-0017

Original comment by renato.s...@gmail.com on 15 Aug 2013 at 2:53

GoogleCodeExporter commented 9 years ago
Ok, so it works with "mpegts"? You do not have any problems anymore?

Original comment by samuel.a...@gmail.com on 18 Aug 2013 at 2:15

GoogleCodeExporter commented 9 years ago
Hi Samuel.

    It work very well with mpegts. 

    At the moment I have no problems. 

    Thank you. 

Atenciosamente,

Tecnet Tecnologia
Renato da Silva Felix
Analista de SoftWare
rfelix@tecnet.ind.br

Original comment by renato.s...@gmail.com on 19 Aug 2013 at 12:03

GoogleCodeExporter commented 9 years ago
Hi Samuel.

        Can i grab Frame from the Android Camera using your "FFmpegFrameGrabber"?

Atenciosamente,

Tecnet Tecnologia
Renato da Silva Felix
Analista de SoftWare
rfelix@tecnet.ind.br

Original comment by renato.s...@gmail.com on 20 Aug 2013 at 3:10

GoogleCodeExporter commented 9 years ago
No, there isn't a FrameGrabber interface for Android Camera at the moment, but 
just do as shown in FacePreview.java. I think that's pretty much the best we 
can do on Android anyway.

Anyway, we've found your issue, but next time please post your questions on the 
mailing list if possible, thanks!

Original comment by samuel.a...@gmail.com on 31 Aug 2013 at 7:09