Default template doesn't build on Linux



  • Hi, I just created a new project using the command
    flixel tpl -n "HelloWorld"

    when I test it with Neko, it opens the blank window fine.
    But when I test it with Linux64 - test, I got this error:

    export/linux64/cpp/haxe/ApplicationMain.hx:89: characters 42-60 : Warning : Use programPath instead
    Creating /home/noah/Development/haxe/haxeflixel/iAmCow/export/linux64/cpp/obj/obj/linux64-debug/__pch/haxe/hxcpp.h.gch...
    - src/sys/io/FileOutput.cpp 
    - src/sys/io/FileInput.cpp 
    - src/sys/io/File.cpp 
    - src/sys/FileSystem.cpp 
    - src/haxe/lang/Iterable.cpp 
    - src/haxe/lang/Iterator.cpp 
    - src/openfl/utils/Object/Object_Impl.cpp 
    - src/openfl/utils/Endian/Endian_Impl.cpp 
    - src/openfl/text/TextFieldType/TextFieldType_Impl.cpp 
    - src/openfl/text/GridFitType/GridFitType_Impl.cpp 
    - src/openfl/text/AntiAliasType/AntiAliasType_Impl.cpp 
    - src/openfl/system/SecurityDomain.cpp 
    - src/openfl/system/LoaderContext.cpp 
    - src/openfl/system/ApplicationDomain.cpp 
    - src/openfl/net/URLVariables.cpp 
    - src/openfl/net/URLRequestHeader.cpp 
    - src/openfl/net/URLLoaderDataFormat/URLLoaderDataFormat_Impl.cpp 
    - src/openfl/net/SharedObjectFlushStatus/SharedObjectFlushStatus_Impl.cpp 
    - src/openfl/media/SoundTransform.cpp 
    - src/openfl/media/SoundLoaderContext.cpp 
    - src/openfl/media/ID3Info.cpp 
    - src/openfl/geom/Vector3D.cpp 
    - src/openfl/geom/Orientation3D/Orientation3D_Impl.cpp 
    - src/openfl/geom/Matrix3D.cpp 
    - src/openfl/events/UncaughtErrorEvents.cpp 
    - src/openfl/events/UncaughtErrorEvent.cpp 
    - src/openfl/events/SampleDataEvent.cpp 
    - src/openfl/events/ProgressEvent.cpp 
    - src/openfl/events/IOErrorEvent.cpp 
    - src/openfl/events/FocusEvent.cpp 
    - src/openfl/events/ErrorEvent.cpp 
    - src/openfl/events/TextEvent.cpp 
    - src/openfl/errors/RangeError.cpp 
    - src/openfl/errors/EOFError.cpp 
    - src/openfl/errors/IOError.cpp 
    - src/openfl/errors/ArgumentError.cpp 
    - src/openfl/errors/Error.cpp 
    - src/openfl/display3D/textures/Texture.cpp 
    - src/openfl/display3D/textures/RectangleTexture.cpp 
    - src/openfl/display3D/textures/CubeTexture.cpp 
    - src/openfl/display3D/textures/TextureBase.cpp 
    - src/openfl/display3D/VertexBuffer3D.cpp 
    - src/openfl/display3D/Program3D.cpp 
    - src/openfl/display3D/IndexBuffer3D.cpp 
    - src/openfl/display3D/Context3DWrapMode.cpp 
    - src/openfl/display3D/Context3DVertexBufferFormat.cpp 
    - src/openfl/display3D/Context3DTriangleFace/Context3DTriangleFace_Impl.cpp 
    - src/openfl/display3D/Context3DTextureFormat.cpp 
    - src/openfl/display3D/Context3DTextureFilter.cpp 
    - src/openfl/display3D/Context3DProgramType.cpp 
    - src/openfl/display3D/Context3DMipFilter.cpp 
    - src/openfl/display3D/Context3DCompareMode/Context3DCompareMode_Impl.cpp 
    - src/openfl/display3D/Context3DClearMask.cpp 
    - src/openfl/display3D/Context3DBufferUsage.cpp 
    - src/openfl/display3D/_Context3D/SamplerState.cpp 
    - src/openfl/display3D/Context3D.cpp 
    - src/openfl/display/Stage3D.cpp 
    - src/openfl/display/PNGEncoderOptions.cpp 
    - src/openfl/display/JPEGEncoderOptions.cpp 
    - src/openfl/display/FrameLabel.cpp 
    - src/openfl/_legacy/utils/WeakRef.cpp 
    - src/openfl/_legacy/utils/UInt8Array.cpp 
    - src/openfl/_legacy/utils/Int16Array.cpp 
    - src/openfl/_legacy/utils/Float32Array.cpp 
    - src/openfl/_legacy/utils/CompressionAlgorithm.cpp 
    - src/openfl/_legacy/utils/ArrayBufferView.cpp 
    - src/openfl/_legacy/ui/Mouse.cpp 
    - src/openfl/_legacy/ui/Keyboard.cpp 
    - src/openfl/_legacy/text/TextLineMetrics.cpp 
    - src/openfl/_legacy/text/TextFormatAlign.cpp 
    - src/openfl/_legacy/text/TextFormat.cpp 
    - src/openfl/_legacy/text/TextFieldAutoSize.cpp 
    - src/openfl/_legacy/text/FontType.cpp 
    - src/openfl/_legacy/text/FontStyle.cpp 
    - src/openfl/_legacy/system/System.cpp 
    - src/openfl/_legacy/system/ScreenMode.cpp 
    - src/openfl/_legacy/system/PixelFormat.cpp 
    - src/openfl/_legacy/net/URLRequestMethod.cpp 
    - src/openfl/_legacy/net/URLRequest.cpp 
    - src/openfl/_legacy/net/_URLLoader/URLLoadersManager.cpp 
    - src/openfl/_legacy/net/_URLLoader/ManagersThreadMessage.cpp 
    - src/openfl/_legacy/net/SharedObject.cpp 
    - src/openfl/_legacy/media/AudioThreadState.cpp 
    - src/openfl/_legacy/media/SoundChannel.cpp 
    - src/openfl/_legacy/media/InternalAudioType.cpp 
    - src/openfl/_legacy/gl/GLTexture.cpp 
    - src/openfl/_legacy/gl/GLShader.cpp 
    - src/openfl/_legacy/gl/GLRenderbuffer.cpp 
    - src/openfl/_legacy/gl/GLProgram.cpp 
    - src/openfl/_legacy/gl/GLFramebuffer.cpp 
    - src/openfl/_legacy/gl/GLBuffer.cpp 
    - src/openfl/_legacy/gl/GLObject.cpp 
    - src/openfl/_legacy/gl/GL/Float32Data_Impl.cpp 
    - src/openfl/_legacy/gl/GL.cpp 
    - src/openfl/_legacy/geom/Transform.cpp 
    - src/openfl/_legacy/geom/ColorTransform.cpp 
    - src/openfl/_legacy/filters/BitmapFilter.cpp 
    - src/openfl/_legacy/filesystem/File.cpp 
    - src/openfl/_legacy/events/SystemEvent.cpp 
    - src/openfl/_legacy/events/KeyboardEvent.cpp 
    - src/openfl/_legacy/events/JoystickEvent.cpp 
    - src/openfl/_legacy/events/HTTPStatusEvent.cpp 
    - src/openfl/_legacy/events/_EventDispatcher/Listener.cpp 
    - src/openfl/_legacy/display/TriangleCulling.cpp 
    - src/openfl/_legacy/display/StageScaleMode.cpp 
    - src/openfl/_legacy/display/StageQuality.cpp 
    - src/openfl/_legacy/display/StageDisplayState.cpp 
    - src/openfl/_legacy/display/StageAlign.cpp 
    - src/openfl/_legacy/display/TouchInfo.cpp 
    - src/openfl/_legacy/display/SpreadMethod.cpp 
    - src/openfl/_legacy/display/Shape.cpp 
    - src/openfl/_legacy/display/PixelSnapping.cpp 
    - src/openfl/_legacy/display/MovieClip.cpp 
    - src/openfl/_legacy/display/ManagedStage.cpp 
    - src/openfl/_legacy/display/Stage.cpp 
    - src/openfl/_legacy/events/TouchEvent.cpp 
    - src/openfl/_legacy/events/MouseEvent.cpp 
    - src/openfl/_legacy/events/Event.cpp 
    - src/openfl/_legacy/display/LoaderInfo.cpp 
    - src/openfl/_legacy/net/URLLoader.cpp 
    - src/openfl/_legacy/display/Loader.cpp 
    - src/openfl/_legacy/display/LineScaleMode.cpp 
    - src/openfl/_legacy/display/JointStyle.cpp 
    - src/openfl/_legacy/display/InterpolationMethod.cpp 
    - src/openfl/_legacy/display/IGraphicsData.cpp 
    - src/openfl/_legacy/display/Graphics.cpp 
    - src/openfl/_legacy/display/GradientType.cpp 
    - src/openfl/_legacy/display/CapsStyle.cpp 
    - src/openfl/_legacy/display/BlendMode.cpp 
    - src/openfl/_legacy/display/OptimizedPerlin.cpp 
    - src/openfl/_legacy/display/Bitmap.cpp 
    - src/openfl/_legacy/Memory.cpp 
    - src/openfl/_legacy/Promise.cpp 
    - src/openfl/_legacy/Future.cpp 
    - src/openfl/_legacy/AssetType.cpp 
    - src/openfl/_legacy/AssetData.cpp 
    - src/openfl/_legacy/Assets.cpp 
    - src/openfl/_legacy/AssetCache.cpp 
    - src/openfl/_legacy/IAssetCache.cpp 
    - src/openfl/Vector/Vector_Impl.cpp 
    - src/haxe/zip/Uncompress.cpp 
    - src/haxe/zip/FlushMode.cpp 
    - src/haxe/zip/Compress.cpp 
    - src/haxe/xml/Parser.cpp 
    - src/haxe/xml/XmlParserException.cpp 
    - src/haxe/xml/Fast.cpp 
    - src/haxe/xml/_Fast/NodeListAccess.cpp 
    - src/haxe/xml/_Fast/HasNodeAccess.cpp 
    - src/haxe/xml/_Fast/HasAttribAccess.cpp 
    - src/haxe/xml/_Fast/AttribAccess.cpp 
    - src/haxe/xml/_Fast/NodeAccess.cpp 
    - src/haxe/io/Path.cpp 
    - src/haxe/io/Error.cpp 
    - src/haxe/io/Eof.cpp 
    - src/haxe/io/BytesBuffer.cpp 
    - src/haxe/format/JsonParser.cpp 
    - src/haxe/ds/StringMap.cpp 
    - src/haxe/ds/ObjectMap.cpp 
    - src/haxe/ds/IntMap.cpp 
    - src/haxe/ds/EnumValueMap.cpp 
    - src/haxe/ds/TreeNode.cpp 
    - src/haxe/ds/BalancedTree.cpp 
    - src/haxe/ds/ArraySort.cpp 
    - src/haxe/Utf8.cpp 
    - src/haxe/_Unserializer/NullResolver.cpp 
    - src/haxe/Unserializer.cpp 
    - src/haxe/_Unserializer/DefaultResolver.cpp 
    - src/haxe/Timer.cpp 
    - src/haxe/Serializer.cpp 
    - src/haxe/Resource.cpp 
    Error: ./src/haxe/Unserializer.cpp: In member function ‘Dynamic haxe::Unserializer_obj::unserialize()’:
    ./src/haxe/Unserializer.cpp:329:79: error: ‘_hx_reslove_virtual_array’ was not declared in this scope
    HXLINE( 281) return (this->cache->set(cachePos,_hx_reslove_virtual_array(a)));
    ^
    [Finished in 36.5s with exit code 1]
    [cmd: ['haxelib', 'run', 'openfl', 'test', 'Project.xml', 'linux', '-debug']]
    [dir: /home/noah/Development/haxe/haxeflixel/iAmCow]
    [path: /home/noah/.local/share/umake/bin:/home/noah/bin:/home/noah/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-openjdk-amd64//bin]

    when I built with html5 - test, I got this error:
    events.js:72
    throw er; // Unhandled 'error' event
    ^
    Error: listen EADDRINUSE
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1042:14)
    at listen (net.js:1064:10)
    at net.js:1146:9
    at dns.js:72:18
    at process._tickCallback (node.js:419:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
    at node.js:906:3
    [Finished in 5.4s with exit code 1]
    [cmd: ['haxelib', 'run', 'openfl', 'test', 'Project.xml', 'html5', '-debug']]
    [dir: /home/noah/Development/haxe/haxeflixel/iAmCow]
    [path: /home/noah/.local/share/umake/bin:/home/noah/bin:/home/noah/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-openjdk-amd64//bin]

    If I do a html5 release, it works fine.

    Not sure what to do, anyone have any ideas?

    Thanks in advance, Noah :)


  • administrators

    Sounds like you need to update hxcpp to 3.4.49.

    https://github.com/HaxeFoundation/haxe/issues/5983


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.