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

Solution to Could not find haxelib "hxCodec", does it need to be installed? #91

Closed
doggogit opened this issue Aug 22, 2024 · 10 comments
Closed

Comments

@doggogit
Copy link
Contributor

doggogit commented Aug 22, 2024

For anyone new here trying to compile FPS+, after running hmm install, there is a high chance that the following error will appear:

image

The solution to this is simple, just install hxCodec globally by running the following command:

(Whenever the commit hash (the huge string of numbers at letters at the end of the command) gets updated, I'll update it here)

haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec 61b98a7a353b7f529a8fec84ed9afc919a2dffdd

After the install completes, you should be able to compile!

@doggogit
Copy link
Contributor Author

@ThatRozebudDude if you could close the discussion and pin the issue so people know just in case 👍

@ThatRozebudDude
Copy link
Owner

I wonder if there is a way to fix this because I've also had this problem with hxvlc and it's really annoying.

@doggogit
Copy link
Contributor Author

I wonder if there is a way to fix this because I've also had this problem with hxvlc and it's really annoying.

It's something to do with the lib, I'm not sure exactly what

@doggogit
Copy link
Contributor Author

@ThatRozebudDude I've noticed that the develop branch for base Funkin' has this issue fixed, but it happens on every other repository. The commit hash remains the same on this repo and Funkin', really weird, might have to ask around and see if I can get this fixed here too..

@ThatRozebudDude
Copy link
Owner

Did you check that it's actually fixed by removing the library from your global haxelib?

@doggogit
Copy link
Contributor Author

Did you check that it's actually fixed by removing the library from your global haxelib?

Yeah, I removed hxCodec entirely and it worked for Funkin', doesn't seem to work here though.

I tried it on my laptop where I had to install Haxe from scratch, Funkin' develop just works without needing to install hxCodec globally...

@doggogit
Copy link
Contributor Author

@ThatRozebudDude sorry for the ping, yet again, but potential lead!

me and a friend think it's due to some flag that's causing the error to appear, I have a PR ready for another haxelib package manager that's called HxPKG but it still reports that the lib is missing

switching package managers will most likely be required once we get this sorted as hmm hasn't been updated in quite a while

@ThatRozebudDude
Copy link
Owner

I don't know why switching package managers would be necessary because Funkin still uses hmm, right? Also what do you mean by "some flag"?

@CobaltBar
Copy link

CobaltBar commented Oct 20, 2024

the curse of hxCodec
im still trying to find a fix

@CobaltBar
Copy link

CobaltBar commented Oct 20, 2024

okay it straight up doesn't work with local repos
you have to install it globally, which is already known

its a haxelib issue which has been fixed, HaxeFoundation/haxelib#618 but polybiusproxy/hxCodec#300 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants