Comments (9)
To build with JDK 11, you need to modify 19 to 21 lines of scripts/jdk_setup.sh
to
wget -nc -O $LINUX_JDK_FILE https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz
wget -nc -O $MACOS_JDK_FILE https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_mac_hotspot_11.0.6_10.tar.gz
wget -nc -O $WINDOWS_JRE_FILE https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_windows_hotspot_11.0.6_10.zip
and re-download the JDK 11 to build.
from img2latex-mathpix.
@hmf Haven't thought anyone would concern about the build process. I was hoping people would contribute to the functionality. Definitely will write a contribution / develop guideline if I have a spare weekend in the future.
from img2latex-mathpix.
[Auto response] Looks like this is your first issue. I will look into it as soon as possible.
from img2latex-mathpix.
Probably you need to change the sourceCompatibility
, targetCompatibility
, and javafx version to 11 in the build.gradle
file
from img2latex-mathpix.
@blaisewang My apologies but I was having problems pushing the changes.
I have already changed the JDK version here. As I said, in Gradle it works but the install
script fails.
Please note that the OS detection has bugs in your master. If you like, I can make a pull request.
from img2latex-mathpix.
@hmf I reviewed your code and figured out what might be wrong. This project was originally developed with JDK 11 since last year. So, using JDK 11 should not be a problem here. The problem is that you didn't modify the jdk_setup.sh script. The JDK you initially downloaded inside the jdk/
folder is actually JDK 14.
from img2latex-mathpix.
The build process for this software is not building three versions on three platforms. The software was built in Ubuntu with Travis CI. The org.gradle.internal.os.OperatingSystem
couldn't use here as we are not building Windows version on a Windows PC.
21 - 30 lines of .travis.yml script explains how to do the cross-platform build. The -Plinux
parameter is passed with ./gradlew runtimeZip
, so the project.hasProperty("linux")
is true
. So does -Pwindows
for project.hasProperty("windows")
to be true
.
The OperatingSystem.current().isWindows()
part inside runtime
is redundant as launch4j
is used to build Windows version software.
I don't think it's a good idea to simply set javafx
- version
to ${compileJava.targetCompatibility}
. There are minor JavaFX version like 11.0.2. The code is compatible with JDK 11, but using JavaFX's latest version such as 11.0.2 is always good practice as a minor version comes with bug fixes and security improvements.
from img2latex-mathpix.
I am using a mac so I put -Pmacos
as the default situation to build with ./gradlew runtimeZip
. You can use ./gradlew -Plinux runtimeZip
to build the Linux version with JDK 11 if you set up JDK correctly inside jdk
folder.
from img2latex-mathpix.
@blaisewang Thanks for the heads-up. I will make the changes to the script and run Gradle via command line as you indicated above. Maybe these instrcuction could be aded to the documentation.
from img2latex-mathpix.
Related Issues (20)
- 能不能给一个(或者记住我上一次选择复制的公式)选择默认复制公式样式的选项 HOT 2
- [Feature Request] The result without math mode symbols HOT 2
- [Bug] HOT 2
- unrendered equation HOT 3
- [Bug] Incorrect MathML export for multiple entries at once HOT 4
- [Bug] Application allows executing multiple instances at the same time HOT 1
- 关于公式格式 HOT 2
- [Bug] Mathpix OCR API now costs? HOT 3
- [Enhanecement] Whitespace character between $ signs HOT 3
- How does it work? HOT 2
- Can't access settings after first configuration HOT 1
- Qt: Session management error: Could not open network socket HOT 2
- Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found HOT 7
- [Bug] 停止一段时间不用后,再粘贴公式就无法识别,必须要重启后才可以正常使用。人在国外,识别速度偏慢 HOT 2
- 建议改一下Readme HOT 4
- [Bug]Connection reset HOT 1
- [Feature Request] ubuntu20 版,能不能提供一个快捷键就可以关闭应用界面的功能 HOT 4
- Where is the Image2LaTeX.exe ? HOT 1
- [Bug]To prevent automated abuse we charge a one-time non-refundable setup fee of $19.99. HOT 2
- 能否添加队列模式 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from img2latex-mathpix.