help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] Octave-forge Development (fwd)


From: John W. Eaton
Subject: Re: [OctDev] Octave-forge Development (fwd)
Date: Fri, 11 Jun 2004 14:50:52 -0500

On 11-Jun-2004, Tom G. Smith (Smitty) <address@hidden> wrote:

| Perhaps unfortunately, I'm running RH9, and just purchased
| RedHat Enterprise Linux AS.

Does purchasing that provide any support?  Did RH build the RPM files
you are trying to use?  If so, perhaps you should ask them about the
version problems.

| So I started over, using make distclean; ./configure --enable-dl
| --enable-shared; make; make install, and when that finished, octave
| aborted with a segmentation fault immediately upon invocation.

My guess is it was loading the wrong libraries.  Did you have some
other version installed?  If it fails again like this, then what does

  ldd octave

tell you about the libraries that your copy of octave is using?

| I'm certainly receptive to suggestions, except I don't think changing
| over our Linux distribution from RedHat to Debian is a viable suggestion.

I wasn't suggesting that you should change, at least in the short
term.  My point was that it is clearly possible to build and use
Octave on a Debian system, so it should not be too hard to make it run
on RH systems as well (if it is, then maybe RH is so broken that you
really should consider switching to something else).

| If anyone who got octave and octave-forge to compile with no problems
| could tell me exactly what source they used, and what commands, I'd
| certainly be willing to give it a try.

I just built a copy of Octave 2.1.57 and Octave-forge 2004.02.12.  I
had to make a few minor changes (see the patch below).  You can find
the first change if you search the web for "octave TBM jwe".  The
others all have to do with qh_version which now seems to be defined by
the qhull package, so the code in Octave-forge does not need to define
it.

After downloading and unpacking the sources and applying the patch to
the octave-forge sources, you should be able to do something like

  cd octave-2.1.57
  ./configure --prefix=/some/directory --enable-shared --disable-static
  make
  make install

to build and install octave in /some/directory, followed by

  PATH=/some/directory/bin:$PATH
  cd octave-forge-2004.02.12
  ./autogen.sh
  ./configure --prefix=/some/directory
  make
  make install

I'm assuming you have qhull installed on your system.  If not, get
that first.

I used GCC 3.3.2.

Depending on the version of qhull you have, you may not need anything
but the galois-def.h diff.

jwe


diff -ur octave-forge-2004.02.12.orig/main/comm/galois-def.h 
octave-forge-2004.02.12/main/comm/galois-def.h
--- octave-forge-2004.02.12.orig/main/comm/galois-def.h 2003-04-01 
13:37:14.000000000 -0600
+++ octave-forge-2004.02.12/main/comm/galois-def.h      2004-06-11 
14:06:06.000000000 -0500
@@ -306,6 +306,10 @@
     return r; \
   }
 
+#define TBM boolMatrix (1, 1, true)
+#define FBM boolMatrix (1, 1, false)
+#define NBM boolMatrix ()
+
 #define MM_CMP_OPS1(M1, C1, M2, C2, GR1, GR2, CHECK) \
   MM_CMP_OP1(mx_el_lt, <,  M1, C1, M2, C2, GR1, GR2, CHECK, NBM, NBM) \
   MM_CMP_OP1(mx_el_le, <=, M1, C1, M2, C2, GR1, GR2, CHECK, NBM, NBM) \
diff -ur octave-forge-2004.02.12.orig/main/geometry/__voronoi__.cc 
octave-forge-2004.02.12/main/geometry/__voronoi__.cc
--- octave-forge-2004.02.12.orig/main/geometry/__voronoi__.cc   2003-12-14 
10:53:48.000000000 -0600
+++ octave-forge-2004.02.12/main/geometry/__voronoi__.cc        2004-06-11 
14:12:53.000000000 -0500
@@ -35,7 +35,7 @@
 #endif
 #include <octave/oct.h>
 
-char qh_version[] = "__voronoi__.oct 2003-12-14";
+// char qh_version[] = "__voronoi__.oct 2003-12-14";
 FILE *outfile = stdout;
 FILE *errfile = stderr;
 char flags[250];
diff -ur octave-forge-2004.02.12.orig/main/geometry/configure.add 
octave-forge-2004.02.12/main/geometry/configure.add
--- octave-forge-2004.02.12.orig/main/geometry/configure.add    2002-04-29 
09:19:51.000000000 -0500
+++ octave-forge-2004.02.12/main/geometry/configure.add 2004-06-11 
14:00:29.000000000 -0500
@@ -13,7 +13,6 @@
 cat > conftest.c <<EOF
 #include <stdio.h>
 #include <qhull/qhull.h>
-char qh_version[] = "version";
 int 
 main(argc, argv)
   int argc;
diff -ur octave-forge-2004.02.12.orig/main/geometry/convhulln.cc 
octave-forge-2004.02.12/main/geometry/convhulln.cc
--- octave-forge-2004.02.12.orig/main/geometry/convhulln.cc     2003-12-14 
10:53:48.000000000 -0600
+++ octave-forge-2004.02.12/main/geometry/convhulln.cc  2004-06-11 
14:12:02.000000000 -0500
@@ -29,7 +29,7 @@
 #endif
 #include <octave/oct.h>
 
-char qh_version[] = "convhulln.oct 2003-12-14";
+// char qh_version[] = "convhulln.oct 2003-12-14";
 char flags[250];
 const char *options;
 
diff -ur octave-forge-2004.02.12.orig/main/geometry/delaunayn.cc 
octave-forge-2004.02.12/main/geometry/delaunayn.cc
--- octave-forge-2004.02.12.orig/main/geometry/delaunayn.cc     2004-01-24 
11:42:18.000000000 -0600
+++ octave-forge-2004.02.12/main/geometry/delaunayn.cc  2004-06-11 
14:13:13.000000000 -0500
@@ -39,7 +39,7 @@
 #endif
 #include <octave/oct.h>
 
-char qh_version[] = "delaunayn.oct 2003-12-14";
+// char qh_version[] = "delaunayn.oct 2003-12-14";
 FILE *outfile = stdout;
 FILE *errfile = stderr;
 char flags[250];



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]