libdvdnav cygwin (David Abergel)
"Henry Garcia" <[email protected]> Mon, 21 Apr 2008 12:34:44 -0400
| Newsgroups | gmane.comp.video.mplayer.cygwin |
|---|---|
| Message-ID | <[email protected]> |
> > > I have uninstalled make-3.81, obtained, built and installed the source for > make-3.79, and tried to compile libdvdnav from the src directory, but it > still bombs with the same error message as before. > I suggest you start from scratch. There is a document on the process on mplayer's site: http://www.mplayerhq.hu/DOCS/tech/dvdnav-howto.txt First you want to uninstall or manually remove any references to any currently installed libdvdnav files. > > > 1. Download the svn of the code. Svn tells me that I have revision 1013. Sounds good. > > > 2. Run autogen.sh noconfig, because the automake part generate files with > permissions - - - r - x - - - so I have to manually change these before > running configure. > > > 3. Run ./configure --prefix=$HOME/local > You should include the --disable-shared option. It doesn't compile for me if I leave it out. > > 4. cd src > > > 5. make > > Here is the error message: > > gcc -shared .libs/cygdvdnavmini-4.dll.def .libs/dvdnav.o > .libs/read_cache.o .libs/navigation.o .libs/highlight.o .libs/searching.o > .libs/settings.o .libs/remap.o -Wl,--whole-archive > ../src/vm/.libs/libdvdvm.a -Wl,--no-whole-archive -o > .libs/cygdvdnavmini-4.dll -Wl,--enable-auto-image-base -Xlinker --out-implib > -Xlinker .libs/libdvdnavmini.dll.a > Looks like the build is referencing some libraries which should have been removed as per the above instructions: e.g. .libs/cygdvdnavmini. > > .libs/dvdnav.o:dvdnav.c:(.text+0x13a): undefined reference to > `_DVDOpenFile' > .libs/dvdnav.o:dvdnav.c:(.text+0x269): undefined reference to > `_DVDCloseFile' > .libs/dvdnav.o:dvdnav.c:(.text+0x2dc): undefined reference to > `_DVDCloseFile' > .libs/dvdnav.o:dvdnav.c:(.text+0x43f): undefined reference to > `_DVDCloseFile' > .libs/dvdnav.o:dvdnav.c:(.text+0x684): undefined reference to > `_navRead_DSI' > .libs/dvdnav.o:dvdnav.c:(.text+0x6a0): undefined reference to > `_navRead_PCI' > .libs/dvdnav.o:dvdnav.c:(.text+0xbba): undefined reference to > `_DVDOpenFile' > .libs/dvdnav.o:dvdnav.c:(.text+0xf31): undefined reference to > `_DVDCloseFile' > .libs/read_cache.o:read_cache.c:(.text+0x594): undefined reference to > `_DVDReadBlocks' > .libs/read_cache.o:read_cache.c:(.text+0x5e9): undefined reference to > `_DVDReadBlocks' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x32): undefined reference to > `_ifoOpenVTSI' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x7a): undefined reference to > `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x86): undefined reference to > `_ifoOpenVTSI' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0xa4): undefined reference to > `_ifoRead_VTS_PTT_SRPT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0xb3): undefined reference to > `_ifoRead_PGCIT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x113): undefined reference > to `_ifoRead_PGCI_UT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x122): undefined reference > to `_ifoRead_VOBU_ADMAP' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x185): undefined reference > to `_ifoRead_TITLE_VOBU_ADMAP' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x254): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x274): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x294): undefined reference > to `_DVDClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x2e8): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x304): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x324): undefined reference > to `_DVDClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x534): undefined reference > to `_DVDOpen' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x69c): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x6b6): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x6cf): undefined reference > to `_DVDClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x724): undefined reference > to `_ifoOpenVMGI' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x75d): undefined reference > to `_ifoRead_FP_PGC' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x76c): undefined reference > to `_ifoRead_TT_SRPT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x96d): undefined reference > to `_ifoRead_PGCI_UT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x9a6): undefined reference > to `_ifoRead_PTL_MAIT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x9b5): undefined reference > to `_ifoRead_VTS_ATRT' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x9c4): undefined reference > to `_ifoRead_VOBU_ADMAP' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0xab4): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0xae4): undefined reference > to `_ifoClose' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x571a): undefined reference > to `_ifoOpen' > ../src/vm/.libs/libdvdvm.a(vm.o):vm.c:(.text+0x5725): undefined reference > to `_ifoClose' > Creating library file: .libs/libdvdnavmini.dll.a > I usually see the errors undefined reference to dlopen, dlclose, etc. But that's from not using the disable-shared option. I haven't seen those errors: but I suspect your errors are from not uninstalling, removing any old references to cygwin's version of dvdnav files. I haven't built a cygwin exe for a long time. Just tried recently and didn't succeed. Failed in the make process using either make-3.79.1 or make-3.81.exe. Went further in the mplayer source using 3.81.exe. Which I didn't expect. But it still bombed. I suspect that you'll have an easier time using MingW than Cygwin.