Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build troubles when trying to compile haslink #3088

Closed
2 tasks done
galleniz opened this issue Aug 3, 2024 · 7 comments
Closed
2 tasks done

Build troubles when trying to compile haslink #3088

galleniz opened this issue Aug 3, 2024 · 7 comments
Labels
status: pending triage The bug or PR has not been reviewed yet. type: minor bug Involves a minor bug or issue.

Comments

@galleniz
Copy link

galleniz commented Aug 3, 2024

Issue Checklist

  • I have properly named the issue
  • I have checked the issues/discussions pages to see if the issue has been previously reported

What platform are you using?

Itch.io (Downloadable Build) - Linux

If you are playing on a browser, which one are you using?

None

Version

0.4.1

Context (Provide images, videos, etc.)

When I tried to compile to haslink because I can't compile to normal linux, I had a problem that I really don't know why, because I tried to compile from another lime project and it left me correctly.

The problem in cuestion
image

proof of the compilation on other project
image

Steps to reproduce (or crash logs, errors, etc.)

I just installed the GitHub version and tried to compile to hashlink, and I read all the documentation for building and there is no specification for hashlink.

And the logs was:

❯ lime test hl
source/Prebuild.hx:15: Building...
source/funkin/util/macro/GitCommit.hx:26: Git Commit ID: 9b483de
source/funkin/util/macro/GitCommit.hx:101: Git Status Output: 
source/funkin/util/macro/GitCommit.hx:55: Git Branch Name: main
source/funkin/ui/credits/CreditsDataMacro.hx:13: Hardcoding credits data...
source/funkin/ui/credits/CreditsDataHandler.hx:39: CreditsData(33 entries containing 113 lines)
 WARNING  /home/galleniz/Documents/GitHub/funkin/.haxelib/thx,core/git/src/thx/Weekday.hx:7: characters 1-7

   7 | @:enum
     | ^^^^^^
     | (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`

 WARNING  /home/galleniz/Documents/GitHub/funkin/.haxelib/thx,core/git/src/thx/Weekday.hx:7: characters 1-7

   7 | @:enum
     | ^^^^^^
     | (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`

 WARNING  source/funkin/play/ResultState.hx:875: lines 875-887

 875 |                 FlxG.switchState(FreeplayState.build(
   - |                   [...]
 887 |                   }));
     |
     | (WDeprecated) use `MyState.new` or `()->new MyState()` instead of `new MyState()`)

 WARNING  source/funkin/play/components/HealthIcon.hx:208: characters 38-55

 208 |         var targetSize:Int = Std.int(MathUtil.coolLerp(this.width, HEALTH_ICON_SIZE * this.size.x, 0.15));
     |                                      ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/play/components/HealthIcon.hx:214: characters 38-55

 214 |         var targetSize:Int = Std.int(MathUtil.coolLerp(this.height, HEALTH_ICON_SIZE * this.size.y, 0.15));
     |                                      ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/play/components/HealthIcon.hx:220: characters 20-37

 220 |       this.angle = MathUtil.coolLerp(this.angle, 0, 0.15);
     |                    ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/Alphabet.hx:224: characters 11-28

 224 |       y = MathUtil.coolLerp(y, (scaledY * 120) + (FlxG.height * 0.48), 0.16);
     |           ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/Alphabet.hx:225: characters 11-28

 225 |       x = MathUtil.coolLerp(x, (targetY * 20) + 90, 0.16);
     |           ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/MenuItem.hx:48: characters 9-26

  48 |     y = MathUtil.coolLerp(y, (targetY * 120) + 480, 0.17);
     |         ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/freeplay/SongMenuItem.hx:703: characters 11-28

 703 |       x = MathUtil.coolLerp(x, targetPos.x, 0.3);
     |           ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/freeplay/SongMenuItem.hx:704: characters 11-28

 704 |       y = MathUtil.coolLerp(y, targetPos.y, 0.4);
     |           ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/options/FunkinSoundTray.hx:80: characters 9-26

  80 |     y = MathUtil.coolLerp(y, lerpYPos, 0.1);
     |         ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/options/FunkinSoundTray.hx:81: characters 13-30

  81 |     alpha = MathUtil.coolLerp(alpha, alphaTarget, 0.25);
     |             ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

 WARNING  source/funkin/ui/story/LevelTitle.hx:57: characters 14-31

  57 |     this.y = MathUtil.coolLerp(y, targetY, 0.17);
     |              ^^^^^^^^^^^^^^^^^
     | (WDeprecated) Use smoothLerp instead

Warning: Could not find template file: bin/hl/Linux64
chmod: cannot access 'export/release/hl/bin/Funkin': No such file or directory

@galleniz galleniz added status: pending triage The bug or PR has not been reviewed yet. type: minor bug Involves a minor bug or issue. labels Aug 3, 2024
@NotHyper-474
Copy link
Contributor

NotHyper-474 commented Aug 3, 2024

I also tried this before, eventually I found this comment which, albeit solves that issue, leaves me with another.

So I don't think building Funkin with HashLink on Linux is possible at the moment, and even on Windows it's quite buggy.

@galleniz
Copy link
Author

galleniz commented Aug 3, 2024

So?

@NotHyper-474
Copy link
Contributor

NotHyper-474 commented Aug 3, 2024

So what? I already linked to a fix. It might not work though.

[bin/hl/Linux64] is where Lime’s bundled HashLink executable (and .hdll files) can be found. If it’s not there, or empty, you can to run lime rebuild hl -clean -release -nocffi (or you can copy the files from a recent Lime nightly build from GitHub Actions).

@NotHyper-474
Copy link
Contributor

NotHyper-474 commented Aug 4, 2024

[Update] I found a way to fix the other issue, I think.

If, when testing the game, you get a segfault after you had run the rebuild command or this error HaxeFoundation/hashlink#590 when using the prebuilt binaries provided here then you can fix those by building with the -Dno_ssl flag (e.g lime test hl -Dno_ssl)

I don't recommend building to HashLink though as there is barely support for it and the game crashes a lot.

@galleniz
Copy link
Author

Thanks ^^

@NotHyper-474
Copy link
Contributor

You're welcome. Also if you just want to play the game then you can download my build provided here

@galleniz
Copy link
Author

tyy:3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pending triage The bug or PR has not been reviewed yet. type: minor bug Involves a minor bug or issue.
Projects
None yet
Development

No branches or pull requests

2 participants