FunkinCrew / Funkin

A rhythm game made with HaxeFlixel
https://www.newgrounds.com/portal/view/770371
Other
2.85k stars 2.25k forks source link

Compiling help: [Error: Could not find haxelib "hxCodec"] #2360

Open TheRealJake12 opened 2 months ago

TheRealJake12 commented 2 months ago

Please check for duplicates or similar compiler issues by filtering for 'compiler help'

Please describe your issue. Provide extensive detail and images if possible.

Error Compiling Latest Develop Commit. After Running All The hmm Stuff, Polymod and hxCodec have been giving trouble compiling. but it can't find hxCodec at all.

METGameDev commented 2 months ago

the solution is here: https://github.com/FunkinCrew/Funkin/issues/2341

but in short haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec c0c7f2680cc190c932a549c2e2fdd9b0ba2bd10e this should work. worked for me.

TheRealJake12 commented 2 months ago

the solution is here: #2341

but in short haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec c0c7f2680cc190c932a549c2e2fdd9b0ba2bd10e this should work. worked for me.

yeah, fixed it. thanks bro. gonna keep the issue open though.

METGameDev commented 2 months ago

np, anytime

NotHyper-474 commented 2 months ago

Alternatively, if you don't want two separate hxCodec installations occupying disk space you can reutilize the already installed lib like this:

  1. Go to Funkin folder and open it in terminal
  2. Type haxelib libpath hxCodec and if spits out a folder path, copy it. If not that means hmm really didn't install hxCodec properly or you didn't run the command in Funkin repo folder.
  3. Do haxelib --global dev hxCodec (paste the path here)

This will make a globally accessible "link" to the hxCodec in .haxelib folder, to undo it just run haxelib --global dev hxCodec

AOrangeFruit commented 1 month ago

Glad that this issue is still open, I've encountered the same issue now in 0.4.1, do i need to type again haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec c0c7f2680cc190c932a549c2e2fdd9b0ba2bd10e or not because is outdated?, because i tried typing haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec 61b98a7a353b7f529a8fec84ed9afc919a2dffdd the new branch and at first it spited Error: Could not clone Git repository. after that it worked but now i've encountered the same issue again. what do i do? imagen_2024-06-30_141942405

NotHyper-474 commented 1 month ago

do i need to type again haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec c0c7f2680cc190c932a549c2e2fdd9b0ba2bd10e or not because is outdated?, because i tried typing haxelib --global git hxCodec https://github.com/FunkinCrew/hxCodec 61b98a7a353b7f529a8fec84ed9afc919a2dffdd the new branch and at first it spited Error: Could not clone Git repository. after that it worked but now i've encountered the same issue again. what do i do?

I think that as long as you don't need to compile for Linux you can use the "outdated" commit ID

AOrangeFruit commented 1 month ago

Hi, thanks a lot for the response, i needed to be persistent with the installation of the hxcodec never and global by removing it and installing it again (my internet connection is very poor), but ok i think that might work as well, thank you again