Was hoping to try some SDL or Heaps with HL, not tried using it in a while, but seems mac target is still quite unstable on Sierra atleast, used Haxe nightly, details below.
Then realized that Andy has travis working so I tried the cmake files which I presume he added, from outside the git clone recursive I ran the cmake code that seemed to work without any effort, but I am not completely sure what was included in the HashLink hl file and if it was 64 or 32.
However when trying just a simple hello world it gives me error.
-cp src
-hl output.hl
-main Main
--next
-cmd /usr/local/lib/haxelib/hashlink/git/hl output.hl
> haxe compile.hxml
src/module.c(274) : FATAL ERROR : Failed to load function std@breakpoint
Error: Command failed with error 1
using -hl output.c it generated code but did not create app.
// Generated by HLC 3.4.1 (HL v1)
#include <hl/code.h>
#include <hlc_main.c>
#ifndef HL_MAKE
# include <hl/hashes.c>
# include <hl/functions.c>
# include <haxe/ds/ArraySort.c>
# include <_std/Type.c>
# include <_std/Sys.c>
# include <hl/_Bytes/Bytes_Impl_.c>
# include <_std/Std.c>
# include <hl/types/ArrayDynIterator.c>
# include <hl/types/BytesIterator_hl_UI16.c>
# include <hl/types/BytesIterator_Single.c>
# include <hl/types/BytesIterator_Int.c>
# include <hl/types/BytesIterator_Float.c>
# include <hl/types/ArrayObj.c>
# include <hl/NativeArrayIterator_Int.c>
# include <hl/NativeArrayIterator_Dynamic.c>
# include <hl/NativeArrayIterator.c>
# include <haxe/io/Eof.c>
# include <_std/SysError.c>
# include <_std/StringBuf.c>
# include <hl/types/ArrayDyn.c>
# include <haxe/Log.c>
# include <hl/types/ArrayBytes_Float.c>
# include <hl/types/ArrayBytes_Single.c>
# include <hl/types/ArrayBytes_hl_UI16.c>
# include <hl/types/ArrayBytes_Int.c>
# include <hl/types/ArrayBase.c>
# include <hl/types/ArrayAccess.c>
# include <_std/Main.c>
# include <_std/Date.c>
# include <_std/String.c>
# include <hl/BaseType.c>
# include <hl/reflect.c>
# include <hl/types.c>
# include <hl/globals.c>
#endif
void hl_init_hashes();
// Entry point
void hl_entry_point() {
hl_module_context ctx;
hl_alloc_init(&ctx.alloc);
ctx.functions_ptrs = hl_functions_ptrs;
ctx.functions_types = hl_functions_types;
hl_init_types(&ctx);
hl_init_hashes();
hl_init_roots();
fun$334();
}
{
"version" : 3401,
"libs" : ["std"],
"defines" : {
"true" : "1",
"sys" : "1",
"source-header" : "Generated by Haxe 3.4.1",
"hl" : "1",
"haxe_ver" : "3.401",
"haxe3" : "1",
"dce" : "std"
},
"files" : [
"output.c",
"hl/hashes.c",
"hl/functions.c",
"haxe/ds/ArraySort.c",
"_std/Type.c",
"_std/Sys.c",
"hl/_Bytes/Bytes_Impl_.c",
"_std/Std.c",
"hl/types/ArrayDynIterator.c",
"hl/types/BytesIterator_hl_UI16.c",
"hl/types/BytesIterator_Single.c",
"hl/types/BytesIterator_Int.c",
"hl/types/BytesIterator_Float.c",
"hl/types/ArrayObj.c",
"hl/NativeArrayIterator_Int.c",
"hl/NativeArrayIterator_Dynamic.c",
"hl/NativeArrayIterator.c",
"haxe/io/Eof.c",
"_std/SysError.c",
"_std/StringBuf.c",
"hl/types/ArrayDyn.c",
"haxe/Log.c",
"hl/types/ArrayBytes_Float.c",
"hl/types/ArrayBytes_Single.c",
"hl/types/ArrayBytes_hl_UI16.c",
"hl/types/ArrayBytes_Int.c",
"hl/types/ArrayBase.c",
"hl/types/ArrayAccess.c",
"_std/Main.c",
"_std/Date.c",
"_std/String.c",
"hl/BaseType.c",
"hl/reflect.c",
"hl/types.c",
"hl/globals.c"
]
}
Please let me know if there are more tests I should try it would be really nice to try some simple sdl gpu graphics and see how small file sizes are, also would be great if there was a simple triangle example, I am not sure about setup of the main loop but I can probably work that out from Heaps once the 'make' is working on macs, but would be really good if there was working HL for mac, not bothered about sound support at moment just graphics would be great.