I have added the static libraries in the clojure file:
(ns project.core
(:import (javax.swing JButton JFrame JPanel)
(vtk vtkConeSource vtkPolyDataMapper vtkRenderWindow
vtkRenderWindowInteractor vtkCamera vtkActor vtkRenderer
vtkInteractorStyleTrackballCamera)))
(System/loadLibrary "vtkCommonJava")
(System/loadLibrary "vtkFilteringJava")
(System/loadLibrary "vtkIOJava")
(System/loadLibrary "vtkImagingJava")
(System/loadLibrary "vtkGraphicsJava")
(System/loadLibrary "vtkRenderingJava")
(defn main []
(let [cone (doto (vtkConeSource.)
(.SetHeight 3.0)
(.SetRadius 1.0)
(.SetResolution 10))
coneMapper (doto (vtkPolyDataMapper.)
(.SetInputConnection(.GetOutputPort cone)))
coneActor (doto (vtkActor.)
(.SetMapper coneMapper))
ren (doto (vtkRenderer.)
(.AddActor coneActor)
(.SetBackground 0.1 0.2 0.4)
(.ResetCamera)
(-> (.GetActiveCamera) (.Azimuth 90)))
renWin (doto (vtkRenderWindow.)
(.AddRenderer ren)
(.SetSize 300 300))
iren (doto (vtkRenderWindowInteractor.)
(.SetRenderWindow renWin)
(.SetInteractorStyle (vtkInteractorStyleTrackballCamera.))
(.Initialize)
(.Start))
]))
(project.core/main)
But I still get the same error. I think that I have problems to add the
"LD_LIBRARY_PATH" to my REPL.
user => (project.core/main)
UnsatisfiedLinkError vtk.vtkConeSource.VTKInit()J vtk.vtkConeSource.VTKInit
(vtkConeSource.java:-2)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en