windows compilation on cygwin help needed

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.
mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

windows compilation on cygwin help needed

Postby mtuncer » 12 Oct 2008 17:55

Hello,
I am new to vlc development. I downloaded v 0.9.3 source last week.
My overall aim is to be able work on the browser plugins (both activex and mozilla).

I was able to compile it fine on ubuntu. But things changed when I attempted to get windows build I failed miserably.

Then I switched to cygwin. After spending hours on missing libs finally I was able resolve missing library errors with the latest contrib distribution.

I got the following script from INSTALL.win32 file. I removed few lines since configure tool did not like --host definition and CC, CXX definitions.

Code: Select all

CONTRIB_TREE=/usr/win32 PATH=${CONTRIB_TREE}/bin:$PATH \ ./bootstrap && \ CPPFLAGS="-I${CONTRIB_TREE}/include -I${CONTRIB_TREE}/include/ebml" \ LDFLAGS=-L${CONTRIB_TREE}/lib \ PKG_CONFIG_LIBDIR=${CONTRIB_TREE}/lib/pkgconfig \ ./configure \ --enable-sdl --with-sdl-config-path=${CONTRIB_TREE}/bin --disable-gtk \ --enable-nls \ --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \ --with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \ --with-wx-config-path=${CONTRIB_TREE}/bin \ --with-freetype-config-path=${CONTRIB_TREE}/bin \ --with-fribidi-config-path=${CONTRIB_TREE}/bin \ --enable-live555 --with-live555-tree=${CONTRIB_TREE}/live.com \ --enable-caca --with-caca-config-path=${CONTRIB_TREE}/bin \ --with-xml2-config-path=${CONTRIB_TREE}/bin \ --with-dvdnav-config-path=${CONTRIB_TREE}/bin \ --disable-cddax --disable-vcdx --enable-goom \ --enable-twolame --enable-dvdread \ --disable-gnomevfs \ --enable-dca\ --disable-optimizations \ --enable-activex \ --enable-mozilla \
then I typed "make" to build the project
log file is attached. I didnot get much out of "X-I....." stuff.
make all-recursive
make[1]: Entering directory `/home/Murat/vlc/vlc-0.9.3'
Making all in po
make[2]: Entering directory `/home/Murat/vlc/vlc-0.9.3/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Murat/vlc/vlc-0.9.3/po'
Making all in src
make[2]: Entering directory `/home/Murat/vlc/vlc-0.9.3/src'
make all-recursive
make[3]: Entering directory `/home/Murat/vlc/vlc-0.9.3/src'
Making all in .
make[4]: Entering directory `/home/Murat/vlc/vlc-0.9.3/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -mno-cygwin -std=gnu99 -DHAVE_C
ONFIG_H -I. -I.. -I../include -I../include -I/usr/win32/include -I/usr/win32/i
nclude/ebml -DSYS_MINGW32 `top_builddir=".." ../vlc-config --cflags libvlc` -DMO
DULE_STRING=\"main\" -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr
/local/etc\" -DDATA_PATH=\"/usr/local/share/vlc\" -DLIBDIR=\"/usr/local/lib\" -D
PLUGIN_PATH=\"/usr/local/lib/vlc\" -mms-bitfields -Wall -Wextra -Wsign-compare -
Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissin
g-prototypes -MT libvlccore_la-libvlc.lo -MD -MP -MF .deps/libvlccore_la-libvlc.
Tpo -c -o libvlccore_la-libvlc.lo `test -f 'libvlc.c' || echo './'`libvlc.c
../libtool: line 851: X--tag=CC: command not found
../libtool: line 884: libtool: ignoring unknown tag : command not found
../libtool: line 851: X--mode=compile: command not found
../libtool: line 1018: *** Warning: inferring the mode of operation is deprecate
d.: command not found
../libtool: line 1019: *** Future versions of Libtool will require --mode=MODE b
e specified.: command not found
../libtool: line 1162: Xgcc: command not found
../libtool: line 1162: X-mno-cygwin: command not found
../libtool: line 1162: X-std=gnu99: command not found
../libtool: line 1162: X-DHAVE_CONFIG_H: command not found
../libtool: line 1162: X-I.: command not found
../libtool: line 1162: X-I..: command not found
../libtool: line 1162: X-I../include: No such file or directory
../libtool: line 1162: X-I../include: No such file or directory
../libtool: line 1162: X-I/usr/win32/include: No such file or directory
../libtool: line 1162: X-I/usr/win32/include/ebml: No such file or directory
../libtool: line 1162: X-DSYS_MINGW32: command not found
../libtool: line 1162: X-I/usr/local/include: No such file or directory
../libtool: line 1162: X-D_FILE_OFFSET_BITS=64: command not found
../libtool: line 1162: X-D__USE_UNIX98: command not found
../libtool: line 1162: X-D_LARGEFILE64_SOURCE: command not found
../libtool: line 1162: X-D_REENTRANT: command not found
../libtool: line 1162: X-D_THREAD_SAFE: command not found
../libtool: line 1162: X-D__LIBVLC__: command not found
../libtool: line 1162: X-I../src/misc: No such file or directory
../libtool: line 1162: X-O0: command not found
../libtool: line 1162: X-DMODULE_STRING="main": command not found
../libtool: line 1162: X-DLOCALEDIR="/usr/local/share/locale": No such file or d
irectory
../libtool: line 1162: X-DSYSCONFDIR="/usr/local/etc": No such file or directory

../libtool: line 1162: X-DDATA_PATH="/usr/local/share/vlc": No such file or dire
ctory
../libtool: line 1162: X-DLIBDIR="/usr/local/lib": No such file or directory
../libtool: line 1162: X-DPLUGIN_PATH="/usr/local/lib/vlc": No such file or dire
ctory
../libtool: line 1162: X-mms-bitfields: command not found
../libtool: line 1162: X-Wall: command not found
../libtool: line 1162: X-Wextra: command not found
../libtool: line 1162: X-Wsign-compare: command not found
../libtool: line 1162: X-Wundef: command not found
../libtool: line 1162: X-Wpointer-arith: command not found
../libtool: line 1162: X-Wbad-function-cast: command not found
../libtool: line 1162: X-Wcast-align: command not found
../libtool: line 1162: X-Wwrite-strings: command not found
../libtool: line 1162: X-Wmissing-prototypes: command not found
../libtool: line 1162: X-MT: command not found
../libtool: line 1162: Xlibvlccore_la-libvlc.lo: command not found
../libtool: line 1162: X-MD: command not found
../libtool: line 1162: X-MP: command not found
../libtool: line 1162: X-MF: command not found
../libtool: line 1162: X.deps/libvlccore_la-libvlc.Tpo: No such file or director
y
../libtool: line 1162: X-c: command not found
../libtool: line 1215: Xlibvlccore_la-libvlc.lo: command not found
../libtool: line 1220: libtool: compile: cannot determine name of library object
from `': command not found
make[4]: *** [libvlccore_la-libvlc.lo] Error 1
make[4]: Leaving directory `/home/Murat/vlc/vlc-0.9.3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Murat/vlc/vlc-0.9.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Murat/vlc/vlc-0.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Murat/vlc/vlc-0.9.3'
make: *** [all] Error 2


my contrib file is "contrib-20081006-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2"
gcc version is 3.4.4. mingw stuff is installed.

Can somebody tell me what I am doing wrong here ?


Also I read there were playback problems in v0.9.2 in browser plugins. Can you recommend "workable" release for this purpose ?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: windows compilation on cygwin help needed

Postby VLC_help » 13 Oct 2008 14:03


mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 13 Oct 2008 14:16

yes I did.

I will start from beginning more carefully. Is 0.9.3 release good enough for plugin work on windows ?

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 13 Oct 2008 20:49

I re-tried following exact same steps from the document.

The only difference was that I used 0.9.3 instead of git release since git failed to download source. I did not attempt svn download.

result: same error in my first post.

now I am trying with 0.9.4 sources. I will post the outcome

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 13 Oct 2008 21:34

I was able to move forward a bit.

vlc : 0.9.4
contribs : 20081006
gcc: 3.4.4

failure I got this time
/bin/sh ../../../libtool --tag=CC --mode=link gcc -mno-cygwin -std=gnu99 `top_builddir="../../.." ../../../vlc-config
--cflags plugin libavcodec_plugin.la` -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function
-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -rpath '/usr/local/lib/vlc/codec' -avoid-version -module -no-und
efined -export-symbol-regex ^vlc_entry -shrext .dll `top_builddir="../../.." ../../../vlc-config --ldflags plugin libavc
odec_plugin.la` -L/usr/win32/lib -o libavcodec_plugin.la libavcodec_plugin_la-avcodec.lo libavcodec_plugin_la-video.lo
libavcodec_plugin_la-audio.lo libavcodec_plugin_la-deinterlace.lo libavcodec_plugin_la-encoder.lo `top_builddir="../..
/.." ../../../vlc-config -libs plugin libavcodec_plugin.la` ../../../src/libvlccore.la -lmingw32
gcc -mno-cygwin -std=gnu99 -shared .libs/libavcodec_plugin_la-avcodec.o .libs/libavcodec_plugin_la-video.o .libs/libavc
odec_plugin_la-audio.o .libs/libavcodec_plugin_la-deinterlace.o .libs/libavcodec_plugin_la-encoder.o -L/usr/win32/lib -
lavcodec -lavutil ../../../src/.libs/libvlccore.dll.a -lmingw32 -mno-cygwin -mtune=pentium2 -mms-bitfields -o .libs/lib
avcodec_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libavcodec_plugin.dll.a
.libs/libavcodec_plugin_la-avcodec.o: In function `CloseDecoder':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:323: undefined reference to `_avcodec_close'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:326: undefined reference to `_av_free'
.libs/libavcodec_plugin_la-avcodec.o: In function `InitLibavcodec':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:340: undefined reference to `_avcodec_init'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:341: undefined reference to `_avcodec_register_all'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:342: undefined reference to `_av_log_set_callback'
.libs/libavcodec_plugin_la-avcodec.o: In function `OpenDecoder':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:236: undefined reference to `_avcodec_find_decoder'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/avcodec.c:244: undefined reference to `_avcodec_alloc_context'
.libs/libavcodec_plugin_la-video.o: In function `EndVideoDec':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:683: undefined reference to `_av_free'
.libs/libavcodec_plugin_la-video.o: In function `DecodeVideo':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:525: undefined reference to `_avcodec_decode_video'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:537: undefined reference to `_avcodec_decode_video'
.libs/libavcodec_plugin_la-video.o: In function `InitVideoDec':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:197: undefined reference to `_avcodec_alloc_frame'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:370: undefined reference to `_avcodec_open'
.libs/libavcodec_plugin_la-video.o: In function `ffmpeg_ReGetFrameBuf':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:889: undefined reference to `_avcodec_default_reget_buffer'
.libs/libavcodec_plugin_la-video.o: In function `ffmpeg_GetFrameBuf':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:854: undefined reference to `_avcodec_default_get_buffer'
.libs/libavcodec_plugin_la-video.o: In function `ffmpeg_ReleaseFrameBuf':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/video.c:941: undefined reference to `_avcodec_default_release_buffer'
.libs/libavcodec_plugin_la-audio.o: In function `InitAudioDec':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/audio.c:194: undefined reference to `_avcodec_open'
.libs/libavcodec_plugin_la-audio.o: In function `DecodeAudio':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/audio.c:274: undefined reference to `_avcodec_flush_buffers'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/audio.c:315: undefined reference to `_avcodec_decode_audio2'
.libs/libavcodec_plugin_la-deinterlace.o: In function `Deinterlace':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/deinterlace.c:149: undefined reference to `_avpicture_deinterlace'
.libs/libavcodec_plugin_la-encoder.o: In function `OpenEncoder':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:244: undefined reference to `_avcodec_find_encoder'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:267: undefined reference to `_avcodec_alloc_context'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:609: undefined reference to `_avcodec_open'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:449: undefined reference to `_av_reduce'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:452: undefined reference to `_av_reduce'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:662: undefined reference to `_avcodec_open'
.libs/libavcodec_plugin_la-encoder.o: In function `EncodeVideo':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:925: undefined reference to `_avcodec_encode_video'
.libs/libavcodec_plugin_la-encoder.o: In function `EncodeAudio':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:1047: undefined reference to `_avcodec_encode_audio'
.libs/libavcodec_plugin_la-encoder.o: In function `CloseEncoder':
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:1113: undefined reference to `_avcodec_close'
/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec/encoder.c:1115: undefined reference to `_av_free'
Creating library file: .libs/libavcodec_plugin.dll.a
collect2: ld returned 1 exit status
make[6]: *** [libavcodec_plugin.la] Error 1
make[6]: Leaving directory `/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/Murat/vlc/vlc-0.9.4/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Murat/vlc/vlc-0.9.4/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Murat/vlc/vlc-0.9.4/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Murat/vlc/vlc-0.9.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Murat/vlc/vlc-0.9.4'
make: *** [all] Error 2


I think it has something to do with contribs

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 13 Oct 2008 21:40

I knew I saw very similar thing somewhere.


here

viewtopic.php?f=14&t=51118

recommendation is to check what happens with git version.

I will try just that if git download cooperates.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 14 Oct 2008 06:25

still failures.

git version failed with following error
/bin/sh ../../libtool --tag=CC --tag=CC --mode=compile gcc -mno-cygwin -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../.
./include -I../../include -I/usr/win32/include -I/usr/win32/include/ebml -DSYS_MINGW32 `top_builddir="../.." ../../vlc-c
onfig --cflags plugin libaccess_file_plugin_la-file.lo` -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-ar
ith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -MT libaccess_file_plugin_la-file.lo -MD -MP -
MF .deps/libaccess_file_plugin_la-file.Tpo -c -o libaccess_file_plugin_la-file.lo `test -f 'file.c' || echo './'`file.c
gcc -mno-cygwin -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I/usr/win32/include -I/usr/win3
2/include/ebml -DSYS_MINGW32 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRA
NT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=access_file -DMODULE_NAME_IS_access_file -DMODULE_STRI
NG=\"access_file\" -g -O2 -ffast-math -funroll-loops -mtune=pentium2 -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef
-Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -MT libaccess_file_plugin_la-file
.lo -MD -MP -MF .deps/libaccess_file_plugin_la-file.Tpo -c file.c -DDLL_EXPORT -DPIC -o .libs/libaccess_file_plugin_la-
file.o
In file included from ../../include/vlc_common.h:500,
from file.c:33:
../../include/vlc_mtime.h:84: warning: `error' attribute directive ignored
../../include/vlc_mtime.h:94: warning: `warning' attribute directive ignored
../../include/vlc_mtime.h:112: warning: `error' attribute directive ignored
file.c: In function `open_file':
file.c:354: warning: implicit declaration of function `fcntl'
file.c:354: error: `F_SETFD' undeclared (first use in this function)
file.c:354: error: (Each undeclared identifier is reported only once
file.c:354: error: for each function it appears in.)
file.c:354: error: `F_GETFD' undeclared (first use in this function)
file.c:354: error: `FD_CLOEXEC' undeclared (first use in this function)
make[5]: *** [libaccess_file_plugin_la-file.lo] Error 1
make[5]: Leaving directory `/home/Murat/vlc/git/vlc/modules/access'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Murat/vlc/git/vlc/modules/access'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Murat/vlc/git/vlc/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Murat/vlc/git/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Murat/vlc/git/vlc'
make: *** [all] Error 2

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: windows compilation on cygwin help needed

Postby VLC_help » 14 Oct 2008 16:09

That (file.c issue) was fixed few hours ago.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 15 Oct 2008 21:03

still no success. this time something to do with libavcodec.

I am going back to 0.8.6i. hoping better success this time.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 19 Oct 2008 13:03

I am back after a week of silence.

my status
-working on current version I updated today
-contribs 2008-08-11 (after unsuccessfull attempt with 2008-10-06)
-gcc : 3.4.4

-problems:
modules\codec\avcodec throwing the same error posted earlier.

I checked if those functions are available in libavcodec.a file with command

nm libavcodec.a | grep _avcodec_decode_video

result: yes it is available in the library. but my compilation still fails.

I wonder if I can get away with using pre-compiled versions of the modules. I really don't care about being able to compile them.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 19 Oct 2008 14:23

something unexpected occured. I am able to pass avcodec compilation :D

next in the line is

gui/qt4.

I found in the forum that it can be resolved by downgrading w32api to 3.11.
I downloaded w32api 3.11-1 release from a site mentioned in the thread viewtopic.php?f=14&t=50360&start=30&st= ... dincrement

now the question is how I am supposed to downgrade this thing. I removed /usr/include/w32api and /usr/lib/w32api directories and copied the ones that came with the w32api package.

I will see how I did it in about an hour.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 19 Oct 2008 15:36

it was going well until I hit mkv related problem.

I wanted to enable mkv support, so used --enable-mkv instead of --disable-mkv in my configure script and get this error
g++ -mno-cygwin -shared -nostdlib /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/lib/dllcrt2.o .libs/li
bmkv_plugin_la-mkv.o .libs/libmkv_plugin_la-libmp4.o .libs/libmkv_plugin_la-drms.o -L/usr/win32/lib -lz -lmatroska -leb
ml ../../src/.libs/libvlccore.dll.a -lmingw32 -L/usr/lib/gcc/i686-pc-mingw32/3.4.4 -L/usr/lib/gcc/i686-pc-mingw32/3.4.4/
../../../../i686-pc-mingw32/lib -L/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../.. -lstdc++ -lmingw32 -lgcc -lmoldname -lming
wex -lmsvcrt -lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -mno-cyg
win -mtune=pentium2 -mms-bitfields -o .libs/libmkv_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinke
r .libs/libmkv_plugin.dll.a
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0xb7): undefined reference to `std::basic_ostream<char, std
::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<ch
ar> >&, char const*, int)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0xc9): undefined reference to `std::basic_ostream<char, std
::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<void const*>(void const*)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0xdf): undefined reference to `std::basic_ostream<char, std
::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<ch
ar> >&, char const*, int)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0xf1): undefined reference to `std::basic_ostream<char, std
::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x101): undefined reference to `std::basic_ostream<char, st
d::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<c
har> >&, char const*, int)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x95c): undefined reference to `std::basic_ostream<char, st
d::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<c
har> >&, char const*, int)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x96e): undefined reference to `std::basic_ostream<char, st
d::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<void const*>(void const*)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x984): undefined reference to `std::basic_ostream<char, st
d::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<c
har> >&, char const*, int)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x996): undefined reference to `std::basic_ostream<char, st
d::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x9a6): undefined reference to `std::basic_ostream<char, st
d::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<c
har> >&, char const*, int)'
/usr/win32/lib/libebml.a(MemIOCallback.o):MemIOCallback.cpp:(.text+0x33c): undefined reference to `std::basic_ostream<ch
ar, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_tr
aits<char> >&, char const*, int)'
/usr/win32/lib/libebml.a(MemIOCallback.o):MemIOCallback.cpp:(.text+0xd5c): undefined reference to `std::basic_ostream<ch
ar, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_tr
aits<char> >&, char const*, int)'
Creating library file: .libs/libmkv_plugin.dll.a
collect2: ld returned 1 exit status
I read it has something to do with using gcc 3.3.1 compiled contribs. I thought contrib 2008-08 would be fine. it appears I was wrong.

anyway I disable mkv support to unblock myself I will revisit this later.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 19 Oct 2008 16:37

hit an error with qt4.
somebody else got this before me at viewtopic.php?f=14&t=50360&start=15&st= ... ance_qjpeg

followed the advise to comment out a line in qt4.cpp (Q_IMPORT_PLUGIN(qjpeg))

build in progress

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: windows compilation on cygwin help needed

Postby mtuncer » 19 Oct 2008 18:32

yey

I finally successfully compiled vlc 1.0.0 (from git) along with vlc 0.9.4. don't ask why I did this :)

installed nsis utility from sourceforge. and attempted to build installer. of course it did not work at the first trial.

this time I can troubleshoot the failure.

I think I got enough experience to help vlc project with windows :)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: windows compilation on cygwin help needed

Postby Jean-Baptiste Kempf » 19 Oct 2008 19:03

yey

I finally successfully compiled vlc 1.0.0 (from git) along with vlc 0.9.4. don't ask why I did this :)

installed nsis utility from sourceforge. and attempted to build installer. of course it did not work at the first trial.

this time I can troubleshoot the failure.

I think I got enough experience to help vlc project with windows :)
bravo
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 84 guests