Compiling for Win CE need Help

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Compiling for Win CE need Help

Postby fred.hild » 11 Jul 2007 17:28

Hello
Im trying to compile vlc for Windows CE (its the libvlc.dll I want).
But i get a problem. Im using the latest contrib package and vlc source 0.8.4.
Im compiling under Ubuntu.

This is the problem:

./modules/gui/wince/libwince_pic.a(libwince_pic_a-subtitles.o):subtitles.cpp:(.text$_ZN14SubsFileDialogD1Ev[SubsFileDialog::~SubsFileDialog()]+0x624): undefined reference to `operator delete(void*)'
./modules/gui/wince/libwince_pic.a(libwince_pic_a-subtitles.o):subtitles.cpp:(.text$_ZN14SubsFileDialogD1Ev[SubsFileDialog::~SubsFileDialog()]+0x648): undefined reference to `__gxx_personality_sj0'
./modules/gui/wince/libwince_pic.a(libwince_pic_a-subtitles.o):subtitles.cpp:(.text$_ZN14SubsFileDialogD1Ev[SubsFileDialog::~SubsFileDialog()]+0x654): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
./modules/gui/wince/libwince_pic.a(libwince_pic_a-subtitles.o):subtitles.cpp:(.rdata$_ZTI14SubsFileDialog[typeinfo for SubsFileDialog]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/../../../../arm-wince-pe/lib/crt0.o(obj/ARMV4/retail/pegwmain.obj): In function `WinMainCRTStartup':
c:\mckendric\priva:7: undefined reference to `WinMain'
collect2: ld returned 1 exit status
make[2]: *** [libvlc.dll] 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

My config file:

./bootstrap &&
PATH=/usr/local/wince/cross-tools/bin:$PATH \
CFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include -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 \
--enable-shared-libvlc \
--disable-gnomevfs --disable-smb --disable-skins2 \
--disable-visual \
--enable-dshow \
--disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \
--disable-nls --disable-sout --disable-vlm --disable-wxwindows \
--disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi \
--disable-mad --disable-plugins --enable-optimize-memory \
--with-freetype-config-path=/usr/local/wince/contrib-xscale/bin \
--with-fribidi-config-path=/usr/local/wince/contrib-xscale/bin \
--enable-tremor --enable-faad

Please help me. I'm stuck.

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

Re: Compiling for Win CE need Help

Postby fred.hild » 17 Jul 2007 13:49

Im still trying to compile the thing for WinCe and I have managed to get rid of the problem above (by adding an empty WinMain in libvlc.c).
But surprise now I got a new error.

Cannot export _vout_SynchroInit (_vout_SynchroInit): symbol not found
Cannot export _xc_a (_xc_a): symbol not found
Cannot export _xc_z (_xc_z): symbol not found
Cannot export _xi_a (_xi_a): symbol not found
Cannot export _xi_z (_xi_z): symbol not found
Cannot export _xml_Create (_xml_Create): symbol not found
Cannot export _xp_a (_xp_a): symbol not found
Cannot export _xp_z (_xp_z): symbol not found
Cannot export _xt_a (_xt_a): symbol not found
Cannot export _xt_z (_xt_z): symbol not found
Cannot export c_exit (c_exit): symbol not found
Cannot export cexit (cexit): symbol not found
Cannot export cinit (cinit): symbol not found
Cannot export exitflag (exitflag): symbol not found
Cannot export getopt_internal (getopt_internal): symbol not found
Cannot export getstdfilex (getstdfilex): symbol not found
Cannot export isctype (isctype): symbol not found
Cannot export mediacontrol_createRGBPicture (mediacontrol_createRGBPicture): symbol not found
Cannot export snprintf (snprintf): symbol not found
Cannot export vsnprintf (vsnprintf): symbol not found
collect2: ld returned 1 exit status
make[2]: *** [libvlc.dll] 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

There are alot more "symbol not found" lines and they fills the whole bashbuffer (for some reason the "|"-key (pipe) wont work for me so I cant save the output in a file)

Someone who has any idea of what is wrong?

Here my config file also.

./bootstrap &&
PKG_CONFIG_PATH='/usr/local/wince/contrib-xscale/lib/pkgconfig/' \
PATH=/usr/local/wince/cross-tools/bin:$PATH \
CFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include -I/usr/local/wince/contrib-xscale/include" \
CPPFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include -I/usr/local/wince/contrib-xscale/include" \
CXXFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include -I/usr/local/wince/contrib-xscale/include" \
CXXPPFLAGS="-D__stdcall= -D_OFF_T_ -I/usr/local/wince/cross-tools/include -I/usr/local/wince/contrib-xscale/include" \
LDFLAGS="-lstdc++ -L/usr/local/wince/cross-tools/lib -L/usr/local/wince/contrib-xscale/lib" \
CC="arm-wince-pe-gcc -mcpu=xscale" CXX="arm-wince-pe-g++ -lstdc++ -mcpu=xscale" \
./configure --host=arm-wince-pe --target=arm-wince-pe \
--build=i686-linux --prefix=/usr/local/wince \
--enable-shared-libvlc \
--enable-shared --enable-shared-pp --enable-pp --enable-gpl \
--disable-gnomevfs --disable-smb --disable-skins2 \
--disable-visual \
--enable-dshow \
--disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \
--disable-nls --disable-sout --disable-vlm --disable-wxwidgets \
--disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi \
--disable-mad --disable-plugins --enable-optimize-memory \
--with-freetype-config-path=/usr/local/wince/contrib-xscale/bin \
--with-fribidi-config-path=/usr/local/wince/contrib-xscale/bin \
--enable-tremor \
--disable-ffmpeg \


Thanks in advance / fred.hild

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

Re: Compiling for Win CE need Help

Postby fred.hild » 18 Jul 2007 14:57

Does anyone know any nice forum where someone might know what the problem is?
Because in this one there seems like nobody knows

/ fred.hild


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests