Page 1 of 1

problems compiling source

Posted: 26 Jun 2005 18:14
by negatory
Hi
I've been trying to compile the source and the most current snapshot on ubuntu 5.04 x86_64 but it gives me the following error:

Code: Select all

:~/downloads/vlc-snapshot-20050625$ make cd . && cat include/aout_internal.h include/audio_output.h include/beos_specific.h include/charset.h include/codecs.h include/configuration.h include/darwin_specific.h include/intf_eject.h include/iso_lang.h include/main.h include/mmx.h include/modules.h include/modules_inner.h include/mtime.h include/network.h include/osd.h include/os_specific.h include/snapshot.h include/stream_output.h include/variables.h include/video_output.h include/vlc_access.h include/vlc_bits.h include/vlc_block.h include/vlc_block_helper.h include/vlc_codec.h include/vlc_common.h include/vlc_config.h include/vlc_cpu.h include/vlc_demux.h include/vlc_error.h include/vlc_es.h include/vlc_es_out.h include/vlc_filter.h include/vlc_config_cat.h include/vlc_httpd.h include/vlc_tls.h include/vlc_md5.h include/vlc_image.h include/vlc_input.h include/vlc_interface.h include/vlc_keys.h include/vlc_messages.h include/vlc_meta.h include/vlc_objects.h include/vlc_playlist.h include/vlc_spu.h include/vlc_stream.h include/vlc_symbols.h include/vlc_threads_funcs.h include/vlc_threads.h include/vlc_video.h include/vlc_vlm.h include/vlc_vod.h include/vlc_xml.h include/vout_synchro.h include/win32_specific.h | perl ./vlc-api.pl touch stamp-api srcdir=. ./toolbox --update-includes creating new ./src/misc/modules_builtin.h touch src/misc/modules_builtin.h make all-recursive make[1]: Entering directory `/home/negatory/downloads/vlc-snapshot-20050625' Making all in intl make[2]: Entering directory `/home/negatory/downloads/vlc-snapshot-20050625/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/negatory/downloads/vlc-snapshot-20050625/intl' Making all in modules make[2]: Entering directory `/home/negatory/downloads/vlc-snapshot-20050625/modules' Making all in access make[3]: Entering directory `/home/negatory/downloads/vlc-snapshot-20050625/modules/access' make[4]: Entering directory `/home/negatory/downloads/vlc-snapshot-20050625/modules/access' if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_file` -Wsign-compare -Wall -pipe -MT libaccess_file_plugin_a-file.o -MD -MP -MF ".deps/libaccess_file_plugin_a-file.Tpo" -c -o libaccess_file_plugin_a-file.o `test -f 'file.c' || echo './'`file.c; \ then mv -f ".deps/libaccess_file_plugin_a-file.Tpo" ".deps/libaccess_file_plugin_a-file.Po"; else rm -f ".deps/libaccess_file_plugin_a-file.Tpo"; exit 1; fi cc1: error: invalid option `tune=opteron' make[4]: *** [libaccess_file_plugin_a-file.o] Error 1 make[4]: Leaving directory `/home/negatory/downloads/vlc-snapshot-20050625/modules/access' make[3]: *** [all-modules] Error 1 make[3]: Leaving directory `/home/negatory/downloads/vlc-snapshot-20050625/modules/access' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/negatory/downloads/vlc-snapshot-20050625/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/negatory/downloads/vlc-snapshot-20050625' make: *** [all] Error 2
What am I doing wrong?
Thanks

Posted: 26 Jun 2005 19:34
by dionoea
you need to use gcc 3.4 instead of gcc 3.3 (didn't have opterons when they release 3.3)

Posted: 26 Jun 2005 19:43
by negatory
Worked fine!Compiling it now!
Thank you very much!

Posted: 26 Jun 2005 22:14
by negatory
I still have one little problem...I can't seem to tell the configure script where to find ffmpeg...I've tried ./configure ,./configure --with-ffmpeg-tree=/usr/include/ffmpeg.I've "apt-get install libavcodec-dev libavformat-dev" and still nothing...can't see what am I doing wrong.
Error after make follows:

Code: Select all

Making all in ffmpeg make[5]: Entering directory `/home/negatory/downloads/vlc-0.8.2/modules/codec/ffmpeg' make[6]: Entering directory `/home/negatory/downloads/vlc-0.8.2/modules/codec/ffmpeg' if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin ffmpeg` -Wsign-compare -Wall -pipe -MT libffmpeg_plugin_a-ffmpeg.o -MD -MP -MF ".deps/libffmpeg_plugin_a-ffmpeg.Tpo" \ -c -o libffmpeg_plugin_a-ffmpeg.o `test -f 'ffmpeg.c' || echo './'`ffmpeg.c; \ then mv -f ".deps/libffmpeg_plugin_a-ffmpeg.Tpo" ".deps/libffmpeg_plugin_a-ffmpeg.Po"; \ else rm -f ".deps/libffmpeg_plugin_a-ffmpeg.Tpo"; exit 1; \ fi ffmpeg.c:49:44: libpostproc/postprocess.h: No such file or directory make[6]: *** [libffmpeg_plugin_a-ffmpeg.o] Error 1 make[6]: Leaving directory `/home/negatory/downloads/vlc-0.8.2/modules/codec/ffmpeg' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/home/negatory/downloads/vlc-0.8.2/modules/codec/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/negatory/downloads/vlc-0.8.2/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/negatory/downloads/vlc-0.8.2/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/negatory/downloads/vlc-0.8.2/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/negatory/downloads/vlc-0.8.2' make: *** [all] Error 2
I've tried to compile it trough "apt-get source vlc --build" but the same error occurs...
If you have any thougts I would appreciate.
Thank you very much!