This is a discussion on How to compile xv on YDL 4.1 - Powerpc ; Hi all, I've found that compiling xv3.10a (current version) on Yellow Dog Linux 4.1 requires some fiddling with the config files and the source code. I shrinkwrapped the changes I made into a diff file, which I'm enclosing with this ...
I've found that compiling xv3.10a (current version) on Yellow Dog Linux
4.1 requires some fiddling with the config files and the source code.
I shrinkwrapped the changes I made into a diff file, which I'm enclosing
with this message.
So, to patch the code, do as follows:
1) save this message to your home directory as 'ydxv.diff'
2) untar the xv3.10a tarball
3) 'cd' to the resulting directory
4) type 'patch <~/ydxv.diff'
Everything should now build and install OK. At least, it did here.
----- BEGIN DIFF FILE -----
--- Makefile 2006-10-02 18:43:46.000000000 +0200
+++ Makefile 2006-10-02 18:11:29.000000000 +0200
@@ -1,8 +1,8 @@
# Makefile for xv
# your C compiler (and options) of choice
-CC = cc
-# CC = gcc -ansi
+#CC = cc
+CC = gcc
# use this if you're using 'cc' on a DEC Alpha (OSF/1) or MIPS (Ultrix) system:
# CC = cc -std1 -Olimit 750
@@ -102,7 +102,7 @@
### for LINUX, uncomment the following line
-#MCHN = -DLINUX
+MCHN = -DLINUX -L/usr/X11R6/lib
# For SCO 1.1 (UNIX 3.2v2) machines, uncomment the following:
@@ -144,7 +144,7 @@
# if your machine has the usleep() function, uncomment the following line:
# if it doesn't, or you're not sure, leave this line alone.
-#TIMERS = -DUSLEEP
+TIMERS = -DUSLEEP
# if XV locks up whenever you click on *any* of the buttons, the Timer()
@@ -163,7 +163,7 @@
# if, during compilation, your system complains about the types
# 'u_long', 'u_short', 'u_int', etc. as being undefined, uncomment the
# following line:
-#BSDTYPES = -DBSDTYPES
+BSDTYPES = -DBSDTYPES
# if your machine doesn't have 'vprintf()' or 'vsprintf()'
--- config.h 2006-10-02 18:43:46.000000000 +0200
+++ config.h 2006-10-02 18:04:16.000000000 +0200
@@ -13,13 +13,13 @@
* definition appropriately. (use 'which gunzip' to find if you have gunzip,
* and where it lives)
# ifdef VMS
# define GUNZIP "UNCOMPRESS"
-# define GUNZIP "/usr/local/bin/gunzip -q"
+# define GUNZIP "/usr/bin/gunzip -q"
@@ -88,7 +88,7 @@
* should not need to be changed
-/* #define GS_PATH "/usr/local/bin/gs" */
+#define GS_PATH "/usr/bin/gs"
/* #define GS_LIB "." */
/* #define GS_DEV "ppmraw" */
--- xv.h 2006-10-02 18:43:46.000000000 +0200
+++ xv.h 2006-10-02 18:14:58.000000000 +0200
@@ -115,9 +115,9 @@
extern int errno; /* SHOULD be in errno.h, but often isn't */
-# ifndef __NetBSD__
- extern char *sys_errlist; /* this too... */
+/* # ifndef __NetBSD__
+ extern char *sys_errlist; this too...
+# endif */
----- END DIFF FILE -----
Jazzman * jazz.man@ *
~~~~~~~ * tiscali.it *