problème compilation cygwin / git ...

This forum is about all development around libVLC.
thorcyar
New Cone
New Cone
Posts: 7
Joined: 25 Nov 2008 00:08

problème compilation cygwin / git ...

Postby thorcyar » 25 Nov 2008 00:21

Bonjour à tous et merci pour cette superbe application.

voulant un peu analyse le code source, je me suis dit que j'allais tenter le grand saut : charger les sources(git) et compiler (avant d'essayer de modifier). Hélas !

j'ai suivi à la LETTRE le tutorial du wiki pour la compilation sous cygwin, plusieurs fois. J'ai tenté quelques variantes, du style essayer différents packages de librairies (contrib-20080811-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2, contrib-20070530-win32-bin-gcc-3.4.5-only.tar.bz2, contrib-20081021-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2), mais impossible de compiler quoi que je fasse.

je finis toujours par avoir cette erreur :

make[4]: *** [libvlccore.la] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc'
make: *** [all] Error 2



une idée svp ? je ne comprends pas vraiment ce qui peut empêcher cette foutue compilation de compiler :cry: ...



le message un peu plus complet (avec une erreur libtool) :



../libtool: eval: line 977: syntax error near unexpected token `|'
../libtool: eval: line 977: `link -dump -symbols .libs/libvlccore_la-libvlc.o .libs/libvlccore_la-l
ibvlc-module.o .libs/libvlccore_la-missing.o .libs/libvlccore_la-version.o interface/.libs/libvlccor
e_la-interface.o interface/.libs/libvlccore_la-intf_eject.o interface/.libs/libvlccore_la-interactio
n.o playlist/.libs/libvlccore_la-thread.o playlist/.libs/libvlccore_la-control.o playlist/.libs/libv
lccore_la-engine.o playlist/.libs/libvlccore_la-sort.o playlist/.libs/libvlccore_la-loadsave.o playl
ist/.libs/libvlccore_la-tree.o playlist/.libs/libvlccore_la-item.o playlist/.libs/libvlccore_la-sear
ch.o playlist/.libs/libvlccore_la-services_discovery.o input/.libs/libvlccore_la-item.o input/.libs/
libvlccore_la-access.o input/.libs/libvlccore_la-clock.o input/.libs/libvlccore_la-control.o input/.
libs/libvlccore_la-decoder.o input/.libs/libvlccore_la-decoder_synchro.o input/.libs/libvlccore_la-d
emux.o input/.libs/libvlccore_la-es_out.o input/.libs/libvlccore_la-es_out_timeshift.o input/.libs/l
ibvlccore_la-event.o input/.libs/libvlccore_la-input.o input/.libs/libvlccore_la-meta.o input/.libs/
libvlccore_la-stream.o input/.libs/libvlccore_la-stream_memory.o input/.libs/libvlccore_la-subtitles
.o input/.libs/libvlccore_la-var.o video_output/.libs/libvlccore_la-video_output.o video_output/.lib
s/libvlccore_la-vout_pictures.o video_output/.libs/libvlccore_la-video_text.o video_output/.libs/lib
vlccore_la-video_widgets.o video_output/.libs/libvlccore_la-vout_subpictures.o video_output/.libs/li
bvlccore_la-vout_intf.o audio_output/.libs/libvlccore_la-common.o audio_output/.libs/libvlccore_la-d
ec.o audio_output/.libs/libvlccore_la-filters.o audio_output/.libs/libvlccore_la-input.o audio_outpu
t/.libs/libvlccore_la-mixer.o audio_output/.libs/libvlccore_la-output.o audio_output/.libs/libvlccor
e_la-intf.o osd/.libs/libvlccore_la-osd.o osd/.libs/libvlccore_la-osd_text.o osd/.libs/libvlccore_la
-osd_widgets.o network/.libs/libvlccore_la-acl.o network/.libs/libvlccore_la-getaddrinfo.o network/.
libs/libvlccore_la-io.o network/.libs/libvlccore_la-tcp.o network/.libs/libvlccore_la-udp.o network/
.libs/libvlccore_la-rootbind.o network/.libs/libvlccore_la-tls.o network/.libs/libvlccore_la-poll.o
text/.libs/libvlccore_la-charset.o text/.libs/libvlccore_la-strings.o text/.libs/libvlccore_la-unico
de.o text/.libs/libvlccore_la-filesystem.o text/.libs/libvlccore_la-wincp.o text/.libs/libvlccore_la
-iso_lang.o misc/.libs/libvlccore_la-md5.o misc/.libs/libvlccore_la-rand.o misc/.libs/libvlccore_la-
mtime.o misc/.libs/libvlccore_la-block.o misc/.libs/libvlccore_la-es_format.o modules/.libs/libvlcco
re_la-modules.o modules/.libs/libvlccore_la-cache.o modules/.libs/libvlccore_la-entry.o modules/.lib
s/libvlccore_la-os.o misc/.libs/libvlccore_la-threads.o misc/.libs/libvlccore_la-stats.o misc/.libs/
libvlccore_la-cpu.o misc/.libs/libvlccore_la-action.o config/.libs/libvlccore_la-core.o config/.libs
/libvlccore_la-dirs.o config/.libs/libvlccore_la-chain.o config/.libs/libvlccore_la-file.o config/.l
ibs/libvlccore_la-intf.o config/.libs/libvlccore_la-cmdline.o misc/.libs/libvlccore_la-events.o misc
/.libs/libvlccore_la-image.o misc/.libs/libvlccore_la-messages.o misc/.libs/libvlccore_la-objects.o
misc/.libs/libvlccore_la-variables.o misc/.libs/libvlccore_la-error.o misc/.libs/libvlccore_la-updat
e.o misc/.libs/libvlccore_la-xml.o misc/.libs/libvlccore_la-devices.o extras/.libs/libvlccore_la-lib
c.o misc/.libs/libvlccore_la-filter_chain.o misc/.libs/libvlccore_la-win32_specific.o network/.libs/
libvlccore_la-winsock.o extras/.libs/libvlccore_la-getopt.o extras/.libs/libvlccore_la-getopt1.o net
work/.libs/libvlccore_la-httpd.o stream_output/.libs/libvlccore_la-stream_output.o stream_output/.li
bs/libvlccore_la-announce.o stream_output/.libs/libvlccore_la-sap.o stream_output/.libs/libvlccore_l
a-sdp.o input/.libs/libvlccore_la-vlm.o input/.libs/libvlccore_la-vlmshell.o misc/.libs/libvlccore_l
a-revision.o | | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]_
_nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq > .libs/libvlccore.exp'
make[4]: *** [libvlccore.la] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc'
make: *** [all] Error 2
Last edited by thorcyar on 25 Nov 2008 22:23, edited 1 time in total.

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: problème compilation git ...

Postby Jean-Baptiste Kempf » 25 Nov 2008 07:31

enlève un de tes | dans ta ligne libtool.
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.

thorcyar
New Cone
New Cone
Posts: 7
Joined: 25 Nov 2008 00:08

Re: problème compilation git ...

Postby thorcyar » 25 Nov 2008 17:18

bonjour

tout d'abord, merci d'avoir pris le temps de répondre :)

oui, je vois que le compilateur se plaint d'un "|" d'un certain libtool, mais je ne connais absolument pas les sources de VLC (ou la compilation via make ... suis adepte de visual moi :cry: ), quel fichier pose problème ?

car le tuto parle de lancer un bootstrap (qui passe ok), de lancer une ligne de commande de configure (qui passe OK ) mais où ne figure nulle part "libtool"), puis de lancer un make .... qui ne passe pas :/


voici la ligne 977 de libtool :

Code: Select all

eval "$my_cmd"
..... il n'y a pas de "|". qui appelle cette commande dans laquelle passe un paramètre apparemment erroné ?
la ligne 977 de libtool.m4

Code: Select all

if test "$DSYMUTIL" != ":"; then
..... il n'y a pas de "|"


edit : voici mon fichier qui lance la configuration. Peut être qu'il manque des options, provoquant une valeur nulle d'une variable ce qui entrainerait ensuite un libtool $machin | $variablevide | $bidule qui me plante la compil ?
PATH=/usr/win32/bin:$PATH \
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="ccache gcc -mno-cygwin" CXX="ccache g++ -mno-cygwin" \
./configure \
--host=i686-pc-mingw32 \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-avcodec --enable-avformat --enable-swscale \
--enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--enable-debug --enable-dca \
--enable-qt4 \
--enable-mozilla --with-mozilla-sdk-path=/usr/win32/gecko-sdk
(mais avec celui du wiki j'ai exactement la même erreur)

merci d'avance ;)

mlarente
New Cone
New Cone
Posts: 1
Joined: 25 Nov 2008 17:14

Re: problème compilation git ...

Postby mlarente » 25 Nov 2008 21:19

J'ai le même problème de mon côté. La valeur qui manque, c'est la variable $global_symbol_pipe, mais j'ignore pourquoi elle est vide...

thorcyar
New Cone
New Cone
Posts: 7
Joined: 25 Nov 2008 00:08

Re: problème compilation git ...

Postby thorcyar » 25 Nov 2008 22:17

ok .........


j'ai mis dans le libtool généré par le .configure ceci :

Code: Select all

global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1\\2\\3 \\3/p'"
(trouvé sur le net, il y a un problème sur cygwin apparemment ..... serait peut être bon à rajouter dans le wiki car mon installation de cygwin est toute propre :/)

mais ........ la compilation bloque ailleurs.... problème de librairies now ... vais essayer avec les dernières mais j'ai peur que ça ne passe pas à cause de la version de gcc :/


mais déjà merci pour l'info sur la variable vide !!! comment as tu trouvé que c'était elle qui bloquait ? l'information du compilateur n'est pas franchement claire la dessus ...




edit : ça bloque sur libebml.a et les mkv pour l'instant ..... suis fatigué je continuerai demain soir. j'imagine qu'il faut mettre un --disable-mkv au .configure , mais dans ce cas ....... comment faire pour avoir la lecture des mkv sous windows ? par quelle magie les développeurs originaux arrivent-ils à nous le donner ?

thorcyar
New Cone
New Cone
Posts: 7
Joined: 25 Nov 2008 00:08

Re: problème compilation cygwin / git ...

Postby thorcyar » 27 Nov 2008 00:14

petite information : sans rien changer à cygwin, les sources de vlc 0.9.6 ne créent PAS une variable "global_symbol_pipe" vide ...

autrement dit c'est le git qui a un problème.


mais la compilation de 0.9.6 ne passe pas non plus. problèmes de std::strings, problèmes de qt4 absent des contribs, problème de version 3.12 des win32lib...... je désespère là. c'est incompilable sous cygwin actuellement rassurez moi !

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: problème compilation cygwin / git ...

Postby Jean-Baptiste Kempf » 27 Nov 2008 11:47

You cannot compile MKV and taglib in Cygwin.
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.

thorcyar
New Cone
New Cone
Posts: 7
Joined: 25 Nov 2008 00:08

Re: problème compilation cygwin / git ...

Postby thorcyar » 27 Nov 2008 14:35

ok, I'll continue in english it's probably better.

I'll check how to disable taglib, probably a --disable-taglib in the configure line. I guess that when finding solutions from here and there, trying to bypass some compile errors, i altered my configure line in a "linux options way" and didn't notice it. thanks for the advice :=)

Side question : how is that my topic is invisible on the board unless I connect ? It means that none of all the visitors (who could maybe answer my questions) is aware that I have an issue ..... :/..... is it because I changed the title ?

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: problème compilation cygwin / git ...

Postby Jean-Baptiste Kempf » 27 Nov 2008 16:25

Side question : how is that my topic is invisible on the board unless I connect ? It means that none of all the visitors (who could maybe answer my questions) is aware that I have an issue ..... :/..... is it because I changed the title ?
Fixed.
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.

thorcyar
New Cone
New Cone
Posts: 7
Joined: 25 Nov 2008 00:08

Re: problème compilation cygwin / git ...

Postby thorcyar » 28 Nov 2008 18:11

thanks for the fix.

I went a little further : the compilation process seems to finish and exit :

Code: Select all

libtool: link: ccache g++ -mno-cygwin -shared -nostdlib /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../ ../i686-pc-mingw32/lib/dllcrt2.o .libs/axvlc_la-main.o .libs/axvlc_la-utils.o .libs/axvlc_la-olecon trol.o .libs/axvlc_la-oleinplaceactiveobject.o .libs/axvlc_la-oleinplaceobject.o .libs/axvlc_la-oleo bject.o .libs/axvlc_la-persistpropbag.o .libs/axvlc_la-persiststorage.o .libs/axvlc_la-persiststream init.o .libs/axvlc_la-provideclassinfo.o .libs/axvlc_la-connectioncontainer.o .libs/axvlc_la-objects afety.o .libs/axvlc_la-dataobject.o .libs/axvlc_la-viewobject.o .libs/axvlc_la-supporterrorinfo.o .l ibs/axvlc_la-vlccontrol.o .libs/axvlc_la-vlccontrol2.o .libs/axvlc_la-plugin.o .libs/axvlc_la-axvlc_ idl.o -L/cygdrive/c/VLC/vlc-0.9.6/src/.libs -L/usr/win32/lib ../../src/.libs/libvlc.dll.a /cygdriv e/c/VLC/vlc-0.9.6/src/.libs/libvlccore.dll.a -lkernel32 -lmingw32 ../../src/.libs/libvlccore.dll.a - lkernel32 -lws2_32 -lnetapi32 -lwinmm /usr/win32/lib/libiconv.a -lmingw32 -lole32 -loleaut32 -luuid -lshlwapi -lgdi32 -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 -lmingwex -lmsvcrt -lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgc c -lmoldname -lmingwex -lmsvcrt -mno-cygwin -mtune=pentium2 -mms-bitfields -Wl,./axvlc.def -Wl,axv lc_rc.o -o .libs/axvlc.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/axvlc .dll.a Creating library file: .libs/axvlc.dll.a libtool: link: ( cd ".libs" && rm -f "axvlc.la" && ln -s "../axvlc.la" "axvlc.la" ) make[3]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.6/projects/activex' make[2]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.6/projects/activex' make[2]: Entering directory `/cygdrive/c/VLC/vlc-0.9.6' bindir="/usr/local/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias cvlc dum my bindir="/usr/local/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias rvlc rc bindir="/usr/local/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias svlc ski ns2 bindir="/usr/local/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias qvlc qt4 rm -f -- vlc vlc.tmp echo '#! /bin/sh' > vlc.tmp echo 'exec "$(dirname "$0")/bin/vlc.exe" "--plugin-path=$(dirname "$0")/modules" "$@"' >> vlc.tmp chmod +x vlc.tmp mv -f -- vlc.tmp vlc make[2]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.6' make[1]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.6'

a "./bin/vlc.exe" file is created (only 15 kb) BUT .......... running it does nothing except launch a process in windows ... what did i do wrong :cry: ?


my config file is
$ more configure-vlc.sh
PATH=/usr/win32/bin:$PATH \
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="ccache gcc -mno-cygwin" CXX="ccache g++ -mno-cygwin" \
./configure \
--host=i686-pc-mingw32 \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-avcodec --enable-avformat --enable-swscale \
--enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--enable-debug --enable-dca \
--disable-mkv --disable-taglib \
--enable-qt4
(had to use the trick of the empty variable above in libtool)


why isn't the file created correctly ? Why doesn't the interface show up ?

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: problème compilation cygwin / git ...

Postby Jean-Baptiste Kempf » 29 Nov 2008 09:14

make package-win32-base
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.

cakrudy
New Cone
New Cone
Posts: 6
Joined: 05 Jan 2009 18:31

Re: problème compilation cygwin / git ...

Postby cakrudy » 18 Jan 2009 14:59

../libtool: eval: line 838: syntax error near unexpected token `|'
../libtool: eval: line 838: `dumpbin -symbols .libs/libvlccore_la-libvlc.o .lib
./........
..........
| | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/' | /usr/bin/sed
-e '/^[AITW][ ]/s/.*[ ]//' | sort | uniq > .libs/libvlccore.exp'
make[4]: *** [libvlccore.la] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/VLC/vlc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc'
make: *** [all] Error 2

I have the same problem, but I can't figure out the solution at the above reply messages. So, what the exact solution. thanx

Barrett
New Cone
New Cone
Posts: 5
Joined: 10 Mar 2009 19:00

Re: problème compilation cygwin / git ...

Postby Barrett » 13 Mar 2009 23:32

anyone know how to solve this problem? i get the same error : http://rafb.net/p/uzNzMv78.html

please help!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests