Compiling error need help

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Compiling error need help

Postby fred.hild » 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

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Compiling error need help

Postby fred.hild » 06 Jul 2007 13:46

Ok I managed to solve that problem but now I have got a new one.

.
.
undefined reference to 'WinMain'
collect 2: ld returned 1 exit status
.
.

junkie_crew
Blank Cone
Blank Cone
Posts: 35
Joined: 31 Jul 2007 15:28

Re: Compiling error need help

Postby junkie_crew » 31 Jul 2007 15:31

Hi,

Please, could you tell me how you solved the first error ? I've got the same :lol:

Thanks

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Compiling error need help

Postby fred.hild » 01 Aug 2007 09:42

Hmm Im trying to remember what it was I changed to make it work. I remember I disabled ffmpeg because some problem but i cant remember what problem it was.
Could you post your config file so I can take a look at it.

/fred.hild

junkie_crew
Blank Cone
Blank Cone
Posts: 35
Joined: 31 Jul 2007 15:28

Re: Compiling error need help

Postby junkie_crew » 01 Aug 2007 12:11

Actually, I found what was wrong too.

For others who might have the same problem, it is only a LD_LIBRARYPATH problem. You need to change this environment variable in order to put the folder in which your libraries are, usually /usr/local/wince/corss-tools/lib or /usr/local/wince/contrib-xscale/lib.

Now I also have a "undefined function" problem during the link. My error is :
Warning: .drectve `/DEFAULTLIB:"coredll.lib" /DEFAULTLIB:"corelibc.lib" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"coredll.lib" /DEFAULTLIB:"corelibc.lib" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"coredll.lib" /DEFAULTLIB:"corelibc.lib" ' unrecognized
./modules/misc/libfreetype.a(libfreetype_a-freetype.o):freetype.c:(.text+0x5f0): undefined reference to `GetWindowsDirectoryW'
But I already posted topic on the forum today.

Well, I hope we will be able to help each other :wink:

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Compiling error need help

Postby fred.hild » 01 Aug 2007 12:35

If you have any idea on my current problem I would be happy.

viewtopic.php?f=2&t=39016&hilit=

/fred.hild


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 81 guests