win32 compile error!!! 5 days....

This forum is about all development around libVLC.
avsuper
Blank Cone
Blank Cone
Posts: 13
Joined: 01 Apr 2018 04:22

win32 compile error!!! 5 days....

Postby avsuper » 01 Apr 2018 14:43

OMG!!!! It has been 5 days since I try to compile vlc win32 version on ubuntu 16.40.... fail and fail and fail and fail and fail.......
I've install everything according to the instructions. And now I use this instead of configiure:
../extras/package/win32/configure.sh --host=i686-w64-mingw32
Then I got error like:

libliveMedia.a: In function `ZN14MP3StreamStateD2Ev':
/home/jenkins/workspace/vlc-nightly/vlc-nightly-win32-x86/contrib/contrib-win32/live555/liveMedia/MP3StreamState.cpp:40: undefined reference to `_imp____acrt_iob_func'

I've try vlc3.0, 3.0.1, 4.0, every version....
What should I do now? OMG, help.............

sr99622
New Cone
New Cone
Posts: 4
Joined: 22 Mar 2018 02:20

Re: win32 compile error!!! 5 days....

Postby sr99622 » 02 Apr 2018 20:57

This error seems to come from some sort of Microsoft C++ compiler change made a couple years ago. If I remember correctly it springs up if you try to use the prebuilt contrib libraries. You may be able to overcome the error by following the manual build instructions for contrib. Basically after bootstrapping from contrib/win32 just type make and the libraries will start downloading. Depending on your configuration, you will see some errors that you will have to fix along the way, hopefully you can get through those and once the contribs are fully compiled, the i686-w64-mingw32 host configuration should work.

You could also try compiling using docker, but I am not as familiar with that path

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: win32 compile error!!! 5 days....

Postby Jean-Baptiste Kempf » 03 Apr 2018 09:21

Compiling VLC is difficult. Are you sure you really need to compile it? If so, use the official docker.
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.

avsuper
Blank Cone
Blank Cone
Posts: 13
Joined: 01 Apr 2018 04:22

Re: win32 compile error!!! 5 days....

Postby avsuper » 03 Apr 2018 17:21

Thanks for reply. I need to compile vlc because I want to add a recorder function into it.
And also I want to remove the black screen shen switching from one URL to another.
(v2.2.x has no this problem, only v3.0.x)

chouquette
Developer
Developer
Posts: 291
Joined: 15 Apr 2010 00:54

Re: win32 compile error!!! 5 days....

Postby chouquette » 05 Apr 2018 12:00

The error you get is usually a mismatching compiler between the prebuilt contribs and the compiler you use for building VLC.

If you want to use a different compiler than ours (which is:
$> i686-w64-mingw32-g++ -v
Using built-in specs.
COLLECT_GCC=i686-w64-mingw32-g++
COLLECT_LTO_WRAPPER=/opt/gcc-i686/libexec/gcc/i686-w64-mingw32/6.4.0/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../configure --prefix=/opt/gcc-i686 --target=i686-w64-mingw32 --enable-languages=c,c++ --enable-lto --disable-shared --disable-multilib
Thread model: win32
gcc version 6.4.0 (GCC)

then you'll need to build all the contribs yourself


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests