-
Greetings, I am trying to set up the HaxeFlixel dev environment on Ubuntu 20.04 (with VSC) and I followed the steps from the official guide found here. Everything ran smoothly until I tried to compile the "HelloWorld" example by using
Milan |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
as the error says, haxe version 4.0.5 is unsupported, use version 4.2.5 or higher, if you're new to flixel and haxe, there's no reason to use anything older than the latest version of haxe |
Beta Was this translation helpful? Give feedback.
-
Thanks, obviously I'm too tired... |
Beta Was this translation helpful? Give feedback.
-
Thank you Geokureli and Snirozu for your accurate and highly appreciated answers which can be found here: Answer 1 Answer 2. By doing a default installation of Haxe on Ubuntu I got outdated version 4.0.5 so I performed the following steps to update it to acceptable ver. 4.2.5. As emphasized in this document it's important for the old version of Haxe/Neko to be completely removed before upgrading to a newer version. So here is how to update Haxe on Ubuntu 20.04: Open the terminal (Ctrl+Alt+T) and type in the following:
to completely remove Haxe and its dependencies. Then we need to add an officially maintained repo that provides the latest versions of Haxe and Neko for all the currently supported Ubuntu versions (also usable for Ubuntu-based distributions, e.g. Linux Mint):
Next, type in the following command
to download package information from newly configured sources. And finally, perform an installation by typing in the following:
Now, there is one thing left to do and that is to update the path to the old Lib folder, so type in the terminal
and when prompted for path, enter the path to your existing haxe lib (created by the old version) folder. Mine was:
When this is set, type in
to check the version. |
Beta Was this translation helpful? Give feedback.
Thank you Geokureli and Snirozu for your accurate and highly appreciated answers which can be found here: Answer 1 Answer 2.
By doing a default installation of Haxe on Ubuntu I got outdated version 4.0.5 so I performed the following steps to update it to acceptable ver. 4.2.5. As emphasized in this document it's important for the old version of Haxe/Neko to be completely removed before upgrading to a newer version. So here is how to update Haxe on Ubuntu 20.04:
Open the terminal (Ctrl+Alt+T) and type in the following:
sudo apt-get purge --auto-remove haxe
to completely remove Haxe and its dependencies.
Then we need to add an officially maintained repo that provides the latest versions of …