lot5000 wrote: Thu Aug 16, 2018 6:37 pm
@philo:
I have tried to run GuideMe on Eclipse on MAC. Environment: macOS 10.13.6 (17G65); Java version "10.0.2" 2018-07-17; Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13); Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
I do not have much programming/compiling knowledge, mainly scripting. But really would like to see GuideMe portable to Linux/Mac.
I am in the process of trying to get it running on an Ubuntu vm.
There shouldn't be any issues with paths as that has been coded for (there might be within actual teases)
I have resolved a few issues so far.
I had to create the data folder and add a settings.properties file.
Contents in spolier
- Spoiler: show
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="buttonFontSize">20</entry>
<entry key="Video">true</entry>
<entry key="thumbnailSize">200</entry>
<entry key="FontSize">20</entry>
<entry key="jsDebugHeight">600</entry>
<entry key="mainMonitor">2</entry>
<entry key="midiInstrument">76</entry>
<entry key="midiVolume">100</entry>
<entry key="toclipboard">false</entry>
<entry key="jsDebugWidth">800</entry>
<entry key="fullScreen">true</entry>
<entry key="imgOffset">0.99</entry>
<entry key="videoVolume">100</entry>
<entry key="metronome">true</entry>
<entry key="maxImageScale">0</entry>
<entry key="JsDebug">false</entry>
<entry key="multiMonitor">false</entry>
<entry key="country">UK</entry>
<entry key="language">en</entry>
<entry key="DataDirectory">Y:\TM\Teases</entry>
<entry key="pageSound">true</entry>
<entry key="sash2Weights2">150</entry>
<entry key="sash2Weights1">700</entry>
<entry key="sash2Weights0">150</entry>
<entry key="musicVolume">100</entry>
<entry key="Debug">true</entry>
<entry key="timerFontSize">20</entry>
<entry key="sash1Weights1">283</entry>
<entry key="sash1Weights0">716</entry>
<entry key="Webcam">false</entry>
<entry key="HtmlFontSize">20</entry>
<entry key="hideMenu">false</entry>
<entry key="clock">true</entry>
<entry key="stateInDataDir">true</entry>
</properties>
Set the correct SWT jar for the operating system
so in the pom.xml file something like this should work
(most should be commented out, just the mac one should not be)
Code: Select all
</dependency>
<!--
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
<version>4.6.1</version>
<classifier>debug</classifier>
</dependency>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
<version>4.6.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
<version>4.6.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
<version>4.6.1</version>
</dependency>
-->
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.cocoa.macosx.x86_64</artifactId>
<version>4.6.1</version>
</dependency>
Install VLC
all of the following must be either 64bit or 32bit, if you mix them it will not work
Java
SWT
VLC
I can currently run Guideme from eclipse in linux, but not deploy it to a jar file
(I think it is to do with some other files like the settings one not automatically comming down from git)