Dear all,
I wanted to test openfl for a command-line tools and, therefore I have this really basic Main.hx
:
package;
import openfl.display.Sprite;
import openfl.display.BitmapData;
import openfl.display.Shape;
import openfl.geom.Rectangle;
import openfl.Lib;
import sys.io.File;
import haxe.io.Bytes;
class Main extends Sprite {
public function new() {
super();
trace("Running generator...");
Sys.exit(0);
}
}
on an openfl project as:
<?xml version="1.0" encoding="utf-8"?>
<project name="test" output="Export" version="1.0.0" company="me">
<app main="Main" file="Test" />
<source path="Source" />
<assets path="Assets" embed="true" />
<haxelib name="openfl" />
<haxedef name="display" if="cpp" />
</project>
I tried to build the project as:
me@fullsnackdeveloper:~/Projects/test$ openfl build linux
But got:
/home/me/.haxelib2/openfl/9,1,0/src/openfl/ui/MouseCursor.hx:12: characters 1-7 : Warning : (WDeprecatedEnumAbstract) `@:enum abstract` is deprecated in favor of `enum abstract`
[a long bunch of warnings]
Creating /home/me/Projects/textmapper/bin/linux/obj/obj/linux64/__pch/haxe/hxcpp.h.gch...
Compiling group: haxe
g++ -Iinclude -c -fvisibility=hidden -O2 -fpic -fPIC -Wno-overflow -DHX_LINUX -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS(haxe) -DHX_SMART_STRINGS(haxe) -DHXCPP_API_LEVEL=430(haxe) -m64 -DHXCPP_M64 -I/home/me/.haxelib2/hxcpp/4,3,2/include ... tags=[haxe,static]
- src/lime/media/openal/ALC.cpp [haxe,release]
- src/sys/FileSystem.cpp
- src/lime/graphics/cairo/_CairoFontOptions/CairoFontOptions_Impl_.cpp
- src/openfl/display/_internal/Context3DElementType.cpp
- src/lime/_internal/backend/native/TextEventInfo.cpp
- src/lime/graphics/opengl/ext/EXT_debug_marker.cpp
- src/openfl/system/SecurityDomain.cpp [haxe,release]
- src/sys/io/_Process/Stdout.cpp
- src/openfl/display/_internal/Context3DTilemap.cpp [haxe,release]
- src/openfl/display/DOMRenderer.cpp [haxe,release]
- src/lime/system/_ThreadPool/ThreadPoolMessage.cpp
- src/lime/app/_Future/FutureWork.cpp [haxe,release]
- src/openfl/events/ActivityEvent.cpp [haxe,release]
- src/openfl/display/_GradientType/GradientType_Impl_.cpp
- src/openfl/text/_internal/ShapeCache.cpp [haxe,release]
- src/openfl/events/Event.cpp [haxe,release]
- src/openfl/display3D/_Context3DTextureFormat/Context3DTextureFormat_Impl_.cpp
Error: In file included from ./src/openfl/display/_internal/Context3DTilemap.cpp:24:
[cpp like warning and error description]
[terminal got blocked here]
Any idea of how I should face this? I’m really lost.
Lib description:
me@fullsnackdeveloper:~/Projects/test$ haxelib list
actuate: [1.9.0]
box2d: [1.2.3]
hxcpp: [4.3.2]
layout: [1.2.1]
lime: [7.9.0]
openfl: [9.1.0]