haxeui / hxWidgets

Haxe externs (and wrappers) for wxWidgets
MIT License
77 stars 22 forks source link

fatal error C1083 when compiling on Windows 10 #74

Closed s1-en closed 3 years ago

s1-en commented 3 years ago

I have Visual Studio 2019 installed but when trying to build the sample created with `haxelib run haxeui-core create hxwidgets" I get the error:

fatal error C1083: Cannot open include file: 'typeinfo.h': No such file or directory

I also have wxWidgets on C:\wxWidgets-3.1.4 and mapped to WXWIN environment variable and built using nmake with the instructions found here http://haxeui.org/getting-started/haxeui-hxwidgets/

What could I be missing?

ianharrigan commented 3 years ago

Hi, sorry, been only holiday - is this still an issue? Can you run any of the normal wxWidgets applications (no haxe, no hxWidgets)?

s1-en commented 3 years ago

Apologies but I'm not familiar with how wxWidgets works in general, I was just following the instructions since Haxe is something I do have some inkling of knowing by proxy of ActionScript 3

But yes, the issue is still a thing

ianharrigan commented 3 years ago

Hmmm, when you compile the hxWidgets / haxeui app, do you get a "using wxWidgets from C:\wxWidgets-3.1.4" printed out? What versions of haxe, hxWidgets, haxeui-core and haxeui-hxwidgets are you using?

Cheers, Ian

ianharrigan commented 3 years ago

Also, can you zip up your project so i can test this end?

s1-en commented 3 years ago

For the versions, I have:

When I compile the project with haxe hxwidgets.hxml, I do get this:

Using wxWidgets from: C:\wxWidgets-3.1.4\lib\vc_lib
 - Parsing include: C:/Users/s1-en/scoop/apps/haxe/current/lib/hxcpp/4,0,52/toolchain/msvc-toolchain.xml
 - Parsing compiler: C:/Users/s1-en/scoop/apps/haxe/current/lib/hxcpp/4,0,52/toolchain/common-defines.xml
 - Parsing include: C:\Users\s1-en\.hxcpp_config.xml (section "exes")

And here's the zip of the project source

hui-test.zip

ianharrigan commented 3 years ago

Is that the full output? Do you have any "strange" configuration changes you have made to hxcpp or is it all just default hxcpp stuff? I tried your project this end and it all worked just fine - so there has to be something strange with your install of something

image

s1-en commented 3 years ago

Thank you so much, your reply prompted me to investigate hxcpp real close. I never made any changes to hxcpp but apparently the issue was that for some reason it had the older version 4.0.52 set as the "main" version instead of the newer 4.2.1. I uninstalled hxcpp and reinstalled and now it's compiling properly!

ianharrigan commented 3 years ago

Perfect! I wont try and understand what the issue with hxcpp was, its a complex beast, but glad its working! If you are happy this is resolved can you close this when you get moment? Cheers!