help! about cygwin environment

Old forum that is now archived. Please use one of the other forums.
quhaiguo
New Cone
New Cone
Posts: 3
Joined: 13 Jun 2004 13:43

help! about cygwin environment

Postby quhaiguo » 22 Sep 2004 07:12

hello,

I download and install Cygwin following the instruction of the document,
CygwinCompileEnvironmentRevB.pdf. but Cygwin can't work correctlly.

I put the file, contrib-20040902-win32-bin-gcc3.3.10-only.tar.bz2, in directory of " c:/cygwin/home/qu", and I typed the folowing command:

tar -xjvf contrib-20040902-win32-bin-gcc3.3.1-only.tar.bz2 -C /

Cygwin display:

tar<child>:contrib-20040902-win32-bin-gcc3.3.1-only.tar.bz2: Cannot open: No such file or directory
tar<child>: Error is not recorverable:existing now
tar: Child returned status 2
tar: Error exit delayed from previous errors


I have download and install Cygwin twice, but the result is same. What should I do? Is anywhere wrong, or should be configured? :?

Please help me!

thank you!

[/img]

mayoo
New Cone
New Cone
Posts: 3
Joined: 14 Sep 2004 22:08
Contact:

Postby mayoo » 22 Sep 2004 15:46

Hello,
You have to download the required C compiler, If you don't know what it is you can always download the complete Cygwin; that is what I did and worked fine.

These instructions are for snapshot 20040222. I did all of this in windows XP.

If you want to compile the code on your own the following must be done.

The libraries can be download from here:
Need to use new library, this one works for me....
http://download.videolan.org/pub/testin ... ly.tar.bz2
Decompress this file into your cygwin directory... so that its cygwin/usr/win32..and libs are in here.
this file should be decompressed inside the snapshot directory, (winrar works nicely for these file types) it will create an new directory called "usr"
I am unsure if the files also need to be put in the snapshot dir, but i know it doesn't have a negative effect... so for now, still include this step.

YOu also need to add this file to the /share directory, (replace the current file)
vlc_win32_rc.rc

So now using cygwin you must change the current directory to match where you put the source code...
linux command refresher...
ls - list files
pwd - shows current directory you are in
cd ## - change directory
that should be enough...

so once you are in the main directory of the source code you need to configure the build.

This can be done by typing the following: (note: the first line should be similar to the prompt you see)

Matt Woods@MATTSCOMPUTER /cygdrive/c/v/f22/vlc-snapshot-20040222
$ ./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--disable-sdl --disable-gtk \
--enable-nls \
--enable-ffmpeg --with-ffmpeg-mp3lame \
--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 \
--disable-mkv \
--disable-skins \
--disable-skins2 \
--enable-debug


This seems to take around 20 minutes to complete

Once the configure process has completed type "make" and enter, this will begin the make process.

Expect to wait approxiamtely 40 minutes for this process to complete.

once the make has completed there should now be an vlc.exe file in the main directory of the source code, and thats it...


Please note that some changes were made to the provided instrucitons in install.win32 such as 3 or 4 lines added to the configure script and vlc_win32_rc.rc was modified (several lines removed) as well. I thought it was important to state this incase we encounter problems later related to these changes.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 22 Sep 2004 20:31

There's a current (Sept 2004) Cygwin compile environment document. It's now on the VLC page of the developers section.

Any chance that you downloaded the contrib file with Internet Explorer? IE tends to rename the file, so that it looks like .tar.tar, instead of .tar.bz2.

If you have a contrib....tar.tar, rename it to tar.bz2, and try the command again.

quhaiguo
New Cone
New Cone
Posts: 3
Joined: 13 Jun 2004 13:43

thanks

Postby quhaiguo » 23 Sep 2004 04:11

thank you for replying, i will try. :)


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 7 guests