beandog / dvd_info

Linux/BSD/Cygwin DVD utilities - dvd_info, dvd_copy, dvd_backup, dvd_player, dvd_rip, dvd_drive_status
http://dvds.beandog.org
GNU General Public License v2.0
22 stars 4 forks source link

why does this depend on sys/ioctl.h #3

Closed veso266 closed 4 years ago

veso266 commented 4 years ago

Hi there, windows user here that would like to use this :smile:

well here we go: I tried to compile this on Mingw like this

install libdvdread
    pacman -S mingw-w64-i686-libdvdread
    pacman -S mingw-w64-x86_64-libdvdread

autoreconf -vif
autoreconf
automake
./configure
make
make install

and it started to complain sys/ioctl.h which windows doesn't have so I cannot compile that :cry:

the onlything I would like to do is get chapters from dvd (I have DVD in iso file) and when I open it in VLC I can in this dvd menu select a specific chapter (but its not a chapter, this is one big chapter and in dvd menu I can get to a specific point in this chapter, not sure how this is called, would like to extraxt this big chapter into this smaller ones that are on DVD menu :smile: )

file in question is here: https://mega.nz/file/rokFGJbZ#PhCm_J3-tBTfT_7_HSB0QIwwunyWF0y_Y4iD5_L1B2o

would just like to split this movie in specific parts :smile:

Thanks for Anwsering and Best Regards

beandog commented 4 years ago

I can't duplicate the bug, but that doesn't mean it's not broken.

ioctl is needed to check DVD drive status. However, it's just Linux and *BSD systems that should be running it, and the include should only be on those drive tool headers.

veso266 commented 4 years ago

Hi there, thanks for talking your time to respond, I dont think this is a bug, its just that I am trying to use your tool for something its not indended to (running it in windows 😄 ) I only needed dvd_info to extraxt chapters from ripped dvd in iso format and at the end I found a diferent tool for this job: https://github.com/thierer/lsdvd

So as for me, you can close this issue

beandog commented 4 years ago

I got it fixed anyway, it's committed. If you don't mind testing it, that'd be good.

veso266 commented 4 years ago

ugh finally fixed it slika I had to fix some windows specifics like mkdir and open but at the end it works as shown in the image, if you want you can merge my pull request: https://github.com/beandog/dvd_info/pull/4

Thanks for talking time to anwser and investigate :smile: