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