Moppy2 icon indicating copy to clipboard operation
Moppy2 copied to clipboard

Unable to build Moppy2 with eclipse and Gradle

Open devfilmer opened this issue 6 years ago • 7 comments

Hello,

I started with a clean install of Eclipse IDE Version: 2019-06 (4.12.0) Build id: 20190614-1200 OS: Windows 7, v.6.1, x86_64 / win32 Java version: 12.0.1

Then imported moppy2

However, I am unable to build moppy from the latest 2,0,1 branch due to numerous undefined methods.

Here are a few. Description Resource Path Location Type The method builder() is undefined for the type DeviceDescriptor NetworkManager.java /MoppyControlGUI/src/main/java/com/moppy/control line 86 Java Problem The method getConditionChoice() is undefined for the type MoppyConfig.MIDIScriptMapperConfig MapperPanel.java /MoppyControlGUI/src/main/java/com/moppy/control/gui/mapperpanel line 63 Java Problem The method getConditionCustomScript() is undefined for the type MoppyConfig.MIDIScriptMapperConfig MapperPanel.java /MoppyControlGUI/src/main/java/com/moppy/control/gui/mapperpanel line 438 Java Problem

If this is a gradle configuration issue (i.e. my error) I apologize. Any help would be appreciated.

devfilmer avatar Jul 05 '19 00:07 devfilmer

It looks like what all those methods have in common is that they should be generated/injected by Lombok. Offhand I don't remember/know the process for getting Lombok setup in an Eclipse project, but I think that's the direction you should head to resolve this.

Sammy1Am avatar Jul 10 '19 21:07 Sammy1Am

I know it is a bit late now but for future reference, I just set up a fresh install of Eclipse with moppy and ran into 1-2 minor steps I needed that I didn't see in the moppy wiki. Like Sammy said I had to download Lombok, run the installer, and add the jar. It was all fairly straight forward though for anyone who has not used eclipse before and stumbles upon this.

To add a Jar

  1. Right Click on the project in eclipse file explorer
  2. BuildPath > Configure BuildPath > Click on the Libraries Tab > Add External Jars
  3. select the downloaded Jar

The second thing I had to do to get MoppyDeviceGUI was to add another external jar jfxrt.jar from my jre 1.8.0 as shown Here

DJthefirst avatar Jun 10 '20 20:06 DJthefirst

Also, how is Device GUI incorporated into moppy as you only need control and lib to run moppy?

DJthefirst avatar Jun 10 '20 22:06 DJthefirst

Ah, DeviceGUI is a Java UI simulator of a floppy drive. I haven't kept it updated so I'm not 100% sure it still works, but I used it for testing the Java code when I didn't have an Arduino and floppy drives handy.

Sammy1Am avatar Jun 10 '20 22:06 Sammy1Am

Leaving this open for now as a reminder to improve the documentation.

Sammy1Am avatar Aug 12 '20 02:08 Sammy1Am

Cool Glad to see you working on moppy.

I was able to set up moppy to work with a raspberry pi and JAVA. Not a huge accomplishment.. but it works. Ironically.. I believe I accidentally wiped the the raspberry pi card while working on another project.

I'll have to go back and install it again and then get back to figuring out the command line stuff.

Thank you for all your hard work on Moppy.

I am a member of a maker space and we made this 2 years ago for Maker Faire Orlando. Laser cut wood in a box which was intended to increase the sound of the drives. (Loudness needs to still be increased) My current goal to make it a stand alone exhibit tied to buttons with various midi files.

Without you this would not exist.

Thank you,

A.

On Tue, Aug 11, 2020, 22:51 Sammy1Am [email protected] wrote:

Leaving this open for now as a reminder to improve the documentation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Sammy1Am/Moppy2/issues/73#issuecomment-672517698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJ2ENCTZ7NAE72F3JYC7GLSAH7TZANCNFSM4H6CTQNA .

devfilmer avatar Aug 12 '20 03:08 devfilmer

Glad you got it working! Yeah, finally dusting off the code and putting in some much needed updates.

There's a ticket (#67) related to using buttons on the Arduino for input, and one for playlists (#91). They're low on my own to-do list (the primary goal is making things easier to get people up and running, and these might just complicate things), but if you do end up writing any code for those maybe we can pull it into the repository (I know a lot of people like having a playlist option).

Sammy1Am avatar Aug 12 '20 04:08 Sammy1Am