I’ve apt installed libwxgtk3.0-gtk3-dev and libwxgtk-webview3.0-gtk3-dev (the former pulls in libwxbase3.0-dev as a dependency).
Note: I think libwxgtk3.0-gtk3-dev is the one for GTK+3, whereas libwxgtk3.0-dev (as specified in the hxWidgets readme) would be for GTK+2. My understanding is that hxWidgets shouldn’t care which version of GTK+ is used under the hood, right?
Anyhow, this gives me:
$ wx-config --version
3.0.4
So I believe the next step is to install hxWidgets.
I first grabbed hxcpp (haxelib install hxcpp, which gets me version 4.0.19).
Do I now just install hxWidgets, then haxeui-hxwidgets (in that order) via haxelib?
Are you using new-component-method branches of haxeui-core and haxeui-hxwidgets? You’ll need to… if you are, then you’ll need to pull again, i fixed an issue similar to this today
No, I wasn’t using that branch, but so far I haven’t installed either of those yet!
Do I need those to get that hxWidget showcase built and running? I thought maybe no, if my little “train diagram of calls” (in above post) is correct. Is it?
Ok, I installed hxWidgets 1,0,7, copied it to ~/temp again, and tried building again but got:
~/temp/hxWidgets/1,0,7/samples/00-Showcase$ haxe build.hxml
Error: Error: Library hscript is not installed : run 'haxelib install hscript'
Called from haxelib/client/Main.hx line 1318
Called from haxelib/client/Main.hx line 1353
Called from haxelib/client/Main.hx line 422
So I did haxelib install hscript (got me v2.3.0) and tried again. It gave some notes and warnings, but made it to the end:
haxelib git haxeui-core https://github.com/haxeui/haxeui-core
haxelib dev haxeui-hxwidgets path/to/expanded/source/archive
Is that a typo? The first command is haxelib git and the second is haxelib dev, but both commands are for different libs (the first being haxeui-core and the second haxeui-hxwidgets). I don’t understand what haxelib dev does, and so will ask about it on the main Haxe forum.
Not sure if that’s correct, but it seems to have worked fine.
(That haxelib remove is in there because the first command pulled in what looked like an older 0.0.4 haxeui-core release as a dependency, and I wanted to make sure I got the freshest haxeui-core.)
haxelibs can come with a “run” command that can … … … run certainly things and operations, helpers, etc. HaxeUI2 comes with one such command. So, if you open a blank folder and type:
haxelib run haxeui-core create hxwidgets
This should create a very basic “Hello World” application in that dir… You dont need to use that command ofc, it only creates files for you… but its a good starting point.