-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hxwidgets hello world fails to compile on fresh Ubuntu 20.04 (because of macro usage?) #81
Comments
Hi, So there are a couple of things i would try:
My personal guess is that 2 is going to fix it (ive seen things like this before i think). But doesnt hurt to be on git versions of haxeui either - the last release was months ago - im hoping to get a new release out in the week or so, but currently the haxelib version is still painfully out of date. |
TL;DR: compiles fine with wxWidgets 3.1.4, had linker errors for 3.1.5 Hi Ian, Secondly, I tried no. 1. I don't assume it being the proper way; I do a quick & dirty For the last step, I undo
The Ubuntu 20.04 distribution version of wxWidgets seems to be 3.0.4 (while the latest stable is 3.0.5), the latest dev release is 3.1.5, which I tried above. I then tried to move backwards in versions and had success with 3.1.4. Guess these are tough times for many, I struggle keeping my own schedules. Thank you and the other fine people working on this very much for all your efforts! |
Just chiming in that I've had the same error on Linux Mint 21.1, the wxWidget version that currently installs from apt is 3.0.5. I've removed that and then built wxWidgets from source (version 3.2.2) as per instructions in the README of this repo and it worked fine (no installs of haxelibs from git were necessary). $ haxelib list
haxeui-core: [1.5.0]
haxeui-hxwidgets: [1.5.0]
hxcpp: [4.2.1]
hxWidgets: [1.10.0]
$ wx-config --version
3.2.2 |
I also had similar log errors on stable haxe compiler, messages differ with latest haxe (reported here haxeui/haxeui-core#523 ) Will try updating everything from gits as you proposed |
@ianharrigan Could you please tell how to install haxelibs from git? |
after that confirm with |
Expected Behavior
The Hello-World project (
haxelib run haxeui-core create hxwidgets
) compiles fine.Current Behavior
Compilation ends with errors, as follows:
Possible Solution
I hope you tell me. ;)
I've seen a case from a few years ago with a similar log output (and this was the only one I found, -> in repo "haxeui-hxwidgets", Issue 1), which didn't end in a solution described there, but just died somewhere. I also tried to get behind all the macro expansion wizardry happening there, but I was unable to recognise the root cause. I tried to replace the "stable" releases from haxelib with their current state in the respective github repos, but didn't get any further. I also tried compiling the current wxwidgets dependency as stated in the wiki.
As there's lots of active development going on, I assume the error on my side; yet, I think, precisely (as far as possible) following the recommendations should result in a positive outcome. I'm afraid I might have overlooked sth. obvious.
Steps to Reproduce (for bugs)
I use Linux Containers (LXD / LXC) here, so prerequisites might include:
snap install lxd
lxd init
Load fresh Ubuntu 20.04 image and enter it:
lxc launch ubuntu:20.04 hximage
lxc exec hximage bash
Install haxe as suggested on the respective websites
add-apt-repository ppa:haxe/releases -y
apt update
apt install haxe -y
Install some prerequisites:
Won't work:
apt install libwxgtk3.0-dev libwxbase3.0-dev libwxgtk-webview3.0-dev
Will work:
apt install -y libwxgtk3.0-gtk3-dev libwxbase3.0-dev libwxgtk-webview3.0-gtk3-dev
apt install build-essential -y
Install haxe libs:
su ubuntu
mkdir ~/haxelib && haxelib setup ~/haxelib
haxelib install haxeui haxeui-hxwidgets
Make the default hello-world project:
mkdir haxetest && cd haxetest
haxelib run haxeui-core create hxwidgets
haxe hxwidgets.hxml
(fails here.)
-> Full output log
The text was updated successfully, but these errors were encountered: