The error of compile VLC media player for Windows.

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
MarsZhang
New Cone
New Cone
Posts: 1
Joined: 02 Jun 2018 11:53

The error of compile VLC media player for Windows.

Postby MarsZhang » 02 Jun 2018 12:01

Environment:
Ubuntu 1804
x86_64-w64-mingw32
error:
“/home/t1/test1/vlc/win32/modules”
CXXLD libdcp_plugin.la
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU1'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x39): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `transaction clone for operator new[](unsigned long long)'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x5d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_memcpyRtWn'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z23_txnal_cow_string_c_strPKv+0x1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z23_txnal_sso_string_c_strPKv+0x1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z20_txnal_cow_string_D1Pv+0x5): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z20_txnal_cow_string_D1Pv+0x1e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_addUserCommitAction'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorC1EPKc+0x2e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_memcpyRnWt'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_memcpyRnWt'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x36): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU8'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorD0Ev+0x1a): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Makefile:13212: recipe for target 'libdcp_plugin.la' failed

what's the matter?

laatuv
New Cone
New Cone
Posts: 6
Joined: 25 Jul 2018 12:45

Re: The error of compile VLC media player for Windows.

Postby laatuv » 25 Jul 2018 12:48

I'm also facing exactly the same error. Have you been able to solve this yet MarsZhang? Anyone have idea, how to solve this? I've tried to compile 3rd party libraries manually and by using prebuilt option, they both led me to this same error :(. I've also tried to compile VLC from a tarball source as well as by using git clone (which read on Win32Compile instructions). Each time I've tried to compile to 64bit version tho, but I think that has nothing to do with the error?

Image

After this i got a bit more forward, when i started commenting out these .la suffix libraries, which threw out an error from MakeFile. Unfortunately eventually i faced a plugin, which i wasn't able to comment out anymore.

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

Re: The error of compile VLC media player for Windows.

Postby Jean-Baptiste Kempf » 25 Jul 2018 13:45

This is a bug in your mingw-w64, IIRC. You need to patch it.
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.

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

Re: The error of compile VLC media player for Windows.

Postby chouquette » 25 Jul 2018 13:53

More specifically this is a bug in libstdc++, which was fixed. The said fix is shipped starting with GCC8

If you don't have a prebuilt gcc/mingw-w64 toolchain provided by your distribution you can:
- Use our prebuilt docker image (registry.videolan.org:5000/vlc-debian-win64)
- Rebuild the toolchain yourself. See https://code.videolan.org/videolan/dock ... bian-win64 for the libstdc++ patch & list of commands

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

Re: The error of compile VLC media player for Windows.

Postby chouquette » 25 Jul 2018 14:40

Woops, I should probably specify that the patch for your specific issue is hidden in the command line (https://code.videolan.org/videolan/dock ... erfile#L78)

laatuv
New Cone
New Cone
Posts: 6
Joined: 25 Jul 2018 12:45

Re: The error of compile VLC media player for Windows.

Postby laatuv » 31 Jul 2018 10:34

Could you specify, in which file I've to add this '#define _GLIBCXX_USE_WEAK_REF 0', if I want to rebuild my toolchain? I tried adding it to os_defines.h, which locates in usr/lib/x86_64-w64-mingw32/7.3-win32/include/c++/x86_64-w64mingw32/bits folder inside the "#ifdef __x86_64__" below line "GLIBCXX_LLP64 1". I also tried to search these files for those patches, but there was like tons of configure_ac files and I wasn't able to locate libstdc++-v3/crossconfig.m4 file anywhere.

Alternatively, I'm not familiar with docker at all, so is somewhere any guides / instructions, how VLC can be compiled by using docker-image?

Thank you for your help! I appreciate that.

laatuv
New Cone
New Cone
Posts: 6
Joined: 25 Jul 2018 12:45

Re: The error of compile VLC media player for Windows.

Postby laatuv » 03 Aug 2018 08:59

I was able to compile vlc using Win32Compile instructions, when I rebuild my toolchain, which has GCC-8 compiler. For those, who has similar kind of issues than discussed in here, then here's pretty easily understandable instructions, how to build a cross-compiler https://github.com/Alexpux/mingw-w64/bl ... -build.txt. After rebuilding my toolchain, I had only couple small errors during the compilation, but for those I found help pretty easily by googling.

Anyways I'm still having an issue, when trying to run this compiled VLC on my windows OS (64 bit). It says that "The code execution cannot proceed because libssp-0.dll was not found. Reinstallin the program may fix the problem". I tried to swap libvlccore.dll and libvlc.dll files to a downloaded workable vlc version and opposite, workable vlc files to my compiled vlc version. Each time same error appeared. Anyone have an idea, what might be the problem here? I didn't have any libssp errors, while compiling the program on ubuntu.

Maxiglider
New Cone
New Cone
Posts: 1
Joined: 28 Oct 2019 22:56

Re: The error of compile VLC media player for Windows.

Postby Maxiglider » 28 Oct 2019 23:02

Hello,

I was trying to compile vlc-3.0.8 from sources for Windows.
I got the same problem, error "missing libssp-0.dll" at my compiled VLC launching.
I didn't manage to find a solution to that problem on the web, so I post the solution I've found by myself :
I copied libssp-0.dll from the Ubuntu virtual machine I used for VLC compilation into the compiled VLC directory.
I found the file here : /usr/lib/gcc/x86_64-w64-mingw32/9.2-win32/libssp-0.dll
Then VLC launched like a charm.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 31 guests