Coder Social home page Coder Social logo

failed to build in linux about labelplusfx HOT 5 OPEN

zerobikappa avatar zerobikappa commented on August 15, 2024
failed to build in linux

from labelplusfx.

Comments (5)

zerobikappa avatar zerobikappa commented on August 15, 2024

将出错的两个包的版本号改了之后(3.9.0-SNAPSHOT改成3.9.01.14.3-module改成1.14.3),可以继续编译,然后就提示javafx-base javafx-base javafx-graphics javafx-swing这四个包找不到,可是我已经安装在我的linux系统里安装了java17-openjfx,最后没办法所以继续在pom.xml文件里的依赖项里加上了这几个包:

        <!-- javafx -->
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-base</artifactId>
            <version>17.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>17.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-graphics</artifactId>
            <version>17.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-swing</artifactId>
            <version>17.0.2</version>
        </dependency>

最后编译成功了。

Screenshot_20230211_055419

不过编译出来的文件字体显示不全,我找了一下源代码找不到有哪句是设置字体的,这个问题是出在javafx的默认字体上的吗?

from labelplusfx.

zerobikappa avatar zerobikappa commented on August 15, 2024

好像是javafx不能很好地读取ttc字体,在linux下至少要安装一个支持CJK的TTF格式字体,才能避免出现上面的方框。

from labelplusfx.

lihe07 avatar lihe07 commented on August 15, 2024

大佬有考虑做AUR吗?

from labelplusfx.

zerobikappa avatar zerobikappa commented on August 15, 2024

大佬有考虑做AUR吗?

我没这个打算,不过我试着写了一下PKGBUILD,你可以参考一下。
https://paste2.org/hxkJcdwx

(Sun Feb 26 02:10:52 AM CST 2023)更新,我改变了一下启动方式,现在能以最少的依赖启动这个软件了。
https://paste2.org/ZfhCgJCc

把里面的内容保存为PKGBUILD文件名的文本文件,然后运行makepkg -si就能安装了。
不过软件的设置页窗口大小有点问题,暂时只能通过直接修改~/.lpfx/settings文件来更改软件的设定。

from labelplusfx.

zerobikappa avatar zerobikappa commented on August 15, 2024

@lihe07
我暂时找到了解决设置页窗口大小的方法(#18 )。
archlinux的PKGBUILD也修改好了。
https://paste2.org/DN5ezzN6
你可以参考一下。

这个issue应该可以结束了。不过暂且不关闭留着给作者大大看一下需不需要修改源代码。

from labelplusfx.

Related Issues (17)

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.