Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[with optional spkg] Make vtk an easy-to-install optional sage package #705

Closed
williamstein opened this issue Sep 20, 2007 · 4 comments
Closed

Comments

@williamstein
Copy link
Contributor

From Josh:

I have a vtk meta package in my spkgs directory.
It automatically attempts to detect the tcl/tk libs
and rebuild python if the tk bindings were not compiled on linux and
rebuilds python as a framework on OSX, it then builds VTK.

http://sage.math.washington.edu/home/jkantor/spkgs/

Component: packages: standard

Issue created by migration from https://trac.sagemath.org/ticket/705

@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented Oct 26, 2007

comment:5

I tried your meta spkg on my laptop (Debian testing), and it failed even after I installed tcl8.4-dev and tk8.4-dev packages, with this error:

test_tcl.c:2:24: error: tcl8.3/tcl.h: No such file or directory
test_tcl.c:3:23: error: tcl8.3/tk.h: No such file or directory
In file included from test_tcl.c:8:
/usr/include/tcl8.4/tk.h:21:17: error: tcl.h: No such file or directory

As you can see, tcl8.4/tk.h includes tcl.h without specifying a path, so it doesn't find /usr/include/tcl8.4/tcl.h. Programs using tcl and tk need to be compiled with -I/usr/include/tcl8.4.

@williamstein
Copy link
Contributor Author

comment:6
Josh,
 
Michael Abshoff and I spent some time looking over the vtk packaging
stuff you're doing.  I think you should put all the spkg's together
in one big directory:
 
     vtk_meta-1/
        cmake-2.4.7.spkg
        MayaVi-1.5.spkg
        python-2.5.1-framework.spkg
        PyVTK-0.4.74.spkg
        vtk-5.0.3.p1.spkg
 
The version number on the directory is very important.
 
Then put the spkg-install from your current vtk_meta in there.
You have to change your spkg-install slightly, so it works
with spkg's that are "local", i.e., it will be vasty simpler.
 
Then you can just do
 
    sage -pkg_nc vtk_meta-1    # nc for "no compression"
 
to make a file vtk_meta-1.spkg that anyone can easily build
anywhere by doing
 
    sage -i vtk_meta-1.spkg
 
OK?
 
If you don't do this, then there are a bunch of separate
optional packages, and though you might not know this a
*LOT* of people who install Sage immediately do "sage -optional"
and proceed, in pretty much random order, to install one
optional package after the other and play with it.  Having
a bunch that don't make sense by themselves, e.g., python-2.5.1-framework.spkg,
in optional would reak havoc and confuse a large number of people.
 
I'm sorry I suggested the more complicated setup that you
actually implemented.  I hope you can see how the above suggestion
will be much simpler for people to use.
 

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title Make vtk an easy-to-install optional sage package [with optional spkg] Make vtk an easy-to-install optional sage package Nov 1, 2007
@williamstein
Copy link
Contributor Author

comment:8

UPDATE -- now it is made easier and simple, finally:

The package vtk_meta-1.spkg in my spkg's
directory should be ready now.

It requires tcl/tk dev libs to build on Linux
as well as open gl.

It takes between 15-40+ minutes to compile
depending on cpu and whether or not python
needs to be rebuilt.

Nothing extra required on OSX.
I'm curious if it works on leopard?

Also there is a pretty skeletal but functional
patch in my spkgs, vtk_plot.hg that adds
three functions that allow plotting 2d surfaces and 3d isosurfaces.

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.10, sage-2.9 Dec 4, 2007
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 9, 2008

comment:10

William put this into the experimental package directory a while ago. So close this now.

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Jan 9, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant