Skip to content

Latest commit

 

History

History
123 lines (86 loc) · 2.59 KB

README.md

File metadata and controls

123 lines (86 loc) · 2.59 KB

Haxe and System targets

Documentation about using the system targets from Haxe.

The current targets that I have tested is

  • cpp (C++)
  • cs (C#)
  • interp (Eval/Macro)
  • java
  • lua
  • jvm
  • neko
  • node.js (without installing npm packages)
  • python

But Haxe has more system targets, that probably work exactly the same:

  • hl (hashlink)
  • php

Haxe libs

Read download

Read https://haxe.org/documentation/introduction/ - Setup your development environment

Here quick and dirty version

haxelib install hxcpp
haxelib install hxcs
haxelib install hxjava

Haxe C#

Compilation error
C# compiler not found. Please make sure either Visual Studio or mono is installed or they are reachable by their path

osx

brew install mono

Haxe Java

https://haxe.org/documentation/platforms/java.html

Compilation error
Java compiler not found. Please make sure JDK is installed. If it is, please add an environment variable called JAVA_HOME that points to the JDK install location or add the bin subfolder to your PATH environment.

OSX

Install the latest Java Runtime Environment (JRE).

java -showversion
# The operation couldn’t be completed. Unable to locate a Java Runtime.
# Please visit http://www.java.com for information on installing Java.
brew install java
# follow instructions to "For the system Java wrappers to find this JDK, symlink it with"
#  ...
# check version
java -showversion

LUA

brew install lua
brew install luarocks
brew install cmake

And use luarocks to install dependency :

luarocks install lrexlib-pcre
luarocks install environ
luarocks install luasocket
luarocks install luv
luarocks install luautf8
luarocks install bit32 # depends on the version you install
luarocks install hx-lua-simdjson # when you want to work with json

How to contribute?

Read more about that here. But it boils down to: JUST DO IT!

Visit https://github.com/MatthijsKamstra/haxesys to modify the "source" aka markdown files.

Found any "bug" or have a great idea? Please create a new issue.

How to build?

Use Docsify. You need to install Node.js and then you automatically have NPM:

Install docsify

npm i docsify-cli -g

Use to serve docs

docsify serve docs

Convert from Gitbook to Docsify

Readmore