[vlc-devel] Build broken with latest git pull
David R. Robison
david.robison at openroadsconsulting.com
Fri Aug 1 15:52:27 CEST 2014
Your no bother. Glad to help. Here is the script I am following to
compile my system. My big problem was in step 4 where I had to manually
set the PKG_CONFIG_LIBDIR. This script allows me to successfully compile
VLC. I hope this helps. David
1) Create a 64-but Ubuntu 14.04 LTS VM and load all the system updates
2) Install the needed tools for the build. There may be some extra stuff
here but it won't hurt ya.
sudo apt-get install \
texinfo pax g++ cvs yasm subversion git flex m4 bison \
lua5.2 \
libtool automake autoconf autopoint make gettext \
pkg-config \
qt4-dev-tools \
git \
subversion \
wine-dev \
zip p7zip nsis bzip2 \
ragel ant default-jdk cmake
Note: during the wine install a popup will be displayed. You will need
to tab to the answer and use the space bar to select it as part of
accepting the license agreement.
3) We use the ffmpeg mingw-w64 package. Create a directory for the
mingw-w64 Tool, copy the install script into that directory, and build
mingw-w64:
mkdir mingw-w64
cd mingw-w64
wget http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.6.0
./mingw-w64-build-3.6.0 --build-type=win64 --default-configure
--enable-gendef --enable-nls
Note: After the wget command make sure to modify the file's permisisons
to allow it to be executed.
4) In your user's directory, create the file .bash_aliases and add the
following lines
export PATH="/home/david/mingw-w64/mingw-w64-x86_64/bin:$PATH"
export PKG_CONFIG_LIBDIR=/home/david/vlc/contrib
where /home/david/vlc is where you will checkout VLC to. This last line
is what I was missing and what I believe was causing all my trouble.
5) Log out and log back in to let the exports take affect.
6) Clone the VLC code
git clone git://git.videolan.org/vlc.git vlc
7) From the VLC root directory, build the contribs. You may get away
with the prebuilts but this works for me.
mkdir -p contrib/win32
cd contrib/win32
../bootstrap --host=x86_64-w64-mingw32
make fetch
make
8) From the VLC root directory, bootstrap and configure the build
./bootstrap
mkdir win32
cd win32
../extras/package/win32/configure.sh --host=x86_64-w64-mingw32
--enable-debug --enable-static
9) from the VLC/win32 directory, build VLC
make
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: david.robison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
On 8/1/2014 3:54 AM, Son Tran wrote:
> Dear David,
> I have to bother you again. In fact, as you observed, I had no longer
> a problem with X11 while compiling qt module with the latest vlc git.
> But I still have the following two issues:
> -pkg-config seems not work well in my system, it found no contribs
> libs, I had to make manually all variables <MODULE>_CFLAGS and
> <MODULE>_LIBS in the configure script. The PKG_CONFIG_PATH was however
> well set with the configure script !
> -The most serious problem is to compile qt. Undefining functions, no
> memeber class .... are the errors. Surely because I specified manually
> QT_LIBS. My question is that which pc file I should take as example
> to add the missing library: qt.pc qt5.pc .... By the way, why does vlc
> have both qt and qt5, which one is used?
> Please give me some hint to overcome this problem. It is no sense to
> compile window vlc missing all GUI and third party modules :-)
> Best regards
> Son
>
>
> 2014-07-31 16:29 GMT+02:00 David R. Robison
> <david.robison at openroadsconsulting.com
> <mailto:david.robison at openroadsconsulting.com>>:
>
> Yes. I did a "git pull", configure, and make this morning and it
> worked well. Give it a try and if you are still having troubles,
> let me know and I'll do the best I can to help you in the right
> direction. David
>
> David R Robison
> Open Roads Consulting, Inc.
> 103 Watson Road, Chesapeake, VA 23320
> phone:(757) 546-3401 <tel:%28757%29%20546-3401>
> e-mail:david.robison at openroadsconsulting.com <mailto:david.robison at openroadsconsulting.com>
> web:http://openroadsconsulting.com
> blog:http://therobe.blogspot.com
> book:http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
>
> On 7/31/2014 8:58 AM, Son Tran wrote:
>> Dear David,
>> Thank you so much for the report on cross compiling. I followed
>> it and for the first time I could compile successfully VLC
>> 3.0.0-git (with a lot of disable options, among them qt and ffmpeg)
>> Then I just check out again vlc last night, and I also observed
>> that QTX11 missing. If I understand well, the problem is fixed
>> right now? I can git the latest version without this issue?
>> Also, in my platform ubuntus 14, I have the following problem:
>> the pkg_config seems not work for me, the "configure" script
>> couldnot find the *.pc in the
>> contrib/i686-w64-mingw32/lib/pkgconfig. I had to specify directly
>> in the enviroment variables <MODULE>_CFLAGS /_LIBS. I already try
>> --with-config, PKG_CONFIG_PATH in vain. Can you give me some
>> hints on this problem
>> Many thanks
>> Son
>>
>>
>> 2014-07-31 14:17 GMT+02:00 David R. Robison
>> <david.robison at openroadsconsulting.com
>> <mailto:david.robison at openroadsconsulting.com>>:
>>
>> Thanks, that fixed it. David
>>
>> David R Robison
>> Open Roads Consulting, Inc.
>> 103 Watson Road, Chesapeake, VA 23320
>> phone: (757) 546-3401 <tel:%28757%29%20546-3401>
>> e-mail: david.robison at openroadsconsulting.com
>> <mailto:david.robison at openroadsconsulting.com>
>> web: http://openroadsconsulting.com
>> blog: http://therobe.blogspot.com
>> book:
>> http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
>>
>> On 7/31/2014 5:20 AM, Rafaël Carré wrote:
>> > Hi,
>> >
>> > On 07/30/14 19:48, David R. Robison wrote:
>> >> I just did a "git pull" on vlc and now VLC will not cross
>> compile for
>> >> Win64. I am getting the following error:
>> >>
>> >> checking for QTX11... no
>> >> configure: error: Package requirements (Qt5X11Extras) were
>> not met:
>> > Should be fixed now, thanks for the report
>> > _______________________________________________
>> > vlc-devel mailing list
>> > To unsubscribe or modify your subscription options:
>> > https://mailman.videolan.org/listinfo/vlc-devel
>>
>>
>>
>> This email communication (including any attachments) may
>> contain confidential and/or privileged material intended
>> solely for the individual or entity to which it is addressed.
>> If you are not the intended recipient, please delete this
>> email immediately.
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>>
>>
>>
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> ------------------------------------------------------------------------
> This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
> If you are not the intended recipient, please delete this email immediately.
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140801/a373308e/attachment.html>
More information about the vlc-devel
mailing list