Page 1 of 1

compile error wince-vlc

Posted: 09 Sep 2005 16:52
by crony76
Hello!

I am compiling vlc media player for wince

Souce file is
VLC version : 0.8.2
Cross-tools: wince-arm-gcc4.0.0-cvs-linux-crosscompiler-20050517.tar.tar
lib package : contrib-20050220-wince-xscale-bin.tar.tar

I followed INSTALL.wince document
configure is OK but when I make, I meet the following error message
I don't know how to solve this problem
please tell me ~~~ :)

./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

Posted: 09 Sep 2005 17:07
by brian
./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
You seem to have specified -lws2 more than once there.
(Seven times? o_0)

lws2 is probably winsock2 library? (I could be wrong.)

Posted: 09 Jun 2006 05:47
by alenliau
i have the same problem with crony76

or crony76 solve it?

does anybody can help me?

Posted: 14 Jun 2006 15:40
by DanEE
There is an error in the INSTALL.wince file.

The 2 lines:

Code: Select all

LDFLAGS="-L/usr/local/wince/cross-tools/lib" \ LDFLAGS="-L/usr/local/wince/contrib-xscale/lib" \
should go in one line

Code: Select all

LDFLAGS="-L/usr/local/wince/cross-tools/lib -L/usr/local/wince/contrib-xscale/lib" \
If there are still 2 lines the LDFLAGS field is simply overriden and the make command cannot find the ws2 lib which is in the cross-tools/lib folder.

There is another error in the file

Code: Select all

../configure
should be

Code: Select all

./configure
With these corrections I was able to compile the 0.8.4 release. The newest release 0.8.5 still contains some errors.

PS: Where can I report these errors?

very apreciate DanEE's correction~

Posted: 15 Jun 2006 08:19
by alenliau
After correct this two lines, there are some errors ,afterward i added the --disable-gnomevfs --disable-smb --disable-skins2
compile success,the vlc.exe occur in my documentation,anybody want to compile vlc for wince, you can try this and dicuss together.

Posted: 25 Jan 2007 18:32
by hinggor
hi , i am using vlc0.8.4 for compile vlc for wince platform

I got the following error.

NOTE: you do not have the "pkg-config" utility on your system;
detection of the Gtk-2.0 and GNOME 2.0 libraries will not be
reliable.
./b.bat: line 2: : command not found
checking build system type... i686-pc-linux-gnu
checking host system type... arm-wince-pe
checking target system type... arm-wince-pe
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-wince-pe-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-wince-pe-gcc... arm-wince-pe-gcc -mcpu=xscale
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.



I am using the following to config~ plz help!!

./bootstrap && \
PATH=/usr/local/wince/cross-tools/bin:$PATH \
CFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include" \
CFLAGS="$CFLAGS -I/usr/local/wince/contrib-xscale/include" \
LDFLAGS="-L/usr/local/wince/cross-tools/lib -L/usr/local/wince/contrib-

xscale/lib" \
CC="arm-wince-pe-gcc -mcpu=xscale" \
./configure --host=arm-wince-pe --target=arm-wince-pe \
--build=i686-linux --prefix=/usr/local/wince \
--disable-sdl --disable-gtk --disable-dvdnav \
--disable-nls --disable-wxwindows --disable-directx \
--disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi \
--disable-mad --disable-plugins --enable-optimize-memory \
--disable-gnomevfs --disable-smb --disable-skins2 \
--with-freetype-config-path=/usr/local/wince/contrib-xscale/bin \
--with-fribidi-config-path=/usr/local/wince/contrib-xscale/bin \
--enable-tremor

Posted: 08 Feb 2007 03:46
by thaiqi
I think it's because you are run the compiler in cygwin as I ever first did, however, the compiler is Linux elf, so you must move to a native Linux.