Compiling for Win CE need Help
Posted: 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.
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.