Cross Compile for Windows Fails: ld cannot find -lpthread
Posted: 03 Aug 2016 22:10
I am trying to cross compile for Windows on a Debian VM running on Macbook Pro. I am using the instructions from https://wiki.videolan.org/Win32Compile/.
At first I encountered the mkstemp error reported here: https://forum.videolan.org/viewtopic.ph ... ws#p443926
I built mingw64 using version 5.3 and after a little fiddling got past the mkstemp issue. However I ran into this exception and do not have a clue about how to fix it.
Any help is appreciated.
At first I encountered the mkstemp error reported here: https://forum.videolan.org/viewtopic.ph ... ws#p443926
I built mingw64 using version 5.3 and after a little fiddling got past the mkstemp issue. However I ran into this exception and do not have a clue about how to fix it.
Code: Select all
CC demux/avformat/libavcodec_plugin_la-mux.lo
CCLD libavcodec_plugin.la
/opt/gcc-x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lpthread
collect2: error: ld returned 1 exit status
Makefile:10175: recipe for target 'libavcodec_plugin.la' failed
make[4]: *** [libavcodec_plugin.la] Error 1
make[4]: Leaving directory '/home/deb/vlc/win32/modules'
Makefile:18624: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/deb/vlc/win32/modules'
Makefile:8284: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/deb/vlc/win32/modules'
Makefile:2252: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/deb/vlc/win32'
Makefile:2136: recipe for target 'all' failed
make: *** [all] Error 2
deb@debmac:~/vlc/win32$