Page 1 of 1
FIXED: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 12 Jun 2009 13:06
by xyz000
Hello,
I'm attempting to build VLC 1.0.0-rc3 from source. The tool versions I have are:
GNU Autoconf 2.59
GNU Make 3.81
GCC 4.1.2
NASM 0.98.39
I'm following the method on
http://wiki.videolan.org/UnixCompile to build the libraries from extras/contrib:
Code: Select all
cd <vlc-source>/extras/contrib
./bootstrap
make
Some of the build errors I get suggest that I have incompatible tool versions. For example, building mpcdec fails with an error stating that the "AC_TYPE_INT16_T" macro is not defined. A hunt around the web suggests that autoconf 2.60 introduced this macro. The latest version of autoconf seems to be 2.63. To avoid guessing can anybody reply with a list of tool version requirements or post a list of tool versions they use?
Thanks!
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 12 Jun 2009 18:15
by xyz000
OK this is coming together in small stages. The steps I've taken so far:
get, configure, make and install autoconf 2.63
remove .wxWidgets, .dirac, .raw1394, .dc1394 and .tiger from <vlc-source>/extras/contrib/distro.mak (becasue each of these fails to build with different errors).
make in <vlc-source>/extras/contrib fixing tiny errors on the way
install qt4 version 4.2.1-1
install qt4-devel version 4.2.1-1
./bootstrap in <vlc-source>
mkdir <vlc-source>/build
cd build
../configure --disable-nls --disable-mozilla --enable-qt4
(--disable-mozilla gets me past an error with the wrong version of glibc).
Now I get "configure: error: Qt 4 library not found" but I can see that I have stuff in /usr/lib/qt4. I've made sure I ran ./bootsrap AFTER installing qt4[-devel] but still no joy. I've also tried logging out of my shell and back in again in case some paths needed updating. Any suggestions to fix this please?
Thanks!
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 12 Jun 2009 19:08
by RĂ©mi Denis-Courmont
VLC requires autoconf 2.59c or above. The contrib should not need autoconf at all (there is no reason to bootstrap).
The UI needs Qt 4.4.0 or later.
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 13 Jun 2009 00:35
by Jean-Baptiste Kempf
UI needs Qt 4.3.0 for 1.0 and 4.4.0 for 1.1, I think.
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 15 Jun 2009 14:01
by xyz000
UI needs Qt 4.3.0 for 1.0 and 4.4.0 for 1.1, I think.
Thanks j-b. Having now looked inside the VLC configure script it's obvious that I need at least Qt version 4.3.0. I have the source package of Qt 4.5.0 which is building right now...
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 16 Jun 2009 11:40
by xyz000
Another request for help please...
I've built and installed Qt version 4.5.0 to /usr/local/qt4. When I re-run the VLC configure script I still get an error about not finding Qt 4. If I look in config.log I can see:
Code: Select all
configure:62498: checking for QT4
configure:62509: $PKG_CONFIG --exists --print-errors "QtCore QtGui >= 4.3.0"
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
Package QtGui was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtGui.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtGui' found
Having added a couple of "echo" statements to ./configure I've proved that PKG_CONFIG is /usr/bin/pkg-config and PKG_CONFIG_PATH is /home/me/src/vlc-1.0.0-rc3/./extras/contrib/lib/pkgconfig. I can see that QtCore.pc and QtGui.pc both exist in /usr/local/qt4/lib/pkgconfig. What do I need to do to make ./configure find this package?
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 16 Jun 2009 17:58
by xyz000
Previous post solved with an additional parameter on the ./configure command line:
Code: Select all
./configure [other-options] PKG_CONFIG_PATH=<path/to/qt4/pkgconfig>
Everything is configured and fingers are crossed. Now to build VLC...
Re: Which tool versions are needed to build 1.0.0-rc3 ?
Posted: 23 Jun 2009 11:28
by xyz000
Just a quick post to say that I now have a working build of 1.0.0-rc3.