Code Monkey home page Code Monkey logo

starfish's Issues

How to make *.jar file

I tried to run this code, but I don't know to make "starfish.jar" file as written in "Starfish-UG.pdf".
Please tell me command to make *.ja file and your enviroment.

How to compile Starfish correctly and create the .jar file?

Hello,

I am a PhD student in physics, and I would like to compile Starfish, in order to perform simulations for my thesis.
Unfortunately, I am facing some problems.

I started by wanting to compile with Eclipse, but it seems to lack build files to make a functional compilation and I admit I am quite new to Eclipse.
If you are compiling with Eclipse, it might be a good idea to add in the README the steps to follow.

After my failures with Eclipse, I tried to compile from the command line (I'm on GNU/Linux Kubuntu), with javac :

javac -cp src/ src/starfish/core/common/Starfish.java
Error message

src/starfish/gui/viewer/SimulationResultViewer.java:23: error: cannot find symbol
    private vtkXMLStructuredGridReader reader;
            ^
  symbol:   class vtkXMLStructuredGridReader
  location: class SimulationResultViewer
src/starfish/gui/viewer/ViewerWrapper.java:3: error: cannot find symbol
import vtk.vtkInteractorStyleImage;
          ^
  symbol:   class vtkInteractorStyleImage
  location: package vtk
src/starfish/gui/viewer/ViewerWrapper.java:5: error: cannot find symbol
import vtk.vtkRenderWindow;
          ^
  symbol:   class vtkRenderWindow
  location: package vtk
src/starfish/gui/viewer/ViewerWrapper.java:6: error: cannot find symbol
import vtk.vtkRenderWindowInteractor;
          ^
  symbol:   class vtkRenderWindowInteractor
  location: package vtk
src/starfish/gui/viewer/SimulationResultViewer.java:60: error: cannot find symbol
    private vtkActor previousActor = null;
            ^
  symbol:   class vtkActor
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:61: error: cannot find symbol
    private static vtkScalarBarActor scalarBarActor = new vtkScalarBarActor();
                   ^
  symbol:   class vtkScalarBarActor
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewerSettings.java:7: error: cannot find symbol
import vtk.vtkDataArray;
          ^
  symbol:   class vtkDataArray
  location: package vtk
src/starfish/gui/viewer/SimulationResultViewerSettings.java:8: error: cannot find symbol
import vtk.vtkLookupTable;
          ^
  symbol:   class vtkLookupTable
  location: package vtk
src/vtk/vtkPanel.java:29: error: cannot find symbol
  protected vtkRenderWindow rw = new vtkOpenGLRenderWindow();
            ^
  symbol:   class vtkRenderWindow
  location: class vtkPanel
src/vtk/vtkPanel.java:30: error: cannot find symbol
  protected vtkRenderer ren = new vtkRenderer();
            ^
  symbol:   class vtkRenderer
  location: class vtkPanel
src/vtk/vtkPanel.java:31: error: cannot find symbol
  protected vtkCamera cam = null;
            ^
  symbol:   class vtkCamera
  location: class vtkPanel
src/vtk/vtkPanel.java:32: error: cannot find symbol
  protected vtkLight lgt = new vtkLight();
            ^
  symbol:   class vtkLight
  location: class vtkPanel
src/vtk/vtkPanel.java:80: error: cannot find symbol
  protected native int RenderCreate(vtkRenderWindow id0);
                                    ^
  symbol:   class vtkRenderWindow
  location: class vtkPanel
src/vtk/vtkPanel.java:97: error: cannot find symbol
  public vtkPanel(vtkRenderWindow renwin)
                  ^
  symbol:   class vtkRenderWindow
  location: class vtkPanel
src/vtk/vtkPanel.java:126: error: cannot find symbol
  public vtkRenderer GetRenderer() { return ren; }
         ^
  symbol:   class vtkRenderer
  location: class vtkPanel
src/vtk/vtkPanel.java:128: error: cannot find symbol
  public vtkRenderWindow GetRenderWindow() { return rw; }
         ^
  symbol:   class vtkRenderWindow
  location: class vtkPanel
src/starfish/gui/viewer/colorconfig/ColorConfig.java:3: error: cannot find symbol
import vtk.vtkLookupTable;
          ^
  symbol:   class vtkLookupTable
  location: package vtk
src/starfish/gui/viewer/colorconfig/ColorSchemePresets.java:3: error: cannot find symbol
import vtk.vtkLookupTable;
          ^
  symbol:   class vtkLookupTable
  location: package vtk
src/starfish/gui/viewer/SimulationResultViewerSettings.java:162: error: cannot find symbol
    public void putVar(String var, vtkDataArray data) {
                                   ^
  symbol:   class vtkDataArray
  location: class SimulationResultViewerSettings
src/starfish/gui/viewer/SimulationResultViewerSettings.java:178: error: cannot find symbol
    public vtkLookupTable getLookupTable(String var) {
           ^
  symbol:   class vtkLookupTable
  location: class SimulationResultViewerSettings
src/starfish/gui/viewer/colorconfig/ColorConfig.java:64: error: cannot find symbol
    public vtkLookupTable buildLookupTable() {
           ^
  symbol:   class vtkLookupTable
  location: class ColorConfig
src/starfish/gui/viewer/colorconfig/ColorSchemePresets.java:31: error: cannot find symbol
    private vtkLookupTable cache;
            ^
  symbol:   class vtkLookupTable
  location: class ColorSchemePresets
src/starfish/gui/viewer/colorconfig/ColorSchemePresets.java:36: error: cannot find symbol
    public vtkLookupTable createLookupTable(int tableValues) {
           ^
  symbol:   class vtkLookupTable
  location: class ColorSchemePresets
src/starfish/gui/viewer/colorconfig/ColorSchemePresets.java:42: error: cannot find symbol
    private vtkLookupTable generateLookupTable(int tableValues) {
            ^
  symbol:   class vtkLookupTable
  location: class ColorSchemePresets
src/starfish/core/io/OutputModule.java:76: error: cannot find symbol
		allVariables.addAll(List.of(variables));
		                        ^
  symbol:   method of(String[])
  location: interface List
src/starfish/core/io/OutputModule.java:78: error: cannot find symbol
		allScalars.addAll(List.of(scalars));
		                      ^
  symbol:   method of(String[])
  location: interface List
src/starfish/core/io/OutputModule.java:80: error: cannot find symbol
		allCellData.addAll(List.of(cell_data));
		                       ^
  symbol:   method of(String[])
  location: interface List
src/starfish/gui/common/JTextFileChooserCombo.java:63: error: cannot find symbol
        return textField.getText().isBlank() ? null : new File(textField.getText());
                                  ^
  symbol:   method isBlank()
  location: class String
src/starfish/gui/LibraryLoader.java:3: error: cannot find symbol
import vtk.vtkNativeLibrary;
          ^
  symbol:   class vtkNativeLibrary
  location: package vtk
src/starfish/gui/viewer/SimulationResultViewer.java:61: error: cannot find symbol
    private static vtkScalarBarActor scalarBarActor = new vtkScalarBarActor();
                                                          ^
  symbol:   class vtkScalarBarActor
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:71: error: cannot find symbol
            vtkStructuredGrid structuredGrid = reader.GetOutput();
            ^
  symbol:   class vtkStructuredGrid
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:74: error: cannot find symbol
            vtkDataSetMapper mapper = new vtkDataSetMapper();
            ^
  symbol:   class vtkDataSetMapper
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:74: error: cannot find symbol
            vtkDataSetMapper mapper = new vtkDataSetMapper();
                                          ^
  symbol:   class vtkDataSetMapper
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:80: error: cannot find symbol
            vtkLookupTable lookupTable = main.getViewerSettings().getLookupTable(selectedVar);
            ^
  symbol:   class vtkLookupTable
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:88: error: cannot find symbol
            vtkActor actor = new vtkActor();
            ^
  symbol:   class vtkActor
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:88: error: cannot find symbol
            vtkActor actor = new vtkActor();
                                 ^
  symbol:   class vtkActor
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:169: error: cannot find symbol
            vtkPointData data = reader.GetOutputAsDataSet().GetPointData();
            ^
  symbol:   class vtkPointData
  location: class SimulationResultViewer
src/starfish/gui/viewer/SimulationResultViewer.java:192: error: cannot find symbol
            reader = new vtkXMLStructuredGridReader();
                         ^
  symbol:   class vtkXMLStructuredGridReader
  location: class SimulationResultViewer
src/starfish/gui/viewer/ViewerWrapper.java:61: error: cannot find symbol
        vtkRenderWindow renderWindow = new vtkRenderWindow();
        ^
  symbol:   class vtkRenderWindow
  location: class ViewerWrapper
src/starfish/gui/viewer/ViewerWrapper.java:61: error: cannot find symbol
        vtkRenderWindow renderWindow = new vtkRenderWindow();
                                           ^
  symbol:   class vtkRenderWindow
  location: class ViewerWrapper
src/starfish/gui/viewer/ViewerWrapper.java:62: error: cannot find symbol
        vtkRenderWindowInteractor interactor = new vtkRenderWindowInteractor();
        ^
  symbol:   class vtkRenderWindowInteractor
  location: class ViewerWrapper
src/starfish/gui/viewer/ViewerWrapper.java:62: error: cannot find symbol
        vtkRenderWindowInteractor interactor = new vtkRenderWindowInteractor();
                                                   ^
  symbol:   class vtkRenderWindowInteractor
  location: class ViewerWrapper
src/starfish/gui/viewer/ViewerWrapper.java:65: error: cannot find symbol
        vtkInteractorStyleImage style = new vtkInteractorStyleImage();
        ^
  symbol:   class vtkInteractorStyleImage
  location: class ViewerWrapper
src/starfish/gui/viewer/ViewerWrapper.java:65: error: cannot find symbol
        vtkInteractorStyleImage style = new vtkInteractorStyleImage();
                                            ^
  symbol:   class vtkInteractorStyleImage
  location: class ViewerWrapper
src/vtk/vtkPanel.java:29: error: cannot find symbol
  protected vtkRenderWindow rw = new vtkOpenGLRenderWindow();
                                     ^
  symbol:   class vtkOpenGLRenderWindow
  location: class vtkPanel
src/vtk/vtkPanel.java:30: error: cannot find symbol
  protected vtkRenderer ren = new vtkRenderer();
                                  ^
  symbol:   class vtkRenderer
  location: class vtkPanel
src/vtk/vtkPanel.java:32: error: cannot find symbol
  protected vtkLight lgt = new vtkLight();
                               ^
  symbol:   class vtkLight
  location: class vtkPanel
src/vtk/vtkPanel.java:187: error: cannot find symbol
        if (rw instanceof vtkOpenGLRenderWindow)
                          ^
  symbol:   class vtkOpenGLRenderWindow
  location: class vtkPanel
src/vtk/vtkPanel.java:189: error: cannot find symbol
          ((vtkOpenGLRenderWindow)rw).BlitDisplayFramebuffer();
            ^
  symbol:   class vtkOpenGLRenderWindow
  location: class vtkPanel
src/vtk/vtkPanel.java:392: error: cannot find symbol
      vtkActorCollection ac;
      ^
  symbol:   class vtkActorCollection
  location: class vtkPanel
src/vtk/vtkPanel.java:393: error: cannot find symbol
      vtkActor anActor;
      ^
  symbol:   class vtkActor
  location: class vtkPanel
src/vtk/vtkPanel.java:407: error: cannot find symbol
      vtkActorCollection ac;
      ^
  symbol:   class vtkActorCollection
  location: class vtkPanel
src/vtk/vtkPanel.java:408: error: cannot find symbol
      vtkActor anActor;
      ^
  symbol:   class vtkActor
  location: class vtkPanel
src/vtk/vtkPanel.java:427: error: cannot find symbol
    vtkWindowToImageFilter w2if = new vtkWindowToImageFilter();
    ^
  symbol:   class vtkWindowToImageFilter
  location: class vtkPanel
src/vtk/vtkPanel.java:427: error: cannot find symbol
    vtkWindowToImageFilter w2if = new vtkWindowToImageFilter();
                                      ^
  symbol:   class vtkWindowToImageFilter
  location: class vtkPanel
src/vtk/vtkPanel.java:433: error: cannot find symbol
    vtkTIFFWriter writer = new vtkTIFFWriter();
    ^
  symbol:   class vtkTIFFWriter
  location: class vtkPanel
src/vtk/vtkPanel.java:433: error: cannot find symbol
    vtkTIFFWriter writer = new vtkTIFFWriter();
                               ^
  symbol:   class vtkTIFFWriter
  location: class vtkPanel
src/vtk/vtkPanel.java:444: error: cannot find symbol
    vtkPropPicker picker = new vtkPropPicker();
    ^
  symbol:   class vtkPropPicker
  location: class vtkPanel
src/vtk/vtkPanel.java:444: error: cannot find symbol
    vtkPropPicker picker = new vtkPropPicker();
                               ^
  symbol:   class vtkPropPicker
  location: class vtkPanel
src/starfish/gui/viewer/colorconfig/ColorConfig.java:65: error: cannot find symbol
        vtkLookupTable output = colorScheme.createLookupTable(numBuckets);
        ^
  symbol:   class vtkLookupTable
  location: class ColorConfig
src/starfish/gui/viewer/colorconfig/ColorSchemePresets.java:44: error: cannot find symbol
        vtkLookupTable output = new vtkLookupTable();
        ^
  symbol:   class vtkLookupTable
  location: class ColorSchemePresets
src/starfish/gui/viewer/colorconfig/ColorSchemePresets.java:44: error: cannot find symbol
        vtkLookupTable output = new vtkLookupTable();
                                    ^
  symbol:   class vtkLookupTable
  location: class ColorSchemePresets
src/starfish/gui/builder/form/entry/EntryFactory.java:89: error: cannot find symbol
        if (!condition.isBlank()) {
                      ^
  symbol:   method isBlank()
  location: variable condition of type String
src/starfish/gui/LibraryLoader.java:42: error: cannot find symbol
        return vtkNativeLibrary.LoadAllNativeLibraries();
               ^
  symbol:   variable vtkNativeLibrary
  location: class LibraryLoader
src/starfish/gui/LibraryLoader.java:69: error: cannot find symbol
            res = vtkNativeLibrary.LoadAllNativeLibraries();
                  ^
  symbol:   variable vtkNativeLibrary
  location: class LibraryLoader
src/starfish/gui/LibraryLoader.java:73: error: cannot find symbol
        vtkNativeLibrary.DisableOutputWindow(null);
        ^
  symbol:   variable vtkNativeLibrary
  location: class LibraryLoader
src/starfish/gui/builder/RootUserObject.java:24: error: cannot find symbol
            htmlString = new String(is.readAllBytes(), StandardCharsets.UTF_8);
                                      ^
  symbol:   method readAllBytes()
  location: variable is of type InputStream
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
67 errors

Unfortunately, I still have compile errors, it seems that the VTK files are not present in the repository. Maybe you are using an external repository for this? Or maybe the master version is not ready to be compiled yet and I should work with an earlier version?

Thanks in advance for guiding me a bit.

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.