Steve Hosgood wrote:
>Andrew:
>Various problems:
>
>In file included from import_nuv.c:183:
>../../libtc/tc_lzo.h:13:23: lzo/lzo1x.h: No such file or directory [etc]
>
>
I've attached a patch if you want it.
>However, I then ran into a real problem:
>
>w32dll.c: In function `modify_ldt':
>w32dll.c:1043: warning: implicit declaration of function `__syscall_return'
>w32dll.c:1043: error: syntax error before "int"
>w32dll.c: In function `w32dll_init_fs':
>w32dll.c:1055: error: storage size of `ldt' isn't known
>w32dll.c:1055: warning: unused variable `ldt'
>make[3]: *** [w32dll.lo] Error 1
>
>I couldn't get around this. I'm compiling on Fedora Core 2, and I guess
>my 'glibc' doesn't have certain magic support macros.
>
>
>
Actually, it's not FC2 specific. I've just tried with FC4 and got the
same issue.
Steve
--- import_nuv.c.old 2006-06-02 13:31:23.000000000 +0100
+++ import_nuv.c 2006-06-02 13:32:29.000000000 +0100
@@ -180,8 +180,9 @@
#include "nuppelvideo.h"
#include "RTjpegN.h"
+# ifdef HAVE_LZO
#include "libtc/tc_lzo.h"
-
+# endif
static int rtjpeg_vid_file = -1;
static int rtjpeg_vid_eof = 0;
static int rtjpeg_vid_framesize = 0;
@@ -345,6 +346,7 @@
encoded_frame = NULL;
}
+# ifdef HAVE_LZO
if (hdr.comptype == '2' || hdr.comptype == '3') {
/* Undo LZO compression */
uint8_t *decompressed_frame;
@@ -368,6 +370,7 @@
/* Convert 2 -> 1, 3 -> 0 */
hdr.comptype ^= 3;
}
+# endif /* HAVE_LZO */
switch (hdr.comptype) {