[질문] vlc 컴파일 도움좀 부탁드립니다.
vlc를 윈도우용 으로 크로스컴파일 하기 위해서
Fedora4 에서
INSTALL.win32 파일에 있는데로
mingw-gcc3.3.1-linux-crosscompiler.tar.bz2
contrib-20051208-win32-bin-gcc3.3.1-only.tar.bz2
그외 필요한 라이브러리를 설치하고
./bootstrap && PATH=/usr/local/mingw/bin:$PATH CPPFLAGS="-I/usr/win32/include" LDFLAGS="-L/usr/win32/lib" CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ ./configure --host=i586-mingw32msvc --build=i386-linux --disable-gtk --enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac --with-ffmpeg-tree=/usr/src/ffmpeg-20051126 --enable-trace --with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora --with-wx-config-path=/usr/win32/bin --with-fribidi-config-path=/usr/win32/bin --enable-livedotcom --with-livedotcom-tree=/usr/win32/live.com --enable-caca --with-caca-config-path=/usr/win32/bin --with-xml2-config-path=/usr/win32/bin --with-dvdnav-config-path=/usr/win32/bin --disable-cddax --disable-vcdx --enable-goom --enable-twolame --enable-dvdread --enable-debug
이렇게 수행하여 ./bootstrip ./configure는 성공했습니다
그런데 make할때 에러가 납니다.
PATH=/usr/local/mingw/bin:$PATH make <--이렇게 수행
....
i586-mingw32msvc-gcc: unrecognized option `-pthread'
In file included from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:28,
from gnomevfs.c:29:
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-address.h:30:24: sys/socket.h: No such file or directory
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-address.h:31:19: netdb.h: No such file or directory
In file included from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-async-ops.h:29,
from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:29,
from gnomevfs.c:29:
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:165: error: `S_ISUID' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:165: error: enumerator value for `GNOME_VFS_PERM_SUID' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:166: error: `S_ISGID' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:166: error: enumerator value for `GNOME_VFS_PERM_SGID' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:172: error: `S_IRGRP' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:172: error: enumerator value for `GNOME_VFS_PERM_GROUP_READ' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:173: error: `S_IWGRP' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:173: error: enumerator value for `GNOME_VFS_PERM_GROUP_WRITE' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:174: error: `S_IXGRP' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:174: error: enumerator value for `GNOME_VFS_PERM_GROUP_EXEC' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:175: error: `S_IRGRP' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:175: error: `S_IWGRP' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:175: error: `S_IXGRP' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:175: error: enumerator value for `GNOME_VFS_PERM_GROUP_ALL' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:176: error: `S_IROTH' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:176: error: enumerator value for `GNOME_VFS_PERM_OTHER_READ' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:177: error: `S_IWOTH' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:177: error: enumerator value for `GNOME_VFS_PERM_OTHER_WRITE' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:178: error: `S_IXOTH' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:178: error: enumerator value for `GNOME_VFS_PERM_OTHER_EXEC' not integer constant
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:179: error: `S_IROTH' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:179: error: `S_IWOTH' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:179: error: `S_IXOTH' undeclared here (not in a function)
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-file-info.h:179: error: enumerator value for `GNOME_VFS_PERM_OTHER_ALL' not integer constant
In file included from /usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs.h:33,
from gnomevfs.c:29:
/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-dns-sd.h:28:24: sys/socket.h: No such file or directory
make[4]: *** [libaccess_gnomevfs_plugin_a-gnomevfs.o] 오류 1
make[4]: Leaving directory `/usr/src/vlc-0.8.4a/modules/access'
make[3]: *** [all-modules] 오류 1
make[3]: Leaving directory `/usr/src/vlc-0.8.4a/modules/access'
make[2]: *** [all-recursive] 오류 1
make[2]: Leaving directory `/usr/src/vlc-0.8.4a/modules'
make[1]: *** [all-recursive] 오류 1
make[1]: Leaving directory `/usr/src/vlc-0.8.4a'
make: *** [all] 오류 2
어떻게 해야 이 오류를 잡을수 있는지 아시는분 답변좀 부탁드립니다.
자답
configure시 --disable-gnomevfs 옵션을 추가하고나서
make 하니깐 정상적으로 되는군요
이걸 몰라서 고생한거 생각하면.. ㅠ_ㅠ
댓글 달기