Compiling error need help
Posted: 05 Jul 2007 17:50
Hello I am trying to compile vlc for Windows CE but is having problem.
I am using the latest contributionpackage (from 2005) and vlc source version 8.4 (or any other version I get the same error with 8.3 and 8.5).
I am running the compilation on a ubuntu mahine and is using the crosscompiler created by the vlc-team.
When i am trying to compile the code error below occurs. What is wrong I cant say that i understand what I should do about the error message. Need help.
/Fredrik Hildorsson
usr/local/wince/contrib-xscale/include -pipe -MT src/vlc-vlc.o -MD -MP -MF "src/.deps/vlc-vlc.Tpo" -c -o src/vlc-vlc.o `test -f 'src/vlc.c' || echo './'`src/vlc.c; \
then mv -f "src/.deps/vlc-vlc.Tpo" "src/.deps/vlc-vlc.Po"; else rm -f "src/.deps/vlc-vlc.Tpo"; exit 1; fi
<command line>:1:1: warning: "main" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from ./include/vlc_common.h:460,
from ./include/vlc/vlc.h:150,
from src/vlc.c:39:
./include/vlc_threads.h:152: warning: '__stdcall__' attribute directive ignored
./include/vlc_threads.h:153: warning: '__stdcall__' attribute directive ignored
src/vlc.c:168: warning: '__stdcall__' attribute directive ignored
arm-wince-pe-g++ -Wsign-compare -Wsign-compare -Wall -I/usr/local/wince/contrib-xscale/include -pipe -L/usr/local/wince/contrib-xscale/lib -o vlc.exe src/vlc-vlc.o lib/libvlc.a ./modules/codec/ffmpeg/libffmpeg.a ./modules/gui/wince/libwince.a ./modules/misc/dummy/libdummy.a ./modules/misc/liblogger.a ./modules/misc/memcpy/libmemcpy.a ./modules/demux/mpeg/libmpgv.a ./modules/demux/mpeg/libmpga.a ./modules/demux/mpeg/libm4v.a ./modules/demux/mpeg/libm4a.a ./modules/demux/mpeg/libh264.a ./modules/demux/libps.a ./modules/demux/libpva.a ./modules/demux/avi/libavi.a ./modules/demux/asf/libasf.a ./modules/demux/mp4/libmp4.a ./modules/demux/librawdv.a ./modules/demux/libnsv.a ./modules/demux/libreal.a ./modules/demux/libaiff.a ./modules/demux/libmjpeg.a ./modules/demux/libdemuxdump.a ./modules/demux/libflac.a ./modules/codec/libcvdsub.a ./modules/codec/libsvcdsub.a ./modules/codec/spudec/libspudec.a ./modules/codec/libsubsdec.a ./modules/codec/libdvbsub.a ./modules/codec/libmpeg_audio.a ./modules/codec/liblpcm.a ./modules/codec/liba52.a ./modules/codec/libdts.a ./modules/codec/libcinepak.a ./modules/codec/libflacdec.a ./modules/video_filter/libdeinterlace.a ./modules/video_filter/libinvert.a ./modules/video_filter/libadjust.a ./modules/video_filter/libtransform.a ./modules/video_filter/libdistort.a ./modules/video_filter/libmotionblur.a ./modules/video_filter/librv32.a ./modules/audio_filter/converter/libfixed32tos16.a ./modules/audio_filter/converter/libs16tofixed32.a ./modules/audio_filter/converter/libu8tofixed32.a ./modules/audio_filter/resampler/libtrivial_resampler.a ./modules/audio_filter/resampler/libugly_resampler.a ./modules/audio_filter/channel_mixer/libtrivial_channel_mixer.a ./modules/audio_mixer/libtrivial_mixer.a ./modules/demux/playlist/libplaylist.a ./modules/misc/playlist/libexport.a ./modules/demux/libsgimb.a ./modules/demux/libm3u.a ./modules/demux/libnsc.a ./modules/misc/xml/libxtag.a ./modules/video_chroma/libi420_rgb.a ./modules/codec/librawvideo.a ./modules/video_filter/libblend.a ./modules/video_filter/libscale.a ./modules/video_output/libimage.a ./modules/video_filter/liblogo.a ./modules/demux/libwav.a ./modules/codec/libaraw.a ./modules/demux/libsubtitle.a ./modules/demux/libvobsub.a ./modules/codec/libadpcm.a ./modules/demux/liba52sys.a ./modules/demux/libdtssys.a ./modules/demux/libau.a ./modules/demux/libty.a ./modules/demux/libvoc.a ./modules/demux/libxa.a ./modules/demux/libnuv.a ./modules/access/libaccess_directory.a ./modules/access/libaccess_file.a ./modules/access/libaccess_udp.a ./modules/access/libaccess_tcp.a ./modules/access/libaccess_http.a ./modules/access/mms/libaccess_mms.a ./modules/access/libaccess_ftp.a ./modules/misc/network/libipv4.a ./modules/packetizer/libpacketizer_mpegvideo.a ./modules/packetizer/libpacketizer_h264.a ./modules/packetizer/libpacketizer_mpeg4video.a ./modules/packetizer/libpacketizer_mpeg4audio.a ./modules/misc/libwin32text.a ./modules/control/http/libhttp.a ./modules/demux/libts.a ./modules/demux/libogg.a ./modules/codec/libfaad.a ./modules/codec/libtremor.a ./modules/codec/cmml/libcmml.a ./modules/video_output/libwingdi.a ./modules/video_output/libwingapi.a ./modules/audio_output/libwaveout.a ./modules/visualization/visual/libvisual.a -L/usr/local/wince/lib -lws2 -e WinMainCRTStartup -L/usr/local/wince/contrib-xscale/lib -lavcodec ./modules/gui/wince/wince_rc.o -lcommctrl -lcommdlg -laygshell -lz -lws2 -lws2 -lws2 -lws2 -lws2 -lws2 -lws2 -ldvbpsi -logg -lfaad -lvorbisidec -logg lib/libvlc.a
/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/../../../../arm-wince-pe/bin/ld: cannot find -lws2
collect2: ld returned 1 exit status
make[2]: *** [vlc.exe] Error 1
make[2]: Leaving directory `/root/vlc-0.8.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/vlc-0.8.4'
make: *** [all] Error 2
I am using the latest contributionpackage (from 2005) and vlc source version 8.4 (or any other version I get the same error with 8.3 and 8.5).
I am running the compilation on a ubuntu mahine and is using the crosscompiler created by the vlc-team.
When i am trying to compile the code error below occurs. What is wrong I cant say that i understand what I should do about the error message. Need help.
/Fredrik Hildorsson
usr/local/wince/contrib-xscale/include -pipe -MT src/vlc-vlc.o -MD -MP -MF "src/.deps/vlc-vlc.Tpo" -c -o src/vlc-vlc.o `test -f 'src/vlc.c' || echo './'`src/vlc.c; \
then mv -f "src/.deps/vlc-vlc.Tpo" "src/.deps/vlc-vlc.Po"; else rm -f "src/.deps/vlc-vlc.Tpo"; exit 1; fi
<command line>:1:1: warning: "main" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from ./include/vlc_common.h:460,
from ./include/vlc/vlc.h:150,
from src/vlc.c:39:
./include/vlc_threads.h:152: warning: '__stdcall__' attribute directive ignored
./include/vlc_threads.h:153: warning: '__stdcall__' attribute directive ignored
src/vlc.c:168: warning: '__stdcall__' attribute directive ignored
arm-wince-pe-g++ -Wsign-compare -Wsign-compare -Wall -I/usr/local/wince/contrib-xscale/include -pipe -L/usr/local/wince/contrib-xscale/lib -o vlc.exe src/vlc-vlc.o lib/libvlc.a ./modules/codec/ffmpeg/libffmpeg.a ./modules/gui/wince/libwince.a ./modules/misc/dummy/libdummy.a ./modules/misc/liblogger.a ./modules/misc/memcpy/libmemcpy.a ./modules/demux/mpeg/libmpgv.a ./modules/demux/mpeg/libmpga.a ./modules/demux/mpeg/libm4v.a ./modules/demux/mpeg/libm4a.a ./modules/demux/mpeg/libh264.a ./modules/demux/libps.a ./modules/demux/libpva.a ./modules/demux/avi/libavi.a ./modules/demux/asf/libasf.a ./modules/demux/mp4/libmp4.a ./modules/demux/librawdv.a ./modules/demux/libnsv.a ./modules/demux/libreal.a ./modules/demux/libaiff.a ./modules/demux/libmjpeg.a ./modules/demux/libdemuxdump.a ./modules/demux/libflac.a ./modules/codec/libcvdsub.a ./modules/codec/libsvcdsub.a ./modules/codec/spudec/libspudec.a ./modules/codec/libsubsdec.a ./modules/codec/libdvbsub.a ./modules/codec/libmpeg_audio.a ./modules/codec/liblpcm.a ./modules/codec/liba52.a ./modules/codec/libdts.a ./modules/codec/libcinepak.a ./modules/codec/libflacdec.a ./modules/video_filter/libdeinterlace.a ./modules/video_filter/libinvert.a ./modules/video_filter/libadjust.a ./modules/video_filter/libtransform.a ./modules/video_filter/libdistort.a ./modules/video_filter/libmotionblur.a ./modules/video_filter/librv32.a ./modules/audio_filter/converter/libfixed32tos16.a ./modules/audio_filter/converter/libs16tofixed32.a ./modules/audio_filter/converter/libu8tofixed32.a ./modules/audio_filter/resampler/libtrivial_resampler.a ./modules/audio_filter/resampler/libugly_resampler.a ./modules/audio_filter/channel_mixer/libtrivial_channel_mixer.a ./modules/audio_mixer/libtrivial_mixer.a ./modules/demux/playlist/libplaylist.a ./modules/misc/playlist/libexport.a ./modules/demux/libsgimb.a ./modules/demux/libm3u.a ./modules/demux/libnsc.a ./modules/misc/xml/libxtag.a ./modules/video_chroma/libi420_rgb.a ./modules/codec/librawvideo.a ./modules/video_filter/libblend.a ./modules/video_filter/libscale.a ./modules/video_output/libimage.a ./modules/video_filter/liblogo.a ./modules/demux/libwav.a ./modules/codec/libaraw.a ./modules/demux/libsubtitle.a ./modules/demux/libvobsub.a ./modules/codec/libadpcm.a ./modules/demux/liba52sys.a ./modules/demux/libdtssys.a ./modules/demux/libau.a ./modules/demux/libty.a ./modules/demux/libvoc.a ./modules/demux/libxa.a ./modules/demux/libnuv.a ./modules/access/libaccess_directory.a ./modules/access/libaccess_file.a ./modules/access/libaccess_udp.a ./modules/access/libaccess_tcp.a ./modules/access/libaccess_http.a ./modules/access/mms/libaccess_mms.a ./modules/access/libaccess_ftp.a ./modules/misc/network/libipv4.a ./modules/packetizer/libpacketizer_mpegvideo.a ./modules/packetizer/libpacketizer_h264.a ./modules/packetizer/libpacketizer_mpeg4video.a ./modules/packetizer/libpacketizer_mpeg4audio.a ./modules/misc/libwin32text.a ./modules/control/http/libhttp.a ./modules/demux/libts.a ./modules/demux/libogg.a ./modules/codec/libfaad.a ./modules/codec/libtremor.a ./modules/codec/cmml/libcmml.a ./modules/video_output/libwingdi.a ./modules/video_output/libwingapi.a ./modules/audio_output/libwaveout.a ./modules/visualization/visual/libvisual.a -L/usr/local/wince/lib -lws2 -e WinMainCRTStartup -L/usr/local/wince/contrib-xscale/lib -lavcodec ./modules/gui/wince/wince_rc.o -lcommctrl -lcommdlg -laygshell -lz -lws2 -lws2 -lws2 -lws2 -lws2 -lws2 -lws2 -ldvbpsi -logg -lfaad -lvorbisidec -logg lib/libvlc.a
/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/../../../../arm-wince-pe/bin/ld: cannot find -lws2
collect2: ld returned 1 exit status
make[2]: *** [vlc.exe] Error 1
make[2]: Leaving directory `/root/vlc-0.8.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/vlc-0.8.4'
make: *** [all] Error 2