Coder Social home page Coder Social logo

xmgr-resurrection's Introduction

Xmgr 4.1.2 - Resurrection

This is a patched version of the abandoned xmgr 4.1.2 plotting program that fixes 64-bit related bugs. We have also changed the build system to CMake, allowing compilation on 32-bit and 64-bit unix systems such as linux and macos x.

Related information:

Building and installation

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install

Required depenencies can typically be satisfied with:

  • Debian based linux distributions:
    apt install build-essential libice-dev libx11-dev libmotif-dev libxmu-dev libxpm-dev libtirpc-dev
    
  • Homebrew/Mac:
    brew install libice libx11 openmotif libmotif-dev libxmu libxpm
    

Why?

Because some cannot come to terms with the updated Grace user interface and would rather stick to xmgr (development frozen in 1998).

M. Ullner and M. Lund, 2012-2022

Copyright notice

Copyright (c) 1991-95 Paul J Turner, Portland, OR
Copyright (c) 1996-98 ACE/gr Development Team

Currently maintained by Evgeny Stambulchik, Rehovot, Israel

                             All Rights Reserved

Permission  to  use, copy, modify, and  distribute  this software  and  its
documentation  for any purpose and  without fee is hereby granted, provided
that  the above copyright notice  appear in  all copies and  that both that
copyright  notice  and   this  permission  notice   appear  in   supporting
documentation.

PAUL J TURNER AND OTHER CONTRIBUTORS DISCLAIM ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING,  BUT  NOT LIMITED  TO, ALL  IMPLIED WARRANTIES OF
MERCHANTABILITY  AND  FITNESS. IN NO EVENT SHALL PAUL J TURNER  OR  CURRENT
MAINTAINER  BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR  OTHER TORTUOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

xmgr-resurrection's People

Contributors

mlund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xmgr-resurrection's Issues

Compilation in Big Sur

I too much prefer this API over that of xmgrace.

But on my new mac, here seems to be some issue with clang 12.0:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -v
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: arm64-apple-darwin20.3.0

At the very start in cephes, this gives:

make
[ 0%] Building C object cephes/CMakeFiles/cephes.dir/airy.c.o
In file included from /Users/ian/Dove/grace/xmgr/cephes/airy.c:59:
In file included from /Users/ian/Dove/grace/xmgr/cephes/mconf.h:70:
/Users/ian/Dove/grace/xmgr/cmath.h:108:12: error: expected identifier or '('
extern int isfinite ( double x );
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/math.h:155:7: note: expanded from macro
'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x))
^
In file included from /Users/ian/Dove/grace/xmgr/cephes/airy.c:59:
In file included from /Users/ian/Dove/grace/xmgr/cephes/mconf.h:70:
/Users/ian/Dove/grace/xmgr/cmath.h:108:12: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/math.h:155:7: note: expanded from macro
'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x))
^
/Users/ian/Dove/grace/xmgr/cmath.h:108:12: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/math.h:155:5: note: expanded from macro
'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x))
^
2 errors generated.
make[2]: *** [cephes/CMakeFiles/cephes.dir/airy.c.o] Error 1
make[1]: *** [cephes/CMakeFiles/cephes.dir/all] Error 2
make: *** [all] Error 2

It may be, according to
https://superuser.com/questions/1555092/cmath-compilation-errors-with-clang-10-on-mac-os-catalina
that we are not accessing /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h (which does have isinfinite!)

In which case, my title with Big Sur is not accurate. Sorry.

no pdf device in Printer Setup :-(

First, many (really many) thanks for your resurrecting xmgr. I first used xmgr way back when it was xvgr on a Sun workstation (~1991).

I recall last time I used xmgr there was an additional device in the printer setup to file print to pdf. So, this is not really an issue, it is more of a heads-up in case you fiddle with this resurrected xmgr: could that pdf device return, at least for macOS using some sort of macports pdf lib ?

Cheers,
Peter

bug with min and max function

Hi
I see a weird bug with the min and max functions.
y=min(x,1) is fine
but
y=min(1,x) produces an error.
It seems that any expressions with x need to be in the first argument.

If this is really an error and hard to fix, a note in documentation might help.

As an aside, xmgrace works in both cases, but uses the function 'minof'

Compiling on Ubuntu 22.04

Hi

On Ubuntu 22.04 I get the error.

/usr/local/src/xmgr-resurrection-master/src/files.c:2591:14: fatal error: rpc/rpc.h: No such file or directory

apt-file find rpc/rpc.h returns
libntirpc-dev: /usr/include/ntirpc/rpc/rpc.h
But after installing libntirpc-dev, the compilation error remains.

I guess /usr/include/ntirpc needs to be included at build.

bug and wish

Great project, many thanks! I have been using xmgr for 20 years, now it is ready for the next 20!

Small bug: On any of the items in the Help menu I get as response:
"Couldn't get a file descriptor referring to the console"

One wish: It would be nice to have a more direct export option.
Simply one click to export in portrait format to EPS.

Finally, personally I like a default line thickness of 2 better (set in src/defaults.c:21).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.