https://wiki.videolan.org/Win32Compile/
按照vlc官方文档进行编译,
Building VLC
Once configured, to build VLC, just run:
$ make
当执行到这时,输入make,弹出以下错误
Creating library file: .libs/libflac_plugin.dll.a
/home/workspace/vlc/vlc-2.1.4/contrib/i586-mingw32msvc/lib/libFLAC.a(bitwriter.o): In function `FLAC__bitwriter_get_buffer':
/home/jb/vlc-2.0/contrib/win32/flac/src/libFLAC/bitwriter.c:286: undefined reference to `_ntohl@4'
/home/jb/vlc-2.0/contrib/win32/flac/src/libFLAC/bitwriter.c:286: undefined reference to `_ntohl@4'
/home/jb/vlc-2.0/contrib/win32/flac/src/libFLAC/bitwriter.c:286: undefined reference to `_ntohl@4'
/home/workspace/vlc/vlc-2.1.4/contrib/i586-mingw32msvc/lib/libFLAC.a(bitwriter.o): In function `FLAC__bitwriter_write_rice_signed_block':
/home/jb/vlc-2.0/contrib/win32/flac/src/libFLAC/bitwriter.c:611: undefined reference to `_ntohl@4'
/home/jb/vlc-2.0/contrib/win32/flac/src/libFLAC/bitwriter.c:645: undefined reference to `_ntohl@4'
/home/workspace/vlc/vlc-2.1.4/contrib/i586-mingw32msvc/lib/libFLAC.a(bitwriter.o):/home/jb/vlc-2.0/contrib/win32/flac/src/libFLAC/bitwriter.c:321: more undefined references to `_ntohl@4' follow
collect2: ld returned 1 exit status
make[4]: *** [libflac_plugin.la] Error 1
make[4]: Leaving directory `/home/workspace/vlc/vlc-2.1.4/win32/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/workspace/vlc/vlc-2.1.4/win32/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/workspace/vlc/vlc-2.1.4/win32/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/workspace/vlc/vlc-2.1.4/win32'
make: *** [all] Error 2
root@lw:/home/workspace/vlc/vlc-2.1.4/win32#
纠结这是啥问题啊,google找到一个解决办法
`ntohl@4' is also related to the ws2_32 library. I fixed this by opening C:\MinGW\msys\home\gnosygnu\vlc\contrib\mingw32\lib\libFLAC.la and adding "-lws2_32"
CODE: SELECT ALL
dependency_libs=' -L/home/gnosygnu/vlc/contrib/i586-mingw32msvc/lib -lws2_32 -lm /home/gnosygnu/vlc/contrib/i586-mingw32msvc/lib/libogg.la'
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...
He did this on a Windows machine. Try to compile a linux software through MinGW. It's a painful procedure, but necessary if the original source tree doesn't offer a windows makefile...