help-octave
[Top][All Lists]
Advanced

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

Re: ginput equivalent in octave


From: John W. Eaton
Subject: Re: ginput equivalent in octave
Date: Thu, 25 Sep 1997 11:52:44 -0500

On 25-Sep-1997, Andy Adler <address@hidden> wrote:

| On 11-Sep-1997, Andy Adler <address@hidden> wrote:
| > I'm looking for a way to achieve the functionality of Matlab's "ginput"
| > in octave. ([x,y]=ginput allows you to click on the graph and get the
| > locations of the points)
| 
| To follow up my own post:
| 
| I finally got around to learning a little X programming and
| wrote a *.oct file that you can dynamically load.

...

| Since it links with X, you can't use mkoctfile to compile it.
| The compile details are in the source.

Here is a patch for mkoctfile that should make things like

  mkoctfile ginput.cc -L/usr/X11R6/lib -lX11

work correctly.

Thanks,

jwe

Thu Sep 25 11:47:45 1997  John W. Eaton  <address@hidden>

        * mkoctfile.in: Really add link options to link command.
        Also handle -LDIR options.


Index: mkoctfile.in
===================================================================
RCS file: /home/jwe/src/master/octave/mkoctfile.in,v
retrieving revision 1.10
diff -c -r1.10 mkoctfile.in
*** mkoctfile.in        1997/06/20 19:27:36     1.10
--- mkoctfile.in        1997/09/25 16:47:35
***************
*** 83,88 ****
--- 83,89 ----
  
    -h, -? --help           Print this message.
    -lLIB                   Add library LIB to link command.
+   -LDIR                   Add -LDIR to link command.
    -o FILE, --output FILE  Output file name.  Default extension is .oct.
    -s, --strip             Strip output file.
    -v, --verbose           Echo commands as they are executed.
***************
*** 100,106 ****
  EOF
        exit 0
      ;;
!     -l*)
        ldflags="$ldflags $1";;
      "")
        break
--- 101,107 ----
  EOF
        exit 0
      ;;
!     -[lL]*)
        ldflags="$ldflags $1";;
      "")
        break
***************
*** 181,188 ****
  
  # Link all the object files.
  
! $dbg $SH_LD $SH_LDFLAGS -o $octfile $objfiles
! eval $SH_LD $SH_LDFLAGS -o $octfile $objfiles
  
  # Maybe strip it.
  
--- 182,189 ----
  
  # Link all the object files.
  
! $dbg $SH_LD $SH_LDFLAGS -o $octfile $objfiles $ldflags
! eval $SH_LD $SH_LDFLAGS -o $octfile $objfiles $ldflags
  
  # Maybe strip it.
  




reply via email to

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