Win32Compile in Ubuntu14 (undefine reference to strtok)

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.
alexvlcprot
New Cone
New Cone
Posts: 5
Joined: 26 Sep 2014 09:14

Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby alexvlcprot » 03 Oct 2014 10:04

I'v been solving some issues and dependencies with libraries when compiling VLC2.2 for Windows on Ubuntu 14.01, but now I'm blocked with the next issue:

/home/alex/Work/vlc/contrib/i686-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `ZN4x26512parseCpuNameEPKcRb':
/home/buildslave/vlc-contrib-win32-x86/build/contrib/win/x265/source/common/param.cpp:775: undefined reference to `strtok_r'
/home/alex/Work/vlc/contrib/i686-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `ZN4x26515parseLambdaFileEP10x265_param':
/home/buildslave/vlc-contrib-win32-x86/build/contrib/win/x265/source/common/param.cpp:1332: undefined reference to `strtok_r'
collect2: error: ld returned 1 exit status
make[4]: *** [libx265_plugin.la] Error 1
make[4]: se sale del directorio «/home/alex/Work/vlc/win32/modules»
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio «/home/alex/Work/vlc/win32/modules»
make[2]: *** [all] Error 2
make[2]: se sale del directorio «/home/alex/Work/vlc/win32/modules»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/home/alex/Work/vlc/win32»
make: *** [all] Error 2

I've looking for this strtok_r function, and I've tried to add string.h to the /include folder, but it hasn't worked...

I've been following all the steps showed in Win32Compile web.

Any suggestion?

Thanks!

jerome_px
New Cone
New Cone
Posts: 3
Joined: 22 Oct 2014 10:45

Re: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby jerome_px » 22 Oct 2014 17:19

I have the same issue ...

Maybe someone have an idea, or a script to avoid this ?

thanks !

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: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby Jean-Baptiste Kempf » 22 Oct 2014 18:36

--disable-x265
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.

jerome_px
New Cone
New Cone
Posts: 3
Joined: 22 Oct 2014 10:45

Re: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby jerome_px » 22 Oct 2014 20:53

well I'm getting new issues ...
I don't understand how you compile vlc for windows every night ...

thanks you anyway !

albert_wang
New Cone
New Cone
Posts: 5
Joined: 10 May 2015 05:36

Re: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby albert_wang » 10 May 2015 09:57

I follow https://wiki.videolan.org/Win32Compile/ instructions to do the compile, but failed in the same issue. I use Ubuntu140.04 to comile for windows 32bit VLC 2.2.1. Can anyone help ?

jrum
New Cone
New Cone
Posts: 3
Joined: 26 Jun 2015 10:54

Re: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby jrum » 08 Jul 2015 23:33

HI got the same error and it is related to mingw-w64: see https://bugs.debian.org/cgi-bin/bugrepo ... bug=755448
Solution is to use Ubuntu 15.04 there the problem is solved. you need package 3.2.0 of mingw-w64.
Hereby the match between the version of ubuntu and http://mingw-w64.org/doku.php/download.

My environment host VM is windows 8 machine and using vmware. Installed guest VM Ubuntu 15.04 desktop (ubuntu-15.04-desktop-i386.iso).
Then followed the page https://wiki.videolan.org/Win32Compile/. It complained one about 7z not being installed : sudo apt-get install p7zip-full.
Target make package-win32 made install package and could be installed on my host machine.
Hope this helps!

KimGwanyoung
Blank Cone
Blank Cone
Posts: 18
Joined: 19 Aug 2016 10:10

Re: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby KimGwanyoung » 02 Sep 2016 07:10

--disable-x265
Hi,

I get the same issue while compile the vlc-2.2.4 with vlc-contrib-i686-w64-mingw32-20160121.tar.bz2.
If I configure --disable-x264 library, I get other error.
/home/jb/vlc-2.2/contrib/mingw/gnutls/lib/verify-tofu.c254: more undefined references to 'strtok_r' follow.
The strtok_r function is called in libgnutls.a

Could you help me?

Regards,
Gwanyoung Kim.

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: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby Jean-Baptiste Kempf » 28 Sep 2016 23:00

You need to update mingw
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.

AlexSt
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2017 18:05

Re: Win32Compile in Ubuntu14 (undefine reference to strtok)

Postby AlexSt » 24 Jan 2017 18:11

I've done this on Ubuntu 14
sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools
It tells that my mingw is up to date. I still get this "strtok_r" error. I get the same problem with mingw build on Windows 7.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 37 guests