Page 1 of 1

compilation problems

Posted: 21 Jul 2004 10:17
by gaituc
Hi, I have problems compiling vlc sources with cygwin in windows xp.
When I run "make", after a little time the compilation stops.
I post you the last lines.

Making all in resampler
make[5]: Entering directory `/home/Magaluz/vlc-trunk/modules/audio_filter/resampler'
make[5]: *** No rule to make target `all'. Stop.
make[5]: Leaving directory `/home/Magaluz/vlc-trunk/modules/audio_filter/resampler'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Magaluz/vlc-trunk/modules/audio_filter'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Magaluz/vlc-trunk/modules/audio_filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Magaluz/vlc-trunk/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Magaluz/vlc-trunk'
make: *** [all] Error 2

Can anybody help me? What should I do to make it work?
Thanks. Bye

Posted: 21 Jul 2004 12:42
by markfm
That's the error I get if I do not have a makefile in the "resampler" directory.
Any chance the bootstrap/configure sequence didn't run completely, had an error in it?
You might want to re-try the bootstrap, entering the following at the vlc-trunk directory level from a bash shell, see if it stops with errors:
./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 \
--disable-skins \
--disable-skins2 \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--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-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--disable-dvd \
--disable-dvdnav \
--disable-dvdplay \
--disable-dvdread \
--without-dvdread \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx \
--enable-quicktime \
--enable-optimizations \
--enable-release

When the above is done, check to see if you have a makefile in resampler, then retry make.

Posted: 21 Jul 2004 17:30
by gaituc
I`ve retried the bootstrap and then make, and what a surprise.......it works. Thanks, I`m very happy of it. The only unpleasant thing is that for the make it takes more then a hour to finish. Is it normal? I`ve another little question. If I want to make some changes to the source code, every time I have to compile it I have to wait so long or there is a best way which let me wait less time, for example compiling only the files i modified? How can I do it?
Thanks. Bye

Posted: 21 Jul 2004 17:46
by markfm
If you are working within the files themselves, changing a given .c and/or .h file, you should be able to skip the bootstrap/configure stuff, just run "make" at the top, vlc-trunk, level. Make will go skipping though the directories that have not changed, just do compiles and links on the items which have been modified, then the final object build.


It does take time to do a full build, from scratch, absolutely -- it's a big chunk of software. What I describe above is much faster.

Posted: 21 Jul 2004 18:32
by gaituc
Well, I`ve tried to do so. In fact it takes 'only' 15 minutes. It`s not good to wait so long but it`s better then an hour, as compiling from scratch. Thanks a lot, you`ve really took me out of bad troubles.
Bye

help me

Posted: 23 Jul 2004 18:52
by xzheng
when I do like that,that's error as follow:
(1)tar xjvf contrib-20040510-win32-bin-gcc3.3.1-only.tar.bz2 -C /
that's OK and I can find some file under /usr/win32/lib and /usr/win32/inlude and so on

(2)./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin"
That's OK

(3)./configure \
--disable-sdl --disable-gtk \
--enable-nls \
--disable-skins \
--disable-skins2 \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--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-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--disable-dvd \
--disable-dvdnav \
--disable-dvdplay \
--disable-dvdread \
--without-dvdread \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx \
--enable-quicktime \
--enable-optimizations \
--enable-release
No,there is some wrong to find:

.... ....
checking for libmodplug/modplug.h... no
checking mad.h usability... no
checking mad.h presence... no
checking for mad.h... no
configure: error: Could not find libmad on your system: you may get it from http
://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to di
sable the mad plugin.

Then the program is exit. Why do it like that? Can you help me? Thank you very much. Now I don't complile the VLC in Cygwin.

Best regards