having problem compiling vlc

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.
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: having problem compiling vlc

Postby Jean-Baptiste Kempf » 03 Mar 2009 09:30

contrib-20090118-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2: cannot open: No such file or directory

Just read the message: tar doesn't find this file. Are you sure you have this file in the folder you launch the command.?
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.

ipmultimedia
Blank Cone
Blank Cone
Posts: 13
Joined: 28 Feb 2009 12:13

Re: having problem compiling vlc

Postby ipmultimedia » 03 Mar 2009 13:47

Finally the tar problem solved! We had to type the file name as
"contrib-20090118-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.tar"
instead of
"contrib-20090118-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar" !
The first ".tar" is a part of the file name and the second one is the file extention. :lol:

The next step is to execute the following command which is the next problem:

Code: Select all

ranlib /usr/win32/lib/lib*.a
but it cannot recognize some file formats and writes error message below:

Code: Select all

ranlib: /usr/win32/lib/libBasicUsageEnvironment.a: File format not recognized
So we cut out that file and re-execute the command. We got errors just the same as above only for 3 other files:

Code: Select all

ranlib: /usr/win32/lib/libUsageEnvironment.a: File format not recognized ranlib: /usr/win32/lib/libliveMedia.a: File format not recognized ranlib: /usr/win32/lib/libgroupsock.a: File format not recognized
our next try (after removing the mentioned files from the folder) ended with no message of fail or succeed.

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

Re: having problem compiling vlc

Postby VLC_help » 03 Mar 2009 14:47

ranlib is optional step. I removed it from guide, and I don't who added it to guide.

ipmultimedia
Blank Cone
Blank Cone
Posts: 13
Joined: 28 Feb 2009 12:13

Re: having problem compiling vlc

Postby ipmultimedia » 03 Mar 2009 17:10

Thanks for your help. You reduced our problems by one, omitting ranlib.

The next step is to configure script for compiling VLC by using these commands:

Code: Select all

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="gcc -mno-cygwin" CXX="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
And again we got following error:

Code: Select all

bash: ./configure: No such file or directory
I do'nt know what the correct path is.

ipmultimedia
Blank Cone
Blank Cone
Posts: 13
Joined: 28 Feb 2009 12:13

Re: having problem compiling vlc

Postby ipmultimedia » 04 Mar 2009 13:25

A stupid mistake about tar command:
we didn't know that we have to change the windows xp settings in a way that it shows the file extensin, then check if the file extension (for contrib) is ".tar" , simply change it to ".bz2"
Please complete the document on http://wiki.videolan.org/Win32CompileCygwinNew to not make begginers get confused. Thanks you all.

And finally I found the location for configure.
before configuring, I had to run the following command:

Code: Select all

cd /cygdrive/c/vlc/vlc
and it depends on the location you have already chosen for your vlc folder.

I typed the following command before the configuration:

Code: Select all

script -a
but I'm not sure whether it is correct or not!!!!
I got some warnings and an error without using script command.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 27 guests