Hi,

Info:
ghc 6.12.3 (installed from haskell plataform)
Mac os x snow leopard 10.6.4
ffmpeg instaled from ports - ffmpeg @0.6.1 
hs-ffmpeg  0.3.4 - installed from cabal-install

When I try compile this package, I get this erros:

Linking dist/build/tutorial01/tutorial01 ...
ld: warning: in /opt/local/lib//libavformat.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libavcodec.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libvpx.a, file was built for unsupported file 
format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libvorbisenc.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libvorbis.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libtheoraenc.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libtheoradec.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libogg.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libspeex.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libschroedinger-1.0.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//liborc-0.4.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libmp3lame.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libdirac_encoder.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libdirac_decoder.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libbz2.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libz.dylib, file was built for unsupported file 
format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libavcore.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libavutil.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libswscale.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libvorbisfile.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libtheora.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libdc1394.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libSDLmain.a, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libSDL.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib//libiconv.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
Undefined symbols:
  "_avpicture_fill", referenced from:
      _sjnQ_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnM_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnI_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnE_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnA_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnw_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjns_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjno_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnk_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjng_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjnc_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjn8_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjn4_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjn0_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmW_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmS_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmO_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmK_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmG_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmC_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmy_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmu_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmq_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmm_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjmi_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjme_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjma_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjm6_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjm2_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlY_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlU_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlQ_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlM_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlI_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlE_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlA_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlw_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjls_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlo_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlk_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlg_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjlc_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjl8_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sjl4_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_sws_getContext", referenced from:
      _sgq0_info in libHShs-ffmpeg-0.3.4.a(SWScale.o)
  "_sws_scale", referenced from:
      _s2YG_info in Main.o
      _sgj1_info in libHShs-ffmpeg-0.3.4.a(SWScale.o)
  "_av_register_all", referenced from:
      _s3kn_info in Main.o
      _hszmffmpegzm0zi3zi4_MediaziFFMpegziFormat_withFFMpeg1_info in 
libHShs-ffmpeg-0.3.4.a(Format.o)
      _hszmffmpegzm0zi3zi4_MediaziFFMpegziFormat_registerAll_info in 
libHShs-ffmpeg-0.3.4.a(Format.o)
  "_av_close_input_file", referenced from:
      _rm1m_info in libHShs-ffmpeg-0.3.4.a(Format.o)
  "_av_open_input_file", referenced from:
      _smoZ_info in libHShs-ffmpeg-0.3.4.a(Format.o)
  "_avcodec_decode_audio2", referenced from:
      _slnp_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_sws_freeContext", referenced from:
      _sgoq_info in libHShs-ffmpeg-0.3.4.a(SWScale.o)
  "_avcodec_find_decoder", referenced from:
      _shXF_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_avcodec_alloc_frame", referenced from:
      _hszmffmpegzm0zi3zi4_MediaziFFMpegziCodec_allocFrame1_info in 
libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_av_read_frame", referenced from:
      _sm6K_info in libHShs-ffmpeg-0.3.4.a(Format.o)
  "_av_find_stream_info", referenced from:
      _smu8_info in libHShs-ffmpeg-0.3.4.a(Format.o)
  "_avcodec_close", referenced from:
      _skWl_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_avcodec_open", referenced from:
      _si3x_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_av_free", referenced from:
      _hszmffmpegzm0zi3zi4_MediaziFFMpegziUtil_zdwccall_info in 
libHShs-ffmpeg-0.3.4.a(Util.o)
  "_dump_format", referenced from:
      _smc2_info in libHShs-ffmpeg-0.3.4.a(Format.o)
  "_avpicture_get_size", referenced from:
      _sin9_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sin5_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sin1_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simX_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simT_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simP_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simL_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simH_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simD_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simz_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simv_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simr_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simn_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simj_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simf_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _simb_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sim7_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sim3_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silZ_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silV_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silR_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silN_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silJ_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silF_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silB_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silx_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silt_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silp_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sill_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _silh_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sild_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sil9_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sil5_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sil1_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikX_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikT_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikP_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikL_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikH_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikD_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikz_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikv_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikr_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _sikn_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_av_alloc_format_context", referenced from:
      _hszmffmpegzm0zi3zi4_MediaziFFMpegziFormat_newContext1_info in 
libHShs-ffmpeg-0.3.4.a(Format.o)
  "_av_init_packet", referenced from:
      _b_init_packet in libHShs-ffmpeg-0.3.4.a(_c_utils.o)
  "_iconv_close", referenced from:
      _hs_iconv_close in libHSbase-4.2.0.2.a(iconv.o)
     (maybe you meant: _hs_iconv_close)
  "_iconv_open", referenced from:
      _hs_iconv_open in libHSbase-4.2.0.2.a(iconv.o)
     (maybe you meant: _hs_iconv_open)
  "_av_dup_packet", referenced from:
      _slk5_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
      _siba_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_avcodec_decode_video", referenced from:
      _slDe_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
  "_iconv", referenced from:
      _hs_iconv in libHSbase-4.2.0.2.a(iconv.o)
     (maybe you meant: _hs_iconv_close, _hs_iconv_open , _hs_iconv )
  "_av_free_packet", referenced from:
      _b_free_packet in libHShs-ffmpeg-0.3.4.a(_c_utils.o)
  "_av_malloc", referenced from:
      _sfJW_info in libHShs-ffmpeg-0.3.4.a(Util.o)
      _sfO9_info in libHShs-ffmpeg-0.3.4.a(Util.o)
      _hszmffmpegzm0zi3zi4_MediaziFFMpegziUtil_zdwa_info in 
libHShs-ffmpeg-0.3.4.a(Util.o)
  "_av_new_packet", referenced from:
      _sl3q_info in libHShs-ffmpeg-0.3.4.a(Codec.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status


I'm build it to get a starting point to use hs-ffmpeg. Anyone have the same 
problem? Any ideias?

Thanks,
Victor
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to