×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Build time get error in FFMPEG example.

    Hi

    I am doing work on Carbide C++ 2.0, Symbian S60 3rd Edition FP1.

    Download FFMPEG example from Internet and update example and patch with all lib file.

    When I try to debug build (WINCW) at that time get following error.
    I searched on Internet with Google search engine also but do not get any solution, please help me because of now I have no any idea that how I can solve this so I post this problem over here.

    Please give me any idea, suggestions and solution.

    Thanks in advance.

    mwldsym2.exe: Undefined symbol: '_vorbis_encoder'
    mwldsym2.exe: referenced from '_avcodec_register_all' in allcodecs.c:214 (libavcodec.lib)
    mwldsym2.exe: Undefined symbol: '_vorbis_decoder'
    mwldsym2.exe: referenced from '_avcodec_register_all' in allcodecs.c:214 (libavcodec.lib)
    mwldsym2.exe: Undefined symbol: '_libnut_muxer'
    mwldsym2.exe: referenced from '_av_register_all' in allformats.c:182 (libavformat.lib)
    mwldsym2.exe: Undefined symbol: '_libnut_demuxer'
    mwldsym2.exe: referenced from '_av_register_all' in allformats.c:182 (libavformat.lib)
    mwldsym2.exe: Undefined symbol: '_vorbis_inverse_coupling'
    mwldsym2.exe: referenced from '_dsputil_init' in dsputil.c:4497 (libavcodec.lib)

    Regards,
    SymbianTH

  2. #2
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Build time get error in FFMPEG example.

    Hi

    I am solve this all 5 error:
    Solution:
    Add following line in libavcodec.mmp file
    SOURCE vorbis_enc.c vorbis_dec.c vorbis.c vorbis_data.c

    Emulator Debug (WINCW) build Successfully.
    Phone Release (GCCE) build - Get Following Error.

    \Symbian\9.2\S60_3rd_FP1_2\EPOC32\RELEASE\ARMV5\UREL\libavcodec.lib Error 87 - possibly too many arguments. If there are a lot of source files in a library, try breaking those out into multiple libraries.

    Console Screen display:
    \Symbian\9.2\S60_3rd_FP1_2\EPOC32\BUILD\Symbian\Code\CODEC\OPEN_C\ffmpeg-r14706-s60-src\group\LIBAVCODEC\GCCE\UREL\vorbis_data.o, ...) failed.
    make (e=87): The parameter is incorrect.

    "vorbis_data.c" for see attachment.

    Please help me now in this problem.

    Regards,
    SymbianTH
    Attached Files Attached Files
    Last edited by SymbianTH; 2009-09-09 at 13:08.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    1

    Re: Build time get error in FFMPEG example.

    Did you edit config.h?
    Check *VORBIS* and *LIBNUT*

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Build time get error in FFMPEG example.

    Hi

    Yes, See my config.h file I attached with this thread.

    Regards,
    SymbianTH
    Attached Files Attached Files
    Last edited by SymbianTH; 2009-09-10 at 11:01. Reason: attach file

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Build time get error in FFMPEG example.

    Hi Guys

    Please help me.

    I wrote error again: Creation Time [\Symbian\9.2\S60_3rd_FP1_2\EPOC32\RELEASE\ARMV5\UREL\libavcodec.lib] Error 87 - possibly too many arguments. If there are a lot of source files in a library, try breaking those out into multiple libraries.

    libavcodec.mmp file contains 265 source files(.c) and include some static library
    also.

    livavcodec.mmp
    -----------------
    Code:
    TARGET		libavcodec.lib
    TARGETTYPE	lib
    UID		0
    
    USERINCLUDE ..\src
    USERINCLUDE ..\src\libavcodec 
    
    SYSTEMINCLUDE \epoc32\include 
    SYSTEMINCLUDE \epoc32\include\stdapis 
    
    SOURCEPATH ..\src\libavcodec
    SOURCE 4xm.c 8bps.c 8svx.c aac_ac3_parser.c aac_parser.c 
    SOURCE aasc.c ac3.c ac3_parser.c ac3dec.c ac3dec_data.c 
    SOURCE ac3enc.c ac3tab.c acelp_filters.c /*celp_math.c*/ acelp_pitch_delay.c 
    SOURCE acelp_vectors.c adpcm.c adxdec.c adxenc.c alac.c 
    SOURCE allcodecs.c apedec.c asv1.c atrac3.c audioconvert.c 
    SOURCE avs.c bethsoftvideo.c bfi.c bitstream.c bitstream_filter.c 
    SOURCE bmp.c bmpenc.c c93.c cabac.c cavs.c 
    SOURCE cavs_parser.c cavsdec.c cavsdsp.c cinepak.c cljr.c 
    SOURCE cook.c cscd.c cyuv.c dca.c dca_parser.c 
    SOURCE dct-test.c dirac_parser.c dnxhddata.c dnxhddec.c dnxhdenc.c 
    SOURCE dpcm.c dsicinav.c dsputil.c dump_extradata_bsf.c dv.c 
    SOURCE dvbsub.c dvbsub_parser.c dvbsubdec.c dvdsub_parser.c dvdsubdec.c 
    SOURCE dvdsubenc.c dxa.c eacmv.c elbg.c error_resilience.c 
    SOURCE escape124.c eval.c faandct.c faanidct.c fdctref.c 
    SOURCE fft-test.c fft.c ffv1.c flac.c flacenc.c 
    SOURCE flashsv.c flashsvenc.c flicvideo.c fraps.c g726.c 
    SOURCE gif.c gifdec.c golomb.c h261.c h261_parser.c 
    SOURCE h261dec.c h261enc.c h263.c h263_parser.c h263dec.c 
    SOURCE h264.c h264_mp4toannexb_bsf.c h264_parser.c h264dspenc.c h264enc.c 
    SOURCE h264idct.c h264pred.c huffman.c huffyuv.c idcinvideo.c 
    SOURCE imc.c imgconvert.c imgresample.c imx_dump_header_bsf.c indeo2.c 
    SOURCE indeo3.c interplayvideo.c intrax8.c intrax8dsp.c jfdctfst.c 
    SOURCE jfdctint.c jpegls.c jpeglsdec.c jpeglsenc.c jrevdct.c 
    SOURCE kmvc.c lcldec.c lclenc.c ljpegenc.c loco.c 
    SOURCE lsp.c lzw.c lzwenc.c mace.c mdct.c 
    SOURCE mimic.c mjpeg.c mjpeg_parser.c mjpegbdec.c mjpegdec.c 
    SOURCE mjpegenc.c mlp_parser.c mlpdec.c mmvideo.c motion-test.c 
    SOURCE motion_est.c motionpixels.c movsub_bsf.c mp3_header_compress_bsf.c mp3_header_decompress_bsf.c 
    SOURCE mpc.c mpc7.c mpc8.c mpeg12.c mpeg12data.c 
    SOURCE mpeg12enc.c mpeg4audio.c mpeg4video_parser.c mpegaudio.c mpegaudio_parser.c 
    SOURCE mpegaudiodata.c mpegaudiodec.c mpegaudiodecheader.c mpegaudioenc.c mpegvideo.c 
    SOURCE mpegvideo_enc.c mpegvideo_parser.c msmpeg4.c msmpeg4data.c msrle.c 
    SOURCE msvideo1.c nellymoser.c nellymoserdec.c noise_bsf.c nuv.c 
    SOURCE opt.c parser.c pcm.c pcx.c png.c 
    SOURCE pngdec.c pngenc.c pnm.c pnm_parser.c pnmenc.c 
    SOURCE ptx.c qdm2.c qdrw.c qpeg.c qtrle.c 
    SOURCE qtrleenc.c ra144.c ra288.c rangecoder.c ratecontrol.c 
    SOURCE raw.c rawdec.c rawenc.c remove_extradata_bsf.c resample.c 
    SOURCE resample2.c rl2.c rle.c roqaudioenc.c roqvideo.c 
    SOURCE roqvideodec.c roqvideoenc.c rpza.c rtjpeg.c rv10.c 
    SOURCE rv30.c rv30dsp.c rv34.c rv40.c s3tc.c 
    SOURCE sgidec.c sgienc.c shorten.c simple_idct.c smacker.c 
    SOURCE smc.c snow.c sonic.c sp5xdec.c sunrast.c 
    SOURCE svq1.c svq1dec.c svq1enc.c targa.c targaenc.c 
    SOURCE tiertexseqv.c tiff.c tiffenc.c truemotion1.c truemotion2.c 
    SOURCE truespeech.c tscc.c tta.c txd.c ulti.c 
    SOURCE utils.c vb.c vc1.c vc1_parser.c vc1data.c 
    SOURCE vc1dsp.c vcr1.c vmdav.c vmnc.c vp3.c 
    SOURCE vp3_parser.c vp3dsp.c vp5.c vp56.c vp56data.c 
    SOURCE vp6.c vqavideo.c wavpack.c wma.c wmadec.c 
    SOURCE wmaenc.c wmv2.c wmv2dec.c wmv2enc.c wnv1.c 
    SOURCE ws-snd1.c xan.c xiph.c xl.c xsubdec.c 
    SOURCE zmbv.c zmbvenc.c mjpega_dump_header_bsf.c pthread.c mdec.c 
    
    MACRO NDEBUG
    MACRO HAVE_AV_CONFIG_H
    MACRO _FILE_OFFSET_BITS=64
    MACRO _LARGEFILE_SOURCE
    MACRO _ISOC9X_SOURCE
    
    LIBRARY libc.lib
    
    STATICLIBRARY libavutil.lib libschroedinger.lib libswscale.lib
    Regards,
    SymbianTH

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Build time get error in FFMPEG example.

    A few thoughts:
    - libavcodec.lib is already a static library project, it does not link at the end - so you can try commenting the LIBRARY and the STATICLIBRARY lines at the end
    - if the problem still arises, you can simply cut the project in half
    Code:
    TARGET		libavcodecASD.lib
    TARGETTYPE	lib
    UID		0
    
    USERINCLUDE ..\src
    USERINCLUDE ..\src\libavcodec 
    
    SYSTEMINCLUDE \epoc32\include 
    SYSTEMINCLUDE \epoc32\include\stdapis 
    
    SOURCEPATH ..\src\libavcodec
    
    move approximately half of the SOURCE lines here
    
    MACRO NDEBUG
    MACRO HAVE_AV_CONFIG_H
    MACRO _FILE_OFFSET_BITS=64
    MACRO _LARGEFILE_SOURCE
    MACRO _ISOC9X_SOURCE
    Then when you would write
    Code:
    STATICLIBRARY libavcodec.lib
    , you will need to write
    Code:
    STATICLIBRARY libavcodec.lib
    STATICLIBRARY libavcodecASD.lib

  7. #7
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: Build time get error in FFMPEG example.

    Hi

    Thanks wizard hu, I split libavcodec in two parts.

    Yes now I am able to build all library files which is listed in ffmpeg application.

    But now problem is when I try to run ffmpeg.exe in emulator terminate a application.

    Any document or any source avilable that how to use this library with symbian application?

    I also tried with movino-symbian application it also do not work this time i am trying to solve problem from this application.

    I need to play .WMV and .OGG(vorbis and theora) and I have following all .lib files, But Please tell me how to use in symbian S60 3rd edition application, So I am able to play .WMV and .OGG files.

    libcrt0.lib
    libavcodec.lib
    libavcodec_ext.lib
    libavformat.lib
    libavutil.lib
    libswscale.lib
    libavdevice.lib
    libfaac.lib
    libfaad.lib
    libmp3lame.lib
    libx264.lib
    libxvidcore.lib
    libogg.lib
    libvorbis.lib
    libtheora.lib
    liba52.lib
    libamrnb.lib
    libamrwb.lib
    libdirac.lib
    libgsm.lib
    libnut.lib
    liboil.lib
    libschroedinger.lib
    libavcodecpart2.lib

    Regards,
    SymbianTH

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Build time get error in FFMPEG example.

    Somehow related thing: according to http://discussion.forum.nokia.com/fo...d.php?t=179946, Cartouche67 is also working on some video-encoding task. You may consider joining forces somehow.

    Otherwise make sure that you get the panic code (http://wiki.forum.nokia.com/index.ph...ded_panic_code)
    If the emulator exits, you can still check its logfile (http://wiki.forum.nokia.com/index.php/Epocwind.out)

  9. #9
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    77

    Re: Build time get error in FFMPEG example.

    Hi all,

    where can i find this ffmpeg project?

    I have found a ffmpeg porting here (http://tongari.at/symbian/ffmpeg/index.html) but when i try to build it many errors are detected in libavcodec and libavutil source files.
    I'm using Carbide.c++ Version 2.3.0.
    How can i get this project working corrrecly?

    Best regards

Similar Threads

  1. Network Time Protocol(Automatic Time Update)
    By lokesh_kumar_s in forum Symbian C++
    Replies: 1
    Last Post: 2009-07-31, 09:48
  2. can only build for emulator. ARM5 and CCE do not build
    By derpflanz in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2008-12-23, 19:29
  3. Replies: 0
    Last Post: 2008-11-07, 21:18
  4. S60_3rd_FP1 build error
    By zeynep in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-11-05, 07:41
  5. Build hangs in Carbide c++ v 1.3
    By qfmomen in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2008-10-30, 19:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •