I'm trying to build the latest Fantasia from CVS but have a couple of questions:
1) Am I correct to create a lib/required directory in the build directory and place the required JARs there instead of installing them in some more global extensions directory?
2) By doing so, will they be included in the final Fantasia JAR with no need to install them elsewhere?
3) Where exactly can I find the necessary swingx.jar?
Building Fantasia from CVS
- dahnielson
- Moderator
- Posts: 632
- Joined: Wed Jan 23, 2008 11:25 pm
- Location: Linköping / Tranås, Sweden
- Contact:
Building Fantasia from CVS
Anders Dahnielson
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Re: Building Fantasia from CVS
Hi,
You can read more about building from CVS here: http://jsampler.sourceforge.net/#BUILDING_FROM_CVS
Usually, if there aren't any new changes to some of the required libs you can just copy the lib directory from the latest jsampler release, but currently you should build the jlscp library from CVS, then copy the jlscp.jar in the <jsampler-src-root>/lib/required directory.
Because Fantasia uses only a small part of the swingx library, I built a different jar containing only the classes needed by Fantasia. The full swingx library can be downloaded from here: http://swinglabs.org/downloads.jsp
You can read more about building from CVS here: http://jsampler.sourceforge.net/#BUILDING_FROM_CVS
Usually, if there aren't any new changes to some of the required libs you can just copy the lib directory from the latest jsampler release, but currently you should build the jlscp library from CVS, then copy the jlscp.jar in the <jsampler-src-root>/lib/required directory.
Yes, they will be included in the Fantasia JAR and you don't need to install them anywhere.2) By doing so, will they be included in the final Fantasia JAR with no need to install them elsewhere?
You can just copy it from the latest jsampler release.3) Where exactly can I find the necessary swingx.jar?
Because Fantasia uses only a small part of the swingx library, I built a different jar containing only the classes needed by Fantasia. The full swingx library can be downloaded from here: http://swinglabs.org/downloads.jsp
- dahnielson
- Moderator
- Posts: 632
- Joined: Wed Jan 23, 2008 11:25 pm
- Location: Linköping / Tranås, Sweden
- Contact:
Re: Building Fantasia from CVS
Thanks, that was an really simple solution.
However, now my build have progressed to these errors:
However, now my build have progressed to these errors:
Code: Select all
Buildfile: build.xml
clean-fantasia:
build-manifest:
build-fantasia:
[unjar] Expanding: /home/anders/builds/jsampler/lib/required/jlscp.jar into /home/anders/builds/jsampler/dist/build
[unjar] Expanding: /home/anders/builds/jsampler/lib/required/juife.jar into /home/anders/builds/jsampler/dist/build
[unjar] Expanding: /home/anders/builds/jsampler/lib/required/substance-swingx.jar into /home/anders/builds/jsampler/dist/build
[unjar] Expanding: /home/anders/builds/jsampler/lib/required/substance.jar into /home/anders/builds/jsampler/dist/build
[unjar] Expanding: /home/anders/builds/jsampler/lib/required/swingx.jar into /home/anders/builds/jsampler/dist/build
[javac] Compiling 182 source files to /home/anders/builds/jsampler/dist/build
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:525: type net.sf.juife.DefaultNavigationHistoryModel does not take parameters
[javac] extends DefaultNavigationHistoryModel<DbDirectoryTreeNode>
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/PixmapPane.java:30: warning: sun.swing.plaf.synth.Paint9Painter is Sun proprietary API and may be removed in a future release
[javac] import sun.swing.plaf.synth.Paint9Painter;
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/PixmapPane.java:41: warning: sun.swing.plaf.synth.Paint9Painter is Sun proprietary API and may be removed in a future release
[javac] private static Paint9Painter paint9Painter = new Paint9Painter(1);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/AudioDevicesPane.java:78: type net.sf.juife.DefaultComponentListModel does not take parameters
[javac] private final DefaultComponentListModel<AudioDevicePane> listModel =
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/MidiDevicesPane.java:78: type net.sf.juife.DefaultComponentListModel does not take parameters
[javac] private final DefaultComponentListModel<MidiDevicePane> listModel =
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/CC.java:1056: cannot find symbol
[javac] symbol : method getErrorDetails()
[javac] location: interface net.sf.juife.Task
[javac] if(t.getErrorDetails() == null) {
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/CC.java:1062: cannot find symbol
[javac] symbol : method getErrorDetails()
[javac] location: interface net.sf.juife.Task
[javac] t.getErrorDetails()
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/task/EnhancedTask.java:62: setErrorDetails(java.lang.Exception) in org.jsampler.task.EnhancedTask<R> cannot be applied to (java.lang.String)
[javac] setErrorDetails(x.getDetails());
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:155: addTreeSelectionListener(javax.swing.event.TreeSelectionListener) in javax.swing.JTree cannot be applied to (org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel)
[javac] instrumentsDbTree.addTreeSelectionListener(navigationHistoryModel);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:531: cannot find symbol
[javac] symbol : method addActionListener(org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel)
[javac] location: class org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel
[javac] addActionListener(this);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:537: cannot find symbol
[javac] symbol : method goBack()
[javac] location: class javax.swing.JFrame
[javac] DbDirectoryTreeNode node = selectDirectory(super.goBack());
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:545: cannot find symbol
[javac] symbol : method goForward()
[javac] location: class javax.swing.JFrame
[javac] DbDirectoryTreeNode node = selectDirectory(super.goForward());
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:565: cannot find symbol
[javac] symbol : method removePage()
[javac] location: class org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel
[javac] removePage();
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:566: cannot find symbol
[javac] symbol : method fireActionPerformed()
[javac] location: class org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel
[javac] fireActionPerformed();
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:576: cannot find symbol
[javac] symbol : method addPage(org.jsampler.view.DbDirectoryTreeNode)
[javac] location: class javax.swing.JFrame
[javac] super.addPage(node);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:586: cannot find symbol
[javac] symbol : method hasBack()
[javac] location: class org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel
[javac] goBack.setEnabled(hasBack());
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:587: cannot find symbol
[javac] symbol : method hasForward()
[javac] location: class org.jsampler.view.fantasia.InstrumentsDbFrame.NavigationHistoryModel
[javac] goForward.setEnabled(hasForward());
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/InstrumentsDbFrame.java:674: cannot find symbol
[javac] symbol : method setTitlebarVisiblie(boolean)
[javac] location: class org.jsampler.view.fantasia.InstrumentsDbFrame.SidePane
[javac] setTitlebarVisiblie(false);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/PixmapPane.java:41: warning: sun.swing.plaf.synth.Paint9Painter is Sun proprietary API and may be removed in a future release
[javac] private static Paint9Painter paint9Painter = new Paint9Painter(1);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/PixmapPane.java:76: warning: sun.swing.plaf.synth.Paint9Painter is Sun proprietary API and may be removed in a future release
[javac] Paint9Painter.PaintType.PAINT9_STRETCH,
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/PixmapPane.java:77: warning: sun.swing.plaf.synth.Paint9Painter is Sun proprietary API and may be removed in a future release
[javac] Paint9Painter.PAINT_ALL
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/AudioDevicesPane.java:79: type net.sf.juife.DefaultComponentListModel does not take parameters
[javac] new DefaultComponentListModel<AudioDevicePane>();
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/MainFrame.java:242: cannot find symbol
[javac] symbol : method isCancelled()
[javac] location: class org.jsampler.view.std.JSQuitDlg
[javac] if(dlg.isCancelled()) return;
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/MidiInstrumentsPane.java:246: cannot find symbol
[javac] symbol : variable BACK_BUTTON_ICON
[javac] location: class net.sf.juife.Wizard
[javac] wizard.putClientProperty(Wizard.BACK_BUTTON_ICON, Res.iconBack16);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/MidiInstrumentsPane.java:247: cannot find symbol
[javac] symbol : variable NEXT_BUTTON_ICON
[javac] location: class net.sf.juife.Wizard
[javac] wizard.putClientProperty(Wizard.NEXT_BUTTON_ICON, Res.iconNext16);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/MidiInstrumentsPane.java:249: cannot find symbol
[javac] symbol : variable LEFT_PANE_BACKGROUND_COLOR
[javac] location: class net.sf.juife.Wizard
[javac] wizard.putClientProperty(Wizard.LEFT_PANE_BACKGROUND_COLOR, c);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/fantasia/MidiDevicesPane.java:79: type net.sf.juife.DefaultComponentListModel does not take parameters
[javac] new DefaultComponentListModel<MidiDevicePane>();
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/std/JSNewMidiInstrumentWizard.java:442: cannot find symbol
[javac] symbol : method enableNextButton(boolean)
[javac] location: class net.sf.juife.Wizard
[javac] getWizard().enableNextButton(instr != null);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/std/JSNewMidiInstrumentWizard.java:447: cannot find symbol
[javac] symbol : method enableNextButton(boolean)
[javac] location: class net.sf.juife.Wizard
[javac] getWizard().enableNextButton(cbInstruments.getSelectedItem() != null);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/std/JSNewMidiInstrumentWizard.java:633: cannot find symbol
[javac] symbol : method enableNextButton(boolean)
[javac] location: class net.sf.juife.Wizard
[javac] getWizard().enableNextButton(b);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/std/JSNewMidiInstrumentWizard.java:860: cannot find symbol
[javac] symbol : method enableFinishButton(boolean)
[javac] location: class net.sf.juife.Wizard
[javac] if(getWizard() != null) getWizard().enableFinishButton(b);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/std/JSQuitDlg.java:107: cannot find symbol
[javac] symbol : method setCancelled(boolean)
[javac] location: class org.jsampler.view.std.JSQuitDlg
[javac] setCancelled(true);
[javac] ^
[javac] /home/anders/builds/jsampler/src/org/jsampler/view/std/JSQuitDlg.java:112: cannot find symbol
[javac] symbol : method setCancelled(boolean)
[javac] location: class org.jsampler.view.std.JSQuitDlg
[javac] setCancelled(false);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 28 errors
[javac] 5 warnings
BUILD FAILED
/home/anders/builds/jsampler/build.xml:98: Compile failed; see the compiler error output for details.
Total time: 6 seconds
Anders Dahnielson
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Re: Building Fantasia from CVS
Looks to me that you are using an old version of juife.jar. Are you sure you copy that library from the latest jsampler release? That is from JSampler-0.8a.tar.bz2 archive.
- dahnielson
- Moderator
- Posts: 632
- Joined: Wed Jan 23, 2008 11:25 pm
- Location: Linköping / Tranås, Sweden
- Contact:
Re: Building Fantasia from CVS
No. I think I got it from:
http://sourceforge.net/projects/juife/
But I finally did what said and copied all jars from the latest JSampler distribution so it works now.
Thanks!
http://sourceforge.net/projects/juife/
But I finally did what said and copied all jars from the latest JSampler distribution so it works now.
Thanks!
Anders Dahnielson
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux
Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux