Please indicate what is missing when i try to compile lsdvd. Here are printouts from console and some efforts to find DVDOpen.
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for DVDOpen in -ldvdread... koll1 -ldvdread /usr/lib64
./configure: line 2835: /*rm: No such file or directory
no
configure: error: libdvdread not found!
pc003:/data1/nedladdning/lsdvd-0.16 #
pc003:/data1/nedladdning/lsdvd-0.16 # find / -name libdvdread\* -print
/usr/lib64/libdvdread.so.3.0.0
/usr/lib64/libdvdread.so.3.2.1
/usr/lib64/libdvdread.a
/usr/lib64/libdvdread.so.2
/usr/lib64/libdvdread.so.3
/usr/lib64/libdvdread.la
/usr/lib64/libdvdread.so
/usr/share/doc/packages/libdvdread
pc003:/data1/nedladdning/lsdvd-0.16 # grep DVDOpen /usr/lib64/libdvdread*
Binary file /usr/lib64/libdvdread.a matches
Binary file /usr/lib64/libdvdread.so matches
Binary file /usr/lib64/libdvdread.so.2 matches
Binary file /usr/lib64/libdvdread.so.3 matches
Binary file /usr/lib64/libdvdread.so.3.0.0 matches
Binary file /usr/lib64/libdvdread.so.3.2.1 matches
pc003:/data1/nedladdning/lsdvd-0.16 #
Do I miss some other header file other packages (this is a x86_64 amd machine)?
Thanks for any help.
/Hans
Logged In: YES
user_id=166707
Originator: NO
Diffs to fix some problems, including the configure problem...
essentially ldvdread needs ldvdcss and #include <stdint.h> needs to be before ifo_read.h...
Also fixes blunder in calculating ms.
See diff of that file below configure diff...
--- configure 2005-12-12 12:22:45.000000000 -0800
+++ configure 2008-01-30 15:19:52.840237945 -0800
@@ -2808,7 +2808,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldvdread $LIBS"
+LIBS="-ldvdread -ldvdcss $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -2871,7 +2871,7 @@
#define HAVE_LIBDVDREAD 1
_ACEOF
- LIBS="-ldvdread $LIBS"
+ LIBS="-ldvdread -ldvdcss $LIBS"
else
{ { echo "$as_me:$LINENO: error: libdvdread not found!" >&5
@@ -2887,8 +2887,8 @@
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <stdint.h>
#include <dvdread/ifo_read.h>
- #include <stdint.h>
int
main ()
{
--- lsdvd.c 2006-03-02 05:48:11.000000000 -0800
+++ lsdvd.c 2008-01-30 15:22:51.871336296 -0800
@@ -13,13 +13,13 @@
* 2003-04-19 Cleanups get_title_name, added dvdtime2msec, added helper macros,
* output info structures in form of a Perl module, by Henk Vergonet.
*/
+#include <stdint.h>
#include <dvdread/ifo_read.h>
#include <string.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <stdint.h>
#include "lsdvd.h"
#include "ocode.h"
@@ -92,7 +92,7 @@
ms += (((dt->second & 0xf0) >> 3) * 5 + (dt->second & 0x0f)) * 1000;
if(fps > 0)
- ms += ((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f) * 1000.0 / fps;
+ ms += (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f) * 1000.0) / fps;
return ms;
}
These changes have been fixed in git, should be good to go now. :)