Pdcurses Not Building Defect

Tried building on 2 different laptops Win7 & Win10 with 4 different versions of Haxe and related libs.

Reproducible on latest Haxe 4.2.4 and older versions back to 4.1.3 / 4.1.4

did
haxelib install haxeui-core

and
haxelib install haxeui-pdcurses
(using other ways like haxelib run haxeui-core create pdcurses did not work either)

created new dir HaxeUI
changed dir to HaxeUI

ran
HaxeUI> haxelib run haxeui-core create pdcurses

various files and dirs were created OK (I guess…)

ran
HaxeUI> haxe pdcurses.hxml

Got Error
Error: Could not find include file “C:/HaxeToolkit_4_2_4/haxe/lib/haxeui-pdcurses/1,3,0/Build.xml”

found Build.xml in subdir HaxeUI > build > pdcurses
copied Build.xml to
C:/HaxeToolkit_4_2_4/haxe/lib/haxeui-pdcurses/1,3,0 directory

then ran haxe again
HaxeUI> haxe pdcurses.hxml

There was no immediate Error but build ran a long time and finally Neko.exe had severe error
Too many heap segments

When popup shows
Neko.exe had allocated ~ 1.6 GB which seems excessive :frowning:

Also I think hxcpp was using a 32 bit C++ compiler (not sure but possible. I know on Win7 that is correct)

Did you try pdcurses as Win 32 bit compile ?

So I will work on other stuff for now.

Thanks for your help!
Cheers

Can you try the git version of haxeui-pdcurses? I doubt it will make a difference, but just to be sure.

Neko.exe had allocated ~ 1.6 GB which seems excessive

That is excessive and likely a bug in neko, however, i dont know what neko has got to do with haxeui-pdcurses. PDCurses (and therefore haxeui-pdcurses) is a C lib, so it will only ever work with hxcpp. Neko is irrelevant here as it wouldnt have worked in the first place (regardless of that insane alloc)

I havent, but i can / will - i wouldnt have expected it would make a difference as PDCurses itself is compiled from source (not a prebuilt lib)

Using latest pdcurses from github fixed it (not sure, having hxcpp excitement now)

Will update when I can complete building
Cheers

Update: using 32 bit C++ compiler has following Error + Warnings:

Creating C:/Randy/Programming/Haxe/Projects/AST_4GL_Proto/HaxeUI/build/pdcurses/obj/msvc16xp/__pch/haxe/hxcpp.pch…
hxcpp.cpp
C:/HaxeToolkit_4_2_4/haxe/lib/hxcpp/4,2,1/include\hx/LessThanEq.h(98) : error C2766: explicit specialization; ‘hx::CompareTraits’ has already been defined
C:/HaxeToolkit_4_2_4/haxe/lib/hxcpp/4,2,1/include\hx/LessThanEq.h(93) :
see previous definition of ‘CompareTraits’
Error: Could not create PCH
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:145: characters 8-
18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:180: characters 8-
18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:221: characters 8-
18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:515: characters 8-
18 : Warning : Std.is is deprecated. Use Std.isOfType instead.
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:483: characters 37
-56 : Warning : Std.is is deprecated. Use Std.isOfType instead.
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:484: characters 31
-47 : Warning : Std.is is deprecated. Use Std.isOfType instead.
C:\HaxeToolkit_4_2_4\haxe\lib\hscript/2,4,0/hscript/Interp.hx:646: characters 10
-42 : Warning : Std.is is deprecated. Use Std.isOfType instead.
Error: Build failed

C++ (Win7 laptop 32 bit C++)
Haxe version 4.2.4 and version 4.1.4 builds give same Error

Neko.exe doing excessive allocations (1.6 GB) was my mistake of NOT setting up hxcpp after install on 4.2.4 After I followed the setup readme.md for hxcpp then the above happened instead. DOH !

Back to other stuff…
Thanks for your help !

What version of haxeui-core / haxeui-pdcurses are you using? Are you using git versions for both? pdcurses-splitters

Also what version of haxe?

64 bit Cpp compile works now ! Yeaaaah ! ! !

32 bit Cpp compile still gives same Error about
hxcpp.cpp
C:/HaxeToolkit_4_2_4/haxe/lib/hxcpp/4,2,1/include\hx/LessThanEq.h(98) : error C2766: explicit specialization; ‘hx::CompareTraits’ has already been defined
C:/HaxeToolkit_4_2_4/haxe/lib/hxcpp/4,2,1/include\hx/LessThanEq.h(93) :
see previous definition of ‘CompareTraits’
Error: Could not create PCH

Latest Haxe 4.2.4
hxcpp is latest release 4.2.1 as found by haxelib install hxcpp
haxeui-core and haxeui-pdcurses are both latest direct from github .zip and not by using haxelib install via web lookup.

So NOW I can be dangerous with pdcurses (64 bit builds)

Q: Is the demo you pasted above built with 64 or 32 bit compile ?

Thanks!